Mantis - Resin
Viewing Issue Advanced Details
4584 crash always 05-31-11 06:07 05-31-11 17:03
ihristov  
ferg  
normal  
closed 4.0.18  
fixed  
none    
none 4.0.19  
0004584: Exception: java.lang.ArrayIndexOutOfBoundsException: 8192
A bug in WebSocketWriter class causes java.lang.ArrayIndexOutOfBoundsException. Messages larger than 8192 bytes will cause this exception due to improper use of the initial string length. Since the buffer is 4096 characters (8192 bytes) all messages larger than that are truncated into the buffer but the message initial length is still used, thus causing ArrayIndexOutOfBoundsException.
Exception: java.lang.ArrayIndexOutOfBoundsException: 8192
    at com.caucho.remote.websocket.WebSocketWriter.write(WebSocketWriter.java:125)
    at java.io.Writer.write(Writer.java:175)
    at java.io.PrintWriter.write(PrintWriter.java:412)
    at java.io.PrintWriter.write(PrintWriter.java:429)
    at some.company.WebSocketServlet$1.run(WebSocketServlet.java:100)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

Notes
(0005283)
ferg   
05-31-11 17:03   
server/1o24