google-code-export / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
1 stars 3 forks source link

No other engines except TCPEngine work #143

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using the latest stable build and any nightly build, only TCPEngine works.  
This has been reported by numerous users on the forums.

Using the NioTcpEngine, for example, gives this error:

2011-11-17 11:53:46,652 DEBUG - TokenServer: Sending token '{type=response, 
code=0, msg=ok, utid=31, ns=org.jwebsocket.plugins.channels, reqType=subscribe, 
channelId=control_res}' to 'org.jwebsocket.tcp.nio.NioTcpConnector@1c6e818'...
2011-11-17 11:53:46,653 DEBUG - CustomServer: Processing data packet 
'{"ns":"org.jwebsocket.plugins.channels","type":"subscribe","channel":"control_r
es","accessKey":"control","utid":31}'...
2011-11-17 11:53:46,653 DEBUG - NioTcpEngine: aBuffer.length: 160, 
lPayloadStartIndex: 8
2011-11-17 11:53:46,653 ERROR - NioTcpEngine: (other) 
ArrayIndexOutOfBoundsException: null
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at 
org.jwebsocket.tcp.nio.NioTcpConnector.extendPacketBuffer(NioTcpConnector.java:1
24)
at org.jwebsocket.tcp.nio.NioTcpEngine.readHybi(NioTcpEngine.java:550)
at org.jwebsocket.tcp.nio.NioTcpEngine.access$1300(NioTcpEngine.java:57)
at org.jwebsocket.tcp.nio.NioTcpEngine$ReadWorker.doRead(NioTcpEngine.java:397)
at 
org.jwebsocket.tcp.nio.NioTcpEngine$ReadWorker.access$1100(NioTcpEngine.java:342
)
at 
org.jwebsocket.tcp.nio.NioTcpEngine$ReadWorker$1.handleDelayedPacket(NioTcpEngin
e.java:367)
at org.jwebsocket.tcp.nio.NioTcpConnector.notifyWorker(NioTcpConnector.java:191)
at 
org.jwebsocket.tcp.nio.NioTcpConnector.extendPacketBuffer(NioTcpConnector.java:1
27)
at org.jwebsocket.tcp.nio.NioTcpEngine.readHybi(NioTcpEngine.java:531)
at org.jwebsocket.tcp.nio.NioTcpEngine.access$1300(NioTcpEngine.java:57)
at org.jwebsocket.tcp.nio.NioTcpEngine$ReadWorker.doRead(NioTcpEngine.java:397)
at 
org.jwebsocket.tcp.nio.NioTcpEngine$ReadWorker.access$1100(NioTcpEngine.java:342
)
at 
org.jwebsocket.tcp.nio.NioTcpEngine$ReadWorker$1.handleDelayedPacket(NioTcpEngin
e.java:367)
at org.jwebsocket.tcp.nio.NioTcpConnector.notifyWorker(NioTcpConnector.  

Original issue reported on code.google.com by rbertema...@gmail.com on 17 Nov 2011 at 5:15