Malformed input warning
-
- Posts: 3
- Joined: 24 Nov 2009, 13:36
Malformed input warning
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?
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?
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
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
-
- Posts: 3
- Joined: 24 Nov 2009, 13:36
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
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
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.
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
Yes.
As I said the problem is only client side.
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.
-
- Posts: 3
- Joined: 24 Nov 2009, 13:36
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
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
the problem still occur on 1.6.9 version
i have 1.6.9 version and still have the message
what it's mean?
tnx
Shlomi.
Code: Select all
Unexpected / Malformed input: java.nio.charset.MalformedInputException: Input length = 1
what it's mean?
tnx
Shlomi.
Re: ok..
Lapo,
here is the message again:
there is any option to debug the it.gotoandplay.smartfoxserver.SmartFoxServer.readIncomingMessages function to see which message occurred the exception?
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?
-
- Posts: 4
- Joined: 20 Nov 2019, 10:31
Re: Malformed input warning
I have this problem with window 10 , so how can I do?
- Attachments
-
- Capture.PNG
- (200.24 KiB) Not downloaded yet
Re: Malformed input warning
Hi,
you're trying to connect the SmartFoxServer 2X Admin Tool to an old SmartFoxServer 1.x instance
That won't work.
Download and install SmartFoxServer 2X from here:
https://smartfoxserver.com/download#p=installer
Thanks
ReaksmeyRT wrote:I have this problem with window 10 , so how can I do?
you're trying to connect the SmartFoxServer 2X Admin Tool to an old SmartFoxServer 1.x instance
That won't work.
Download and install SmartFoxServer 2X from here:
https://smartfoxserver.com/download#p=installer
Thanks
Return to “OpenSpace v1 discussions and help”
Who is online
Users browsing this forum: No registered users and 54 guests