Unexpected null or empty byte array

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

enragedmrt
Posts: 4
Joined: 08 Jul 2013, 21:50

Unexpected null or empty byte array

Postby enragedmrt » 09 Jul 2013, 15:38

Hello all,

I am currently trying to send realtime data using a byte array over Bluebox/HTTP using SmartfoxServer v2.7 and the Unity C# Client API v1.2.5 (Both are the newest releases). The byte array is wrapped in an SFSObject and sent using an ObjectMessageRequest or via a custom ExtensionRequest. The server-side debug output is listed below:

Code: Select all

09 Jul 2013 | 10:47:30,567 | ERROR | 27921397@qtp-15430150-7 | org.mortbay.log |     | /BlueBox/BlueBox.do
java.lang.IllegalArgumentException: Unexpected null or empty byte array!
   at com.smartfoxserver.v2.protocol.SFSIoHandler.onDataRead(SFSIoHandler.java:80)
   at com.smartfoxserver.v2.bluebox.BlueBox.doPost(BlueBox.java:144)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
   at com.smartfoxserver.v2.bluebox.SessionFilter.doFilter(SessionFilter.java:141)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
   at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
   at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
   at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
   at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
   at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
   at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
   at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
   at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
   at org.mortbay.jetty.Server.handle(Server.java:326)
   at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
   at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
   at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
   at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
   at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
   at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)


I have verified we are NOT sending empty or null byte arrays and this post http://www.smartfoxserver.com/forums/viewtopic.php?f=20&t=15234#p64279 has led me to believe it's a problem with the base64 encoding libraries in C# vs Java. From what I can tell, when using Bluebox/HTTP the message is base64 encoded client-side and then decoded server side (As opposed to just sending raw data over sockets). If this is the case, however, can't the client side simply encode it properly before sending it to the server? Base64 encoding is a fairly simple process and although the standard C# implementation might not be the same as the Java implementation, one can be written to ensure compatibility. Is there somewhere I can override this encoding or can the client APIs be updated to allow this, or even fix this?

Any help is greatly appreciated.

Thanks,
Grant
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unexpected null or empty byte array

Postby Lapo » 09 Jul 2013, 20:08

This problem had been addressed a while ago and since then we haven't found problems with base64 encoding.
Can you please show the exact content of the request that is being sent? In other words the SFSObject used with the ObjectMessageRequest?

We'll try to reproduce it over here.
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
enragedmrt
Posts: 4
Joined: 08 Jul 2013, 21:50

Re: Unexpected null or empty byte array

Postby enragedmrt » 09 Jul 2013, 23:04

The data I am sending is dynamic but I've located a particular byte array that seems to always produces the exception:

Code: Select all

      SFSObject sfsObject = new SFSObject();
      
      byte[] data = {147,179,113,155,0,1,58,251,18,10,189,49,27,23,136,144,169,19,25,153};
      sfsObject.PutByteArray("data", new Sfs2X.Util.ByteArray(data));
      connector.smartFox.Send(new ObjectMessageRequest(sfsObject));


Give that a try and let me know what happens.

Thanks Lapo,
Grant
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unexpected null or empty byte array

Postby Lapo » 10 Jul 2013, 08:11

Hi,
thanks the snippet definitely reproduces the problem.
We'll take a closer look and see what's happening.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
enragedmrt
Posts: 4
Joined: 08 Jul 2013, 21:50

Re: Unexpected null or empty byte array

Postby enragedmrt » 12 Jul 2013, 15:42

Thanks Lapo.

If you need any other test cases or help in any way, just let me know.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unexpected null or empty byte array

Postby Lapo » 15 Jul 2013, 10:42

UPDATE:
It doesn't look like a Bas64 encoding/decoding issue. We took the Base64 C# version of the byte array and decoded it manually on the Java side successfully.

Code: Select all

Binary size: 20
93 B3 71 9B 00 01 3A FB 12 0A BD 31 1B 17 88 90    ..q...:....1....
A9 13 19 99                                        ....           

Binary size: 20
93 B3 71 9B 00 01 3A FB 12 0A BD 31 1B 17 88 90    ..q...:....1....
A9 13 19 99                                        ....           


Top is the C# original byte array, bottom is the decoded Java bytes. Same thing, no errors.
The mystery deepens
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unexpected null or empty byte array

Postby Lapo » 15 Jul 2013, 13:51

UPDATE #2:
We have possibly found the issue in the way characters are url-encoded. The problem seems to be solved now.
If you want you can send us an email to our support@... email box with a reference to this topic and we'll send you and update to try on your side.

This will help us confirm that the problem was fixed completely.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
enragedmrt
Posts: 4
Joined: 08 Jul 2013, 21:50

Re: Unexpected null or empty byte array

Postby enragedmrt » 16 Jul 2013, 15:12

Sounds great Lapo. I'll email support shortly.
If I receive an updated client-api I'll test it again and let you know the results.

Thanks again,
Grant
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Unexpected null or empty byte array

Postby hoangdoanh » 14 Aug 2014, 09:46

Hi Lapo

We have found the similar issue .
Detail information :
- SmartFoxServer Version: 2.9.0 on MacOS
- Client : Iphone 4 (ios 7) - C++ Client Libarary version 1.1.0
- Issue happened before Session Created/Login events,etc.... on server.

Could you please advice us on this

Cheers,
Doanh

Code: Select all

15:50:28,551 DEBUG [qtp739445181-37] v3.BlueBox     - POLL Req - Session: 006fedb8b346c02b6be48681b2321c4c, (POST /BlueBox/BlueBox.do)@67735292 org.eclipse.jetty.server.Request@4098efc
15:50:29,638 DEBUG [qtp739445181-36] v3.BlueBox     - POLL Req - Session: 006fedb8b346c02b6be48681b2321c4c, (POST /BlueBox/BlueBox.do)@67735292 org.eclipse.jetty.server.Request@4098efc
15:50:29,638 DEBUG [qtp739445181-36] v3.BlueBox     - Setting and suspending new continuation: org.eclipse.jetty.continuation.Servlet3Continuation@46928101
15:50:49,640 DEBUG [qtp739445181-103] v3.BlueBox     - POLL Req - Session: 006fedb8b346c02b6be48681b2321c4c, (POST /BlueBox/BlueBox.do)@67735292 org.eclipse.jetty.server.Request@4098efc
15:50:50,724 DEBUG [qtp739445181-44] v3.BlueBox     - POLL Req - Session: 006fedb8b346c02b6be48681b2321c4c, (POST /BlueBox/BlueBox.do)@67735292 org.eclipse.jetty.server.Request@4098efc
15:50:50,724 DEBUG [qtp739445181-44] v3.BlueBox     - Setting and suspending new continuation: org.eclipse.jetty.continuation.Servlet3Continuation@3c538cd9
15:50:53,475 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,475 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,475 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,475 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,476 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,476 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,476 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,476 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,476 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,476 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,476 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,477 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,477 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,477 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,477 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,477 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,478 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,478 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,478 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,478 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,478 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,478 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,479 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,479 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,479 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,479 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,479 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,479 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,479 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,480 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,480 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,480 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,480 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,480 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,480 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,480 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,481 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,481 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,481 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,481 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,481 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,481 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,481 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,482 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,482 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,482 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,482 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,482 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,482 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,483 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,483 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,483 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,483 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,483 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,483 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,483 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,484 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,484 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,484 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,484 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,484 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,484 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,484 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,485 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,485 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,485 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,485 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,485 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,485 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,486 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,486 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,486 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,486 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,486 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,486 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,486 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,487 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,487 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,487 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,487 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,487 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,487 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,488 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,488 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,488 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,488 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,488 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,488 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,488 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,489 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,489 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,489 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,489 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,489 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,489 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,489 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,490 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,490 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,490 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,490 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,490 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,490 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,491 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,491 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,491 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,491 WARN  [qtp739445181-37] util.UrlEncoded     - org.eclipse.jetty.util.Utf8Appendable$NotUtf8Exception: Not valid UTF8! byte Ff in state 0
15:50:53,491 WARN  [qtp739445181-37] servlet.ServletHandler     - /BlueBox/BlueBox.do
java.lang.ArrayIndexOutOfBoundsException: 65533
   at sfs2x.bluebox.v3.protocol.Base64.decode(Base64.java:474)
   at sfs2x.bluebox.v3.protocol.BBMessageCodec.decode(BBMessageCodec.java:37)
   at sfs2x.bluebox.v3.SessionFilter.doFilter(SessionFilter.java:115)
   at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1615)
   at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
   at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568)
   at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
   at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110)
   at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:479)
   at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
   at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044)
   at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
   at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:199)
   at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109)
   at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
   at org.eclipse.jetty.server.Server.handle(Server.java:459)
   at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:281)
   at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232)
   at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505)
   at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607)
   at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
   at java.lang.Thread.run(Thread.java:744)
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Unexpected null or empty byte array

Postby Lapo » 14 Aug 2014, 10:59

You should start a new thread, please.
This one is over a year old, plus it's the wrong section (C#) while you have specified that you're using C++.

The C++ section is here:
http://smartfoxserver.com/forums/viewforum.php?f=34

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Unexpected null or empty byte array

Postby hoangdoanh » 15 Aug 2014, 03:40

Sorry Lapo for this .

I am reposting in new thread !

Kind regards,
Doanh
Joza9080
Posts: 1
Joined: 31 Aug 2016, 10:53

Re: Unexpected null or empty byte array

Postby Joza9080 » 01 Sep 2016, 02:14

Hey, I know this is an old thread but I can't find the new one anywhere. I am using a mod for Skyrim called Tamriel Online that is being run through this and a lot of people are having this same error that is being spoken about here. I would've expected it to have been fixed after three years to be honest. So what's up with this?

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 27 guests