Help me figure out the cause of this exception

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
khanhdev
Posts: 30
Joined: 24 Mar 2017, 11:32

Help me figure out the cause of this exception

Postby khanhdev » 10 Oct 2020, 04:58

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.IllegalArgumentException
Message: Illegal request size: 0 bytes, from: { Id: 45, Type: DEFAULT, Logged: No, IP: 141.98.83.11:64126 }
Sender: { Id: 45, Type: DEFAULT, Logged: No, IP: 141.98.83.11:64126 }
+--- --- ---+
Stack Trace:
+--- --- ---+
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler.validateIncomingDataSize(BinaryIoHandler.java:511)
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler.handleDataSize(BinaryIoHandler.java:295)
com.smartfoxserver.v2.protocol.binary.BinaryIoHandler.handleRead(BinaryIoHandler.java:183)
com.smartfoxserver.v2.protocol.SFSIoHandler.onDataRead(SFSIoHandler.java:143)
com.smartfoxserver.bitswarm.core.SocketReader.readTcpData(SocketReader.java:336)
com.smartfoxserver.bitswarm.core.SocketReader.readIncomingSocketData(SocketReader.java:220)
com.smartfoxserver.bitswarm.core.SocketReader.run(SocketReader.java:171)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
java.lang.Thread.run(Thread.java:748)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Help me figure out the cause of this exception

Postby Lapo » 11 Oct 2020, 16:49

Hi,
this is garbage data coming from a client. In other words a client that does not speak the SFS2X protocol has probably connected and tried to send data. This in turn causes an error as the byte stream does not contain data that is understood by SFS2X.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
khanhdev
Posts: 30
Joined: 24 Mar 2017, 11:32

Re: Help me figure out the cause of this exception

Postby khanhdev » 12 Oct 2020, 03:08

Lapo wrote:Hi,
this is garbage data coming from a client. In other words a client that does not speak the SFS2X protocol has probably connected and tried to send data. This in turn causes an error as the byte stream does not contain data that is understood by SFS2X.

Cheers


Thank you :P

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 123 guests