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
Strange error on missing JSONObject parameter
Re: Strange error on missing JSONObject parameter
Hmm... It's very hard to understand the problem with the only information you provided...
Can you post the extension code you're using?
Can you post the extension code you're using?
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Return to “Server Side Extension Development”
Who is online
Users browsing this forum: No registered users and 57 guests