Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4584 | crash | always | 05-31-11 06:07 | 05-31-11 17:03 | |
|
|||||
Reporter: | ihristov | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.18 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.19 | ||
|
|||||
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) |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|