Re: GWT 2.0 RPC Problem

2009-10-12 Thread Zé Vicente

In fact, I did many tests... If I compile the application I get the
same error.

For the Jars I quite sure the is ok. If I go back to GWT 1.7 it works
fine.

My scenario again:

ServeviceAAsync serviceA = GWT.create(ServiceA.class);
ServeviceBAsync serviceB = GWT.create(ServiceB.class);
ServeviceCAsync serviceC = GWT.create(ServiceC.class);

So, if  I use serviceA, it works fine. When I use serviceB or C in the
sequence, I get the exception. I can use any sequence, the second
service always crash.

Regards,
José Vicente



On 12 out, 01:18, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 Documentation for IncompatibleRemoteServiceException says -
 *.. Exception that will be passed to the method when an incompatibility is
 detected between a RemoteService client and its corresponding  RemoteService
 server.*

 Are you able to get run it in web mode (ie. after compiling using gwtc)?
 Also, try to see if you have the right jars in the classpath when starting
 up hosted mode/oophm. Perhaps you have both versions of gwt in your
 classpath?

 --Sri

 2009/10/11 Zé Vicente josevicentec...@gmail.com





  Hello all,

  I very happy to be able to test GWT 2.0. The new features are
  amazing The code splitting and Declarative UI are going to place
  GWT on the top of choice for UI development. I am quite sure the the
  market will require more professionals with GWT experience.

  Well, but we still have some problems to solve. In my case, I did the
  migration of my project from 1.7 to 2.0. Now I have a very strange
  behavior. My first rpc call works fine. But it does not matter which
  service I call the second time. It always crash. So, in my second rpc
  call I get an error message like that:

  com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The
  response could not be deserialized
         at

  com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv 
  ed
  (RequestCallbackAdapter.java:204)
         at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
  (Request.java:316)
         at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
  (Request.java:288)
         at com.google.gwt.http.client.Request.fireOnResponseReceived
  (Request.java:270)
         at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
  (RequestBuilder.java:396)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
  103)
         at
  com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
  71)
         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
  (OophmSessionHandler.java:146)
         at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
  (BrowserChannel.java:1542)
         at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
  (BrowserChannelServer.java:396)
         at com.google.gwt.dev.shell.BrowserChannelServer.run
  (BrowserChannelServer.java:178)
         at java.lang.Thread.run(Unknown Source)
  Caused by: com.google.gwt.user.client.rpc.SerializationException:
  Brazil
         at com.google.gwt.user.client.rpc.impl.SerializerBase.check
  (SerializerBase.java:161)
         at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate
  (SerializerBase.java:138)
         at

  com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deseria 
  lize
  (ClientSerializationStreamReader.java:114)
         at

  com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO 
  bject
  (AbstractSerializationStreamReader.java:61)
         at com.myproject.model.AppStartUPData_FieldSerializer.deserialize
  (transient source for
  com.myproject.model.AppStartUPData_FieldSerializer:21)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
  103)
         at
  com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
  71)
         at com.google.gwt.dev.shell.OophmSessionHandler.invoke
  (OophmSessionHandler.java:146)
         at

  com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForRetur 
  n
  (BrowserChannel.java:1573)
         at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
  (BrowserChannelServer.java:124)
         at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
  (ModuleSpaceOOPHM.java:120)
         at
  com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
  502)
         at 

GWT 2.0 RPC Problem

2009-10-11 Thread Zé Vicente

Hello all,

I very happy to be able to test GWT 2.0. The new features are
amazing The code splitting and Declarative UI are going to place
GWT on the top of choice for UI development. I am quite sure the the
market will require more professionals with GWT experience.

Well, but we still have some problems to solve. In my case, I did the
migration of my project from 1.7 to 2.0. Now I have a very strange
behavior. My first rpc call works fine. But it does not matter which
service I call the second time. It always crash. So, in my second rpc
call I get an error message like that:

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The
response could not be deserialized
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:204)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:316)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:288)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:270)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
(RequestBuilder.java:396)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:146)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1542)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:396)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:178)
at java.lang.Thread.run(Unknown Source)
Caused by: com.google.gwt.user.client.rpc.SerializationException:
Brazil
at com.google.gwt.user.client.rpc.impl.SerializerBase.check
(SerializerBase.java:161)
at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate
(SerializerBase.java:138)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
(ClientSerializationStreamReader.java:114)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
(AbstractSerializationStreamReader.java:61)
at com.myproject.model.AppStartUPData_FieldSerializer.deserialize
(transient source for
com.myproject.model.AppStartUPData_FieldSerializer:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:146)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
(BrowserChannel.java:1573)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:124)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
502)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
(ModuleSpace.java:295)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
(JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap
$.deserialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize
(SerializerBase.java:124)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
(ClientSerializationStreamReader.java:116)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
(AbstractSerializationStreamReader.java:61)
at com.myproject.model.Country_FieldSerializer.deserialize(transient
source for com.myproject.model.Country_FieldSerializer:22)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke

Re: GWT 2.0 RPC Problem

2009-10-11 Thread Sripathi Krishnan
Documentation for IncompatibleRemoteServiceException says -
*.. Exception that will be passed to the method when an incompatibility is
detected between a RemoteService client and its corresponding  RemoteService
server.*

Are you able to get run it in web mode (ie. after compiling using gwtc)?
Also, try to see if you have the right jars in the classpath when starting
up hosted mode/oophm. Perhaps you have both versions of gwt in your
classpath?

--Sri


2009/10/11 Zé Vicente josevicentec...@gmail.com


 Hello all,

 I very happy to be able to test GWT 2.0. The new features are
 amazing The code splitting and Declarative UI are going to place
 GWT on the top of choice for UI development. I am quite sure the the
 market will require more professionals with GWT experience.

 Well, but we still have some problems to solve. In my case, I did the
 migration of my project from 1.7 to 2.0. Now I have a very strange
 behavior. My first rpc call works fine. But it does not matter which
 service I call the second time. It always crash. So, in my second rpc
 call I get an error message like that:

 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: The
 response could not be deserialized
at

 com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
 (RequestCallbackAdapter.java:204)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
 (Request.java:316)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
 (Request.java:288)
at com.google.gwt.http.client.Request.fireOnResponseReceived
 (Request.java:270)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
 (RequestBuilder.java:396)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
at
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
 (OophmSessionHandler.java:146)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
 (BrowserChannel.java:1542)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
 (BrowserChannelServer.java:396)
at com.google.gwt.dev.shell.BrowserChannelServer.run
 (BrowserChannelServer.java:178)
at java.lang.Thread.run(Unknown Source)
 Caused by: com.google.gwt.user.client.rpc.SerializationException:
 Brazil
at com.google.gwt.user.client.rpc.impl.SerializerBase.check
 (SerializerBase.java:161)
at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate
 (SerializerBase.java:138)
at

 com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
 (ClientSerializationStreamReader.java:114)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
 (AbstractSerializationStreamReader.java:61)
at com.myproject.model.AppStartUPData_FieldSerializer.deserialize
 (transient source for
 com.myproject.model.AppStartUPData_FieldSerializer:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
at
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
 71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
 (OophmSessionHandler.java:146)
at

 com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
 (BrowserChannel.java:1573)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
 (BrowserChannelServer.java:124)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
 (ModuleSpaceOOPHM.java:120)
at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 502)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid
 (ModuleSpace.java:295)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid
 (JavaScriptHost.java:107)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap
 $.deserialize$(SerializerBase.java)
at com.google.gwt.user.client.rpc.impl.SerializerBase.deserialize
 (SerializerBase.java:124)
at

 com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize
 (ClientSerializationStreamReader.java:116)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
 (AbstractSerializationStreamReader.java:61)
at com.myproject.model.Country_FieldSerializer.deserialize(transient