Anonymous | Login | Signup for a new account | 12-17-2024 08:37 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0005837 | [Resin] | minor | random | 12-08-14 02:29 | 03-31-15 10:47 | ||||
Reporter | samadams | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 4.0.41 | ||||||
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(); } } } |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
There are no notes attached to this issue. |
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 25 unique queries executed. |