Mantis - Resin
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
5837 | minor | random | 12-08-14 02:29 | 03-31-15 10:47 | |
|
|||||
Reporter: | samadams | Platform: | |||
Assigned To: | ferg | OS: | |||
Priority: | normal | OS Version: | |||
Status: | closed | Product Version: | 4.0.41 | ||
Product Build: | Resolution: | fixed | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | 4.0.44 | ||
|
|||||
Summary: | 0005837: NullPointerException when closing WebSocketPrintWriter | ||||
Description: |
I've seen the following exception when calling close() on WebSocketPrintWriter: Exception in thread "pool-166-thread-48" java.lang.NullPointerException at com.caucho.remote.websocket.WebSocketWriter.complete(WebSocketWriter.java:251) at com.caucho.remote.websocket.WebSocketWriter.close(WebSocketWriter.java:200) at com.caucho.remote.websocket.WebSocketPrintWriter.close(WebSocketPrintWriter.java:56) Code snippet: public void publishMessage(final WebSocketContext context, final String message) throws IOException { PrintWriter writer = null; try { writer = context.startTextMessage(); writer.print(message); } finally { if (writer != null) { writer.close(); } } } |
||||
Steps To Reproduce: | |||||
Additional Information: | |||||
Relationships | |||||
Attached Files: |
There are no notes attached to this issue. |