Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004584 [Resin] crash always 05-31-11 06:07 05-31-11 17:03
Reporter ihristov View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.19 Product Version 4.0.18
  Product Build
Summary 0004584: Exception: java.lang.ArrayIndexOutOfBoundsException: 8192
Description 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.
Steps To Reproduce
Additional Information 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)
Attached Files

- Relationships

- Notes
(0005283)
ferg
05-31-11 17:03

server/1o24
 

- Issue History
Date Modified Username Field Change
05-31-11 06:07 ihristov New Issue
05-31-11 17:03 ferg Note Added: 0005283
05-31-11 17:03 ferg Assigned To  => ferg
05-31-11 17:03 ferg Status new => closed
05-31-11 17:03 ferg Resolution open => fixed
05-31-11 17:03 ferg Fixed in Version  => 4.0.19


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker