Bad value in String message:

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

Moderators: Lapo, Bax

Post Reply
melojoy
Posts: 35
Joined: 02 Oct 2006, 21:27
Location: Italy

Bad value in String message:

Post by melojoy »

Hi, :)
in my log I hava a lot of this error message:

Code: Select all

08:55:53.153 - [ WARNING ] > Bad value in String message: java.lang.NumberFormatException: For input string: "null"
java.lang.NumberFormatException: For input string: "null"
	at java.lang.NumberFormatException.forInputString(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.processEvent(ExtensionHandler.java:526)
	at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.run(ExtensionHandler.java:344)
	at java.lang.Thread.run(Unknown Source)
:?: Somebody konw this error?


Thanks
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

I received a similar error like that when I'm trying to send something to the server's extension without being inside a room. That error was fixed by adding another parameter, (-1) - since the server is expecting a room id where the message is coming from.

Hope this helps.
Smartfox's forum is my daily newspaper.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

I received a similar error like that when I'm trying to send something to the server's extension without being inside a room.
Correct the server expects a roomId.
If you didn't join a room, the roomId will be null creating such problem.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply