My Oracle Support Banner

Illegalstateexception: The Original Request Must Be Received On Occas 5 (Doc ID 1347752.1)

Last updated on JUNE 19, 2018

Applies to:

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


While running a basic B2B call:

OUA connects to TUA1
TUA1 performs a transfer (using a REFER message)

When attempting to use the SipServlet API v1.1 B2buaHelper class to create new INVITE to TUA2
B2buaHelper b2bHelper = req.getB2buaHelper();
newInvite = b2bHelper.createRequest(req, false, hdrsToOverride);
 req = INVITE from OUA

This operation worked in OCCAS 4 but does not work in OCCAS 5. 

The following exception is obtained:
2011-05-18 16:53:05,432 [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] DEBUG ccl.CCS - IPTFApp-10518165 - Could not create new leg.
java.lang.IllegalStateException: The Original Request must be received and initial
at com.bea.wcp.sip.engine.server.SipServletRequestImpl.setRoutingDirective(
at com.bea.wcp.sip.engine.server.B2buaHelperImpl.createRequest(
at com.bea.wcp.sip.engine.B2buaHelperAdapter.createRequest(

Use case
OUA sends INVITE to B2BApp
B2BApp creates new INVITE using B2buaHelper class (SipServlet API 1.1)
B2BApp sends INVITE to TUA1
TUA1 sends 200 OK
RTP between OUA and TUA1 successful

TUA1 sends in a REFER message with Refer-To header
B2BApp creates new INVITE using B2buaHelper class (SipServlet API 1.1)
Fail with a IllegalStateException to create new INVITE.


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.