| Anonymous | Login | Signup for a new account | 10-29-2025 07:31 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ 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 | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 4.0.44 | Product Version | 4.0.41 | ||||
| Product Build | |||||||||
| 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 | |||||||||
| 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. |