Havanero / gwt-syncproxy

Automatically exported from code.google.com/p/gwt-syncproxy
0 stars 0 forks source link

Too few tokens in RPC request #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
My service uses a simple POJO as a parameter, and returs another one. Calling 
it using syncproxy raises the following exception:

Exception in thread "main" 
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Too few 
tokens in RPC request
[...]
com.gdevelop.gwt.syncrpc.RemoteServiceSyncProxy.doInvoke(RemoteServiceSyncProxy.
java:185)

Comparing the the request sent by SyncProxy with the one sent by the web 
application, I noticed that there are differences between the two that may be 
important:

SyncProxy Request:
7|0|10|http://localhost:8080/login/|9BF7A077AF56F99199DFDA5A26040FAA|com.example
.client.rpc.LoginService|login|com.example.shared.dto.request.LoginRequest|com.e
xample.dto.request.LoginRequest/992701310|127.0.0.1|localhost|debug2|1q2w3e$%|1|
2|3|4|1|5|6|7|8|9|10|

Web app Request:
7|0|9|http://localhost:8080/login/|9BF7A077AF56F99199DFDA5A26040FAA|com.example.
client.rpc.LoginService|login|com.example.shared.dto.request.LoginRequest/992701
310|127.0.1.1|localhost|debug2|1q2w3e$%|1|2|3|4|1|5|5|6|7|8|9|0|0|

I'm using GWT-2.3.0 and SyncProxy 0.3.1. 

Original issue reported on code.google.com by muri...@gmail.com on 15 Sep 2011 at 12:13

GoogleCodeExporter commented 8 years ago
For debug purpose, please post 2 java files com.example.client.rpc.LoginService 
and com.example.shared.dto.request.LoginRequest?

Thanks,

Original comment by gwtdevel...@gmail.com on 19 Sep 2011 at 12:32

GoogleCodeExporter commented 8 years ago
The code is proprietary so I can't post it here - I'll try to prepare a simple 
example where the problem occurs.

The service method is very simple, because it delegates to a Session Bean (EJB 
3.0). The class extends GwtRpcCommLayerServlet.  

LoginRequest and LoginResponse are simple beans (they only have properties, 
getter/setters and an empty constructor). They both extend base classes called 
Request and Responde, respectively (some of the properties are common to all 
beans). I think this inheritance is the problem, but I'm not sure. 

Original comment by muri...@gmail.com on 20 Sep 2011 at 5:32

GoogleCodeExporter commented 8 years ago
The more recent versions of GWT and SyncProxy have better inheritance support 
and testing, so if this is still a problem, re-advise here. Otherwise this 
issue will be closed in about a month.

Original comment by p.pr...@blueesoteric.com on 29 Dec 2014 at 3:12

GoogleCodeExporter commented 8 years ago
No further information provided, assuming resolved, closing

Original comment by p.pr...@blueesoteric.com on 9 Feb 2015 at 4:39