https://issues.apache.org/bugzilla/show_bug.cgi?id=54749

            Bug ID: 54749
           Summary: StackOverflowException in echo endpoint example
           Product: Tomcat 8
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: rstoyanc...@yahoo.com
    Classification: Unclassified

The programmatic EchoEndpoint causes stack overflow when Disconnect is pressed.
Is there a good reason for calling session.close inside onClose?

java.lang.StackOverflowError
        at java.lang.Thread.getContextClassLoader(Thread.java:1444)
        at
org.apache.tomcat.websocket.WsSession.fireEndpointOnClose(WsSession.java:377)
        at org.apache.tomcat.websocket.WsSession.close(WsSession.java:337)
        at websocket.echo.EchoEndpoint.onClose(EchoEndpoint.java:40)
        at
org.apache.tomcat.websocket.WsSession.fireEndpointOnClose(WsSession.java:380)
        at org.apache.tomcat.websocket.WsSession.close(WsSession.java:337)
        at websocket.echo.EchoEndpoint.onClose(EchoEndpoint.java:40)

-- 
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

Reply via email to