Mac OS X 10.5.7
Firefox 3.5
Eclipse 3.5
Java 5
GWT 2.0
----
Hello,
I have a class on the client side which makes RPC calls to a servlet.
The class is able to successfully call one of the methods in the
servlet. But when I attempt
to call another method in the same servlet, I catch an object of type
Throwable back at the client. I can see that the servlet never
executes any code. In each case, I
am passing an object of type "Member", my own type, to the method.
My console contains the following:
The stack begins with the following in black text...
[WARN] memberServlet: An IncompatibleRemoteServiceException was
thrown while processing this call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
com.google.gwt.user.client.rpc.SerializationException:
java.lang.ExceptionInInitializerError
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:308)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:186)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost
(RemoteServiceServlet.java:224)
....
Caused by: com.google.gwt.user.client.rpc.SerializationException:
com.google.gwt.user.client.rpc.SerializationException:
java.lang.ExceptionInInitializerError
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize
(ServerSerializationStreamReader.java:551)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
(AbstractSerializationStreamReader.java:61)
...
Caused by: com.google.gwt.user.client.rpc.SerializationException:
java.lang.ExceptionInInitializerError
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize
(ServerSerializationStreamReader.java:551)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
(AbstractSerializationStreamReader.java:61)
...
Caused by: java.lang.ExceptionInInitializerError
at
com.mycompany.foo.view.PersonEditor.<init>(PersonEditor.java:39)
at
com.mycompany.foo.view.MemberEditor.<init>(MemberEditor.java:17)
...
This is my own custom class - Is this the problem, and if so what does
it mean? On line 39 of this class I create an instance of a TextBox.
But this class is not an attribute of the Member object passed to the
method. It's just part of the GUI for the application.
Following this in the stack I see the following appear in red text:
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
com.google.gwt.user.client.rpc.SerializationException:
java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
....
If anyone can help me to debug this, I would be grateful. Thanks in
advance.
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.