My Oracle Support Banner

NullPointerException when Redeploying Application (Doc ID 1390640.1)

Last updated on NOVEMBER 21, 2019

Applies to:

Oracle Communications Converged Application Server - Version 5.0.0 and later
Information in this document applies to any platform.


Following exception is received when redeploying the application:

<Error> <WLSS.Engine> <ID>
 <AdminServer> <[ACTIVE] ExecuteThread: '16' for queue:
 'weblogic.kernel.Default (self-tuning)'> <> <> <> <>
 <BEA-330001> <Unexpected exception
 com.bea.wcp.sip.engine.server.SetupException: [WLSS.Engine:330027]Failed to
 initialize "Ticket" servlet class com.test.ticket.TestSipServlet
 java.lang.NullPointerException: the input id should not be null
 at :88)
 at com.test.ticket.TestSipServlet.init( at javax.servlet.GenericServlet.init(
Truncated. See log file for complete stack trace.

JSR309 media server connector is used in the example. Overall flow is:

1. The application after getting the factory calls createMediaSession method.

2. Inside the createMediaSession, a DlgcMediaSession is created;however, for serialization purposes   a unique application session is created for the given session. To do that,  the WorkManager is used to schedule a task. Inside the task an application session is created and the application proxyId is saved in the DlgcMediaSession.

3. This proxyId is later used during creation of other “Proxy” JSR309 components etc.

Following are the steps to reproduce the problem:

1) Start the OCCAS container.
2) Send in a call to the app.
3) Hangup the call ( the app does not send 200 okay, so call doesn't complete successfuly)
4) Redeploy app by going into admin console and updating the deployment.
5) Send in a 2nd call. You should get the exception thrown in the logs.




To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.