Page 1 of 1

Strange error on missing JSONObject parameter

Posted: 13 Jun 2012, 13:50
by anonemejo
Hi,
we have a strange problem.
When the client call an extension we get this error:

15:26:16.369 - [ WARNING ] > Exception in ExtensionHandler: org.json.JSONException: JSONObject["p"] not found.
INFO | jvm 1 | 2012/06/13 15:26:16 | Exception type: org.json.JSONException
INFO | jvm 1 | 2012/06/13 15:26:16 | org.json.JSONException: JSONObject["p"] not found.
INFO | jvm 1 | 2012/06/13 15:26:16 | at org.json.JSONObject.get(JSONObject.java:294)
INFO | jvm 1 | 2012/06/13 15:26:16 | at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.processEvent(ExtensionHandler.java:490)
INFO | jvm 1 | 2012/06/13 15:26:16 | at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.run(ExtensionHandler.java:344)
INFO | jvm 1 | 2012/06/13 15:26:16 | at java.lang.Thread.run(Thread.java:619)


The strange thing is that I only try to read the p variable on 2 functions and not the one that the client is actually calling.

Any idea?

Thanks

Re: Strange error on missing JSONObject parameter

Posted: 13 Jun 2012, 20:09
by rjgtav
Hmm... It's very hard to understand the problem with the only information you provided...
Can you post the extension code you're using?