Problem with server: java.nio.charset.MalformedInputExceptio

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

Moderators: Lapo, Bax

Post Reply
milosh6
Posts: 27
Joined: 06 Sep 2006, 14:09

Problem with server: java.nio.charset.MalformedInputExceptio

Post by milosh6 »

Hi,

we are using Java extensions, have the most recent patch on SmartFoxServer Pro installed and our wrapper.log is full of this exception:

What is it?

Code: Select all

INFO   | jvm 1    | 2007/11/23 00:04:25 | java.nio.charset.MalformedInputException: Input length = 1
INFO   | jvm 1    | 2007/11/23 00:04:25 | 	at java.nio.charset.CoderResult.throwException(Unknown Source)
INFO   | jvm 1    | 2007/11/23 00:04:25 | 	at java.nio.charset.CharsetDecoder.decode(Unknown Source)
INFO   | jvm 1    | 2007/11/23 00:04:25 | 	at it.gotoandplay.smartfoxserver.SmartFoxServer.readIncomingMessages(SmartFoxServer.java:1041)
INFO   | jvm 1    | 2007/11/23 00:04:25 | 	at it.gotoandplay.smartfoxserver.EventReader.run(EventReader.java:32)
INFO   | jvm 1    | 2007/11/23 00:04:25 | 	at java.lang.Thread.run(Unknown Source)
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

The server complains about malformed mesages being received.
This can be caused by an hacking attempt or by a Linux client :(
If your application is made with AS3 we know that there's e well known bug in the Linux flash player with the Socket object.

The bug has been fixed recently (yesterday :) )
Here's more info -> http://forums.smartfoxserver.com/viewtopic.php?t=2051
Lapo
--
gotoAndPlay()
...addicted to flash games
milosh6
Posts: 27
Joined: 06 Sep 2006, 14:09

Post by milosh6 »

Thanks for reply, Marco.

We are not using AS3 version. There is so many of these messages in the log and constantly that I doubt it being the hacking attempt. Also, what do you mean by linux client? Linux flash player?

This bug fix you directed me to is only for AS3 version?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

yes, there was a bug in the linux flash player with the Socket object

The error message indicates that the server has received a request made up of 1 single byte and it is complaining that it's not understandable.

SFS simply discards them so there's nothing to worry about. However if you have hundreds of them you should be checking what's going on.
I'd suggest to analyze the traffic on the server port for a while and see what is going on.
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply