Hey Gang, I hope someone is able to shed some light on this issue I'm
having.

We are currently using GWT 1.7.1 to compile our GWT applications.
Everything is working fine with GWT 1.7.1, as a note.  I've been
tasked with updating us to 2.0.3.  To give a little background we're
using "generate-with" in our module xml files.  We have a tag
interface "Exportable" that we use on interfaces to generate DTO
objects so we don't have to manage a true Model object and a DTO
version of it.  We've looked at other ways of doing this in the
future, but for now we're stuck with what we have.

The issue I'm running into is during our ant compile of our gwt
projects. During the compile of one of our modules we get to the point
where we're walking the object graph "Analyzing the fields of type
'...' that qualify for serialization".  The next thing we get is the
following error message:

"Checking type argument 0 of type 'java.util.Arrays.ArrayList<E>'
because it is exposed as an array with a maximum dimension of 1 in
this type or one of its subtypes (reached via
XX.client.ISubjectRecord)". NOTE I substituted our full package name
with "XX".  This message is repeated about 50 times.  Then messages
what follows is about 8000 lines of messages like this:

[ERROR] com.google.gwt.core.client.JavaScriptException is not default
instantiable (it must have a zero-argument constructor or no
constructors at all) and has no custom serializer. (reached via
XX.client.ISubjectRecord)
     [java]                   [ERROR]
com.google.gwt.core.client.JavaScriptException is not default
instantiable (it must have a zero-argument constructor or no
constructors at all) and has no custom serializer. (reached via
XX.client.ISubjectRecord)
     [java]                   [ERROR]
com.google.gwt.core.client.JavaScriptException is not default
instantiable (it must have a zero-argument constructor or no
constructors at all) and has no custom serializer. (reached via
XX.client.ISubjectRecord)
     [java]                   [ERROR]
com.google.gwt.core.client.JavaScriptException has no available
instantiable subtypes. (reached via
com.choicepoint.wps.subject.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.core.client.JavaScriptException is not default
instantiable (it must have a zero-argument constructor or no
constructors at all) and has no custom serializer. (reached via
XX.client.ISubjectRecord), etc.
     [java]                   [ERROR]
com.google.gwt.core.client.JavaScriptObject is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via com.choicepoint.wps.subject.client.ISubjectRecord)
     [java]                   [ERROR]
com.google.gwt.core.client.JavaScriptObject has no available
instantiable subtypes. (reached via XX.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.core.client.JavaScriptObject is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via XX.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.user.client.Event is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via XX.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.core.client.JsArrayNumber is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via XX.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.dom.client.StyleElement is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via XX.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.dom.client.Node is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via XX.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.core.client.JsArray<T> is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via XX.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.user.client.rpc.impl.SerializerBase.MethodMap is not
assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via com.choicepoint.wps.subject.client.ISubjectRecord)
     [java]                      [ERROR]    subtype
com.google.gwt.dom.client.NodeList<T> is not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer
(reached via XX.client.ISubjectRecord)

As part of the messages is also our code, but what boggles me is that
a large number of GWT code classes are also showing this error.

-Adam

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to