Hello Stefan,

I just checked trunk and the last change is from Mai as far as i have seen 
that. So if the error is from the framework, it is maybe from another area used 
in the RPC layer itself.
The error message looks something like the JSON object itself is either not 
valid or the encoding is wrong. What do you think, could it be the encoding?

Best,
Martin

Am 23.09.2010 um 10:33 schrieb Stefan Andersson:

We have a JBoss server running a servlet. Rpc from qooxdoo is doing a async 
call and the following error occurs:

2010-09-23 10:39:12,846 ERROR 
[org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/Join].[JoinServlet]]
 Servlet.service() for servlet JoinServlet threw exception
java.text.ParseException: A JSONObject must begin with '{' at character 1 of 
%7B%22service%22%3A%22com.test.community.jo.bo.AgreeService%22%2C%22method%22%3A%22getAgreeData%22%2C%22id%22%3A1%2C%22params%22%3A%5B%22Agree.odt%22%2C%22%24%7Ben_us%7D%22%5D%7D
    at org.json.JSONTokener.syntaxError(JSONTokener.java:525)
    at org.json.JSONObject.<init>(JSONObject.java:172)
    at org.json.JSONObject.<init>(JSONObject.java:240)
    at net.sf.qooxdoo.rpc.RpcServlet.handleRPC(RpcServlet.java:332)
    at net.sf.qooxdoo.rpc.RpcServlet.doGet(RpcServlet.java:409)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


We had it working the other day, so the question is: Has any recent changes 
been done to the rpc class or what is the reason of this error. JSON format 
seems to be ok.

Stefan
<ATT00001..txt><ATT00002..txt>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to