https://bz.apache.org/bugzilla/show_bug.cgi?id=64061
Bug ID: 64061 Summary: sendMessageBlock throws NPE and it results in IllegalStateException of TEXT_PARTIAL_WRITING Product: Tomcat 9 Version: 9.0.21 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: WebSocket Assignee: dev@tomcat.apache.org Reporter: ende...@gmail.com Target Milestone: ----- I implemented a backend server using SpringBoot and Tomcat. On the server, I used Kafka as a backend message stream and when the backend gets a new message from Kafka, it sends a message to a browser through Websocket protocol. Sometimes, calling sendMessageBlock throws an NPE. And right after that, the server also throws another IllegalState. I think this is because NPE caused inconsistent state (TEXT_PARTIAL_WRITING). To manage sessions' subscriptions and publish, I'm using synchronized(obj) method. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org