Page 1 of 1

Bad value in String message:

Posted: 05 Aug 2008, 09:12
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

Posted: 05 Aug 2008, 10:42
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.

Posted: 06 Aug 2008, 13:47
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.