I was getting the same error; by mistake I was overwriting gwt- servlet.jar (and I suspect, also the gwt-generated .gwt.rpc file!) with the ones from the from the old (gwt 1.7) project.
Now that I’m surely not overwriting anything new with anything old, the problem has disappeared. I was not cleaning properly; most probably, the root of the problem was that. On Oct 16, 8:39 pm, tskaife <tska...@gmail.com> wrote: > So I tried another simpler project of mine and was getting the same > error as above with a few more errors. I found that the problem with > my simple project was the in the WEB-INF/lib folder I had the > incorrect version of the gwt-servlet.jar. So I just crated a new GWT > project and copied the jar from that project over to my simple project > and rpc requests were working normally. But as I copied over that jars > into my more complex project I still have the same error as above. > > I was much happier when I was getting that same error in my simple > project. > > On Oct 16, 7:39 am, bond <daniele.re...@gmail.com> wrote: > > > I've the same problem.Any ideas? > > > On 16 Ott, 04:39, tskaife <tska...@gmail.com> wrote: > > > > While running in either hosted mode, or compiled I get this error. I > > > have no problems with RPC calls that pass primitive types. But I've > > > tried both java.lang.String and java.lang.Long and get the same > > > results. I've tried both JDK 1.6.0_10 and 1.5.0_21 to no avail. I'm on > > > Linux, if that matters, and haven't had any problems with the > > > application while using GWT 1.7.1, 1.7.0, 1.6.4... Any insights on > > > what it might be would be much appreciated. > > > > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: > > > Parameter 0 of is of an unknown type 'java.lang.String/2004016611' > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > > > Method) > > > at sun.reflect.NativeConstructorAccessorImpl.newInstance > > > (NativeConstructorAccessorImpl.java:39) > > > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance > > > (DelegatingConstructorAccessorImpl.java:27) > > > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > > > at > > > com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: > > > 105) > > > 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 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject > > > (ModuleSpace.java:275) > > > at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject > > > (JavaScriptHost.java:91) > > > at > > > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSeri > > > alizer.instantiate > > > (transient source for > > > com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSeri > > > alizer) > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > at sun.reflect.NativeMethodAccessorImpl.invoke > > > (NativeMethodAccessorImpl.java:39) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > (DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > 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 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject > > > (ModuleSpace.java:275) > > > at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject > > > (JavaScriptHost.java:91) > > > at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap > > > $.instantiate$(SerializerBase.java) > > > at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate > > > (SerializerBase.java:140) > > > 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.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv > > > ed > > > (RequestCallbackAdapter.java:199) > > > 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 > > > (NativeMethodAccessorImpl.java:39) > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke > > > (DelegatingMethodAccessorImpl.java:25) > > > at java.lang.reflect.Method.invoke(Method.java:597) > > > 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(Thread.java:619) --~--~---------~--~----~------------~-------~--~----~ 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-toolkit@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 -~----------~----~----~----~------~----~------~--~---