Invalid Authentication Context Error when using BPM APIs (Doc ID 1935716.1)

Last updated on APRIL 22, 2016

Applies to:

Oracle Business Process Management Suite - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

You are unable to get the BPM context successfully. There will not be an exception while retrieving the context but when trying to use it you see the exception:

BPM-70684

Exception
exception.70684.type: error
exception.70684.severity: 2
exception.70684.name: Invalid authentication context.
exception.70684.description: Invalid authentication context has been passed.
exception.70684.fix: Ensure valid authentication context is passed.

 

The following exceptions have known to be associated with the same issue:

Caused by: java.lang.NullPointerException 
at oracle.bpel.services.workflow.verification.impl.WorkflowContext.hashCode(WorkflowContext.java:583) 
at java.util.HashMap.get(HashMap.java:300) 
at oracle.bpel.services.workflow.common.ThreadLocalCache.isContextValidated(ThreadLocalCache.java:146) 
at oracle.bpel.services.workflow.verification.impl.VerificationService.validateNotNullWorkflowContext(VerificationService.java:1824) 
at oracle.bpel.services.workflow.verification.impl.VerificationService.validateContext(VerificationService.java:1806)

  

Error while authenticating on behalf of user weblogic using adminContext [user=null][sessionKey=null][token=null][requester=null][objectId=null]

<Dec 5, 2014 10:54:42 AM BRST> <Error> <oracle.soa.services.workflow.query> <BEA-000000> <<.> Verification Service cannot resolve user identity.
User null cannot be found in the identity repository.
Workflow Context token cannot be null in request.

ORABPEL-30511

Verification Service cannot resolve user identity.
User null cannot be found in the identity repository.
Workflow Context token cannot be null in request.

at oracle.bpel.services.workflow.verification.impl.LocalCacheManager.lookupUser(LocalCacheManager.java:600)


Caused By: ORABPEL-10501

Illegal argument.
Illegal argument.
This is because an unexpected value, possibly null, was passed as an argument. Check the error stack and fix the cause of the error. Contact Oracle Support Services if error is not fixable.

at oracle.tip.pc.services.identity.jps.AuthorizationServiceImpl.lookupUser(AuthorizationServiceImpl.java:236)
at oracle.tip.pc.services.identity.jps.IdentityServiceImpl.lookupUser(IdentityServiceImpl.java:183)
at oracle.bpel.services.workflow.verification.impl.LocalCacheManager.lookupUser(LocalCacheManager.java:596)

 

We are embedding a BPM task Flow list in an ADF App. It gives the following error
infra] <.> Invalid Token Error in Verification Service.[[
Invalid Token Error in Verification Service. Received invalid token in null.
Verify that correct token is passed.
ORABPEL-30503

 

Also, If you log the username from the context you'll notice it is null.

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