OCCAS Returns SipApplicationSessionEvent With Wrong SipApplicationSession Class

(Doc ID 1099153.1)

Last updated on SEPTEMBER 22, 2016

Applies to:

Oracle Communications Converged Application Server - Version: 4.0.0 and later   [Release: 4.0.0 and later ]
Information in this document applies to any platform.


When implementing a SipApplicationSessionActivationListener, the SipApplicationSessionEvent given in methods such as 'public void sessionDidActivate(SipApplicationSessionEvent ev) ' contains the wrong session object 'com.bea.wcp.sip.engine.server.SipApplicationSessionImpl'.

According to JSR 289, class SipApplicationSessionEvent.getApplicationSession()  must return com.bea.wcp.sip.engine.SipApplicationSessionAdapter instead because this is the implementation class implementing the interface javax.servlet.sip.SipApplicationSession.

The result are various Exceptions when trying to use the returned SIP application session class.

java.lang.ClassCastException: com.bea.wcp.sip.engine.server.SipApplicationSessionImpl cannot be cast to com.bea.wcp.sip.engine.SipApplicationSessionAdapter


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms