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

Last updated on MARCH 07, 2016

Applies to:

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

Symptoms

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(SipServletRequestImpl.java:1436)
at com.bea.wcp.sip.engine.server.B2buaHelperImpl.createRequest(B2buaHelperImpl.java:392)
at com.bea.wcp.sip.engine.B2buaHelperAdapter.createRequest(B2buaHelperAdapter.java:217)
at com.vz.sc.siputils.SipMsgHelperB2B.createINVITE(SipMsgHelperB2B.java:89)

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.

Cause

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