Strange error on missing JSONObject parameter

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

anonemejo
Posts: 15
Joined: 08 Jan 2010, 23:35

Strange error on missing JSONObject parameter

Postby anonemejo » 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
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Strange error on missing JSONObject parameter

Postby rjgtav » 13 Jun 2012, 20:09

Hmm... It's very hard to understand the problem with the only information you provided...
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.

Return to “Server Side Extension Development”

Who is online

Users browsing this forum: No registered users and 27 guests