Malformed input warning

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

charlescearl
Posts: 3
Joined: 24 Nov 2009, 13:36

Malformed input warning

Postby charlescearl » 24 Nov 2009, 14:15

Hi,
I am running the example interface OpenSpace_tester.html
I am running SmatFoxServer 1.5.5 on Linux. I am able to log on and display avatars from windows & mac browsers. When I attempt to logon from a linux browser, I get the following error
13:37:17.378 - [ WARNING ] > Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1
java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:277)
at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:798)
at it.gotoandplay.smartfoxserver.SmartFoxServer.readIncomingMessages(SmartFoxServer.java:951)
at it.gotoandplay.smartfoxserver.EventReader.run(EventReader.java:32)
at java.lang.Thread.run(Thread.java:636)

The avatar is not displayed. The servers and mac and linux machines are running the same version of flash. Any suggestions?
User avatar
Lapo
Site Admin
Posts: 20044
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 27 Nov 2009, 07:44

Hi,
the problem is related with the Flash Player for Linux which is buggy :(
Adobe knows the problem since version 9 but hasn't provided a workaround yet :( :(
There's a good news however. We have worked around it by modifying our client API so that it doesn't use the buggy function that doesn't work in the Linux Flash Player.

NOTE: this is exclusively a Linux problem. Under Windows and MacOS X this problem does not appear.

The easiest way is to test on a Windows or Mac OS.
Otherwise you can download SmartFoxServer PRO 1.6.6, apply the latest patch 1.6.7 and recompile the example with the new provided API.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
charlescearl
Posts: 3
Joined: 24 Nov 2009, 13:36

Postby charlescearl » 04 Dec 2009, 22:30

Hi,
Could you provide more information on the patch and recompilation process?
1. Is there a script that does the patch in one go?
2. Does jysfs.jar go into jre/lib of the Server directory?
3. Do the AS2/AS3 map directly to "Actionscript 2.0" and "Actionscript 3.0" of the Server directory?
4. Is the application to recompile the OpenSpace_tester.swf?
Also, pardon me if this is detailed in the documentation.
Lastly, I note that you have an EC2 image of the Server. Does this image have the flash bugs resolved? We are running Smartfoxer server on EC2, so if this solution works, that would be the one to choose.
In the meanwhile, I am testing on Mac
Thanks
User avatar
Lapo
Site Admin
Posts: 20044
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 05 Dec 2009, 08:11

Hi,
the instructions to install the patch are contained in the zip package.
Did you check them?

Also let me clarify one thing. This is not a Server bug. The bug is the Flash Player for Linux only. So the problem is client side.
What we do is providing a set of API that contain a workaround to avoid the buggy Flash Player socket calls.

3. Do the AS2/AS3 map directly to "Actionscript 2.0" and "Actionscript 3.0" of the Server directory?

Yes, but you can put the API in any convenient location of your HD
Then you need to point the classpath of your Flash/Flex application to the API folder. Here you find more details:
http://www.smartfoxserver.com/docs/docP ... alling.htm


4. Is the application to recompile the OpenSpace_tester.swf?

Yes.

Lastly, I note that you have an EC2 image of the Server. Does this image have the flash bugs resolved? We are running Smartfoxer server on EC2, so if this solution works, that would be the one to choose.
In the meanwhile, I am testing on Mac

As I said the problem is only client side.
Lapo

--

gotoAndPlay()

...addicted to flash games
charlescearl
Posts: 3
Joined: 24 Nov 2009, 13:36

Postby charlescearl » 07 Dec 2009, 15:12

Hi,
Actually, there are no instructions in the zip archive.
You have included releaseNotes.html, but it contains no instructions and there are no other instructions.
Could you kindly email or post them?
Thanks.
User avatar
Lapo
Site Admin
Posts: 20044
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 08 Dec 2009, 16:38

Apologies for the inconvenience.
The jysfs.jar file should go in {your-sfs-folder}/Server/lib
Restart the server to apply the changes (if it's running)

The API folders can go in any directory. All you need to do is pointing your Flash classpath to that directory before recompiling.
If you are unfamiliar with the process this will help:
http://www.smartfoxserver.com/docs/docP ... alling.htm
We have a new patch coming soon, we'll make sure to include our usual installation document.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
shlomi
Posts: 83
Joined: 21 Feb 2010, 10:38
Location: Israel

the problem still occur on 1.6.9 version

Postby shlomi » 22 Aug 2010, 05:36

i have 1.6.9 version and still have the message

Code: Select all

Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1


what it's mean?

tnx

Shlomi.
User avatar
Lapo
Site Admin
Posts: 20044
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 24 Aug 2010, 07:23

A client is sending bad data to the server.
Probably this is not a SmartFox client but "something else".
Lapo

--

gotoAndPlay()

...addicted to flash games
shlomi
Posts: 83
Joined: 21 Feb 2010, 10:38
Location: Israel

ok..

Postby shlomi » 24 Aug 2010, 07:26

ok.. i'll keep my eyes on it..
shlomi
Posts: 83
Joined: 21 Feb 2010, 10:38
Location: Israel

Re: ok..

Postby shlomi » 26 Aug 2010, 08:55

Lapo,

here is the message again:

Code: Select all

INFO   | jvm 3    | 2010/08/26 04:23:55 | 04:23:55.208 - [ WARNING ] > Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1
INFO   | jvm 3    | 2010/08/26 04:23:55 | java.nio.charset.MalformedInputException: Input length = 1
INFO   | jvm 3    | 2010/08/26 04:23:55 |       at java.nio.charset.CoderResult.throwException(Unknown Source)
INFO   | jvm 3    | 2010/08/26 04:23:55 |       at java.nio.charset.CharsetDecoder.decode(Unknown Source)
INFO   | jvm 3    | 2010/08/26 04:23:55 |       at it.gotoandplay.smartfoxserver.SmartFoxServer.readIncomingMessages(SmartFoxServer.java:1016)
INFO   | jvm 3    | 2010/08/26 04:23:55 |       at it.gotoandplay.smartfoxserver.EventReader.run(EventReader.java:32)
INFO   | jvm 3    | 2010/08/26 04:23:55 |       at java.lang.Thread.run(Unknown Source)


there is any option to debug the it.gotoandplay.smartfoxserver.SmartFoxServer.readIncomingMessages function to see which message occurred the exception?
User avatar
Lapo
Site Admin
Posts: 20044
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 29 Aug 2010, 16:27

As I explained this error is not of particular importance unless you get tons of them. If so the server might be under an attack, maybe flooded by useless requests using another protocol or random data.
Lapo

--

gotoAndPlay()

...addicted to flash games
shlomi
Posts: 83
Joined: 21 Feb 2010, 10:38
Location: Israel

Postby shlomi » 30 Aug 2010, 06:40

Lapo wrote:As I explained this error is not of particular importance unless you get tons of them. If so the server might be under an attack, maybe flooded by useless requests using another protocol or random data.


i have about 15 messages like that each day.. it's count?
User avatar
Lapo
Site Admin
Posts: 20044
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 30 Aug 2010, 07:50

It's very little. I could be just a client or two, unlikely that this is an hack attack. Any sort of network app might try to connect/scan your machine for open ports.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “OpenSpace v1 discussions and help”

Who is online

Users browsing this forum: No registered users and 1 guest