Strange error on missing JSONObject parameter
Posted: 13 Jun 2012, 13:50
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
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