https://bz.apache.org/bugzilla/show_bug.cgi?id=63487

            Bug ID: 63487
           Summary: WsSessionListener does not implement
                    HttpSessionListener.sessionCreated
           Product: Tomcat 9
           Version: 9.0.17
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Servlet
          Assignee: dev@tomcat.apache.org
          Reporter: trevin.beat...@gigsternetwork.com
  Target Milestone: -----

Our application is logging the following exception repeatedly:

java.lang.AbstractMethodError:
org.apache.tomcat.websocket.server.WsSessionListener.sessionCreated(Ljavax/servlet/http/HttpSessionEvent;)V
 at
org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:388)
 at org.apache.catalina.session.StandardSession.setId(StandardSession.java:360)
 at org.apache.catalina.session.StandardSession.setId(StandardSession.java:341)
 at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:686)
 at org.apache.catalina.connector.Request.doGetSession(Request.java:3027)
…

This does not appear to impact the usability of the application, but it is
generating a lot of output to the log file and we are running into issues with
disk space.  I checked the source code, and found that while WsSessionListener
claims to implement javax.servlet.http.HttpSessionListener, it does not
implement the sessionCreated method.

In Tomcat 8.5, sessionCreated WAS implemented (as a no-op).

I don’t see how WsSessionListener could have compiled without implementing all
of HttpSessionListener’s methods, but that is what’s causing the
AbstractMethodError.

I checked versions 9.0.20 and 9.0.1 of the source code as well, and it appears
neither HttpSessionListener.java nor WsSessionListener.java have changed in all
those revisions.

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