My Oracle Support Banner

OES11g - Getting Null Pointer Exception When Using Custom Evaluation Function In Hierarchial Resource (Doc ID 1646324.1)

Last updated on APRIL 13, 2021

Applies to:

Oracle Entitlements Server - Version 11.1.2.1.0 to 11.1.2.1.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

Getting Null exception, after decide instruction, when using Custom Function to get attributes.

Seeing the next exception in log:

Nov 8, 2013 10:51:36 AM com.bea.security.providers.authorization.asi.ARME.evaluator.MasterEvaluationFunction evaluate
FINE: eval func name = <CUSTOM_FUNCTION>
Nov 8, 2013 10:51:36 AM com.bea.security.providers.authorization.asi.ExtendedContext getAttributeFromContext
FINE: trying to load data into per call attributes
Nov 8, 2013 10:51:36 AM com.bea.security.providers.authorization.asi.ExtendedContext getAttributeFromContext
FINE: trying to find sys_scope in resource converter
Nov 8, 2013 10:51:36 AM com.bea.security.providers.authorization.asi.ExtendedContext getAttributeFromContext
FINE: looking for normalized case insensitive version of attribute sys_scope ARME does not retain case
Nov 8, 2013 10:51:36 AM com.bea.security.providers.authorization.asi.ExtendedContext getAttributeFromContext
FINE: trying to find sys_scope in resource converter
Nov 8, 2013 10:51:36 AM com.bea.security.providers.authorization.asi.ExtendedContext getAttributeFromContext
FINE: getAttributeFromContext could not find a value for the requested attribute "<ATTRIBUTE>"
......
FINE: RUNTIME Exception caught: Failed to retrieve scope information.
com.bea.security.providers.authorization.asi.ARME.exceptions.ArmeRuntimeException: Failed to retrieve scope information.
at com.bea.security.providers.authorization.asi.ARME.evaluator.MasterEvaluationFunction.evaluate(MasterEvaluationFunction.java:242)
at com.bea.security.providers.authorization.asi.ARME.evaluator.BoolEvaluator.computeByCustomEvalFuncs(BoolEvaluator.java:1045)
at com.bea.security.providers.authorization.asi.ARME.evaluator.BoolEvaluator.evaluateExpression(BoolEvaluator.java:759)
at com.bea.security.providers.authorization.asi.ARME.evaluator.BoolEvaluator.getArgumentFromComponent(BoolEvaluator.java:810)
at com.bea.security.providers.authorization.asi.ARME.evaluator.BoolEvaluator.evaluateExpression(BoolEvaluator.java:731)
....
Caused by: java.lang.NullPointerException
at oracle.security.jps.az.internal.runtime.entitymanager.ResourceManagerImpl.getResourceAttributeValue(ResourceManagerImpl.java:335)
at com.bea.security.providers.authorization.asi.ARME.evaluator.EvalSession.getAttributeInternal(EvalSession.java:781)
at com.bea.security.providers.authorization.asi.ARME.evaluator.EvalSession.getAttribute(EvalSession.java:907)
at com.bea.security.providers.authorization.asi.ARME.evaluator.MasterEvaluationFunction.evaluate(MasterEvaluationFunction.java:235)
... 28 more
Nov 8, 2013 10:51:36 AM com.bea.security.providers.authorization.asi.AuthorizationProviderImpl isAccessAllowed
SEVERE: Error happens: ArmeRUNTIME Exception: Failed to retrieve scope information.
Nov 8, 2013 10:51:36 AM com.bea.security.ssal.micro.MicroAuthorizationManagerWrapper isAccessAllowed
SEVERE: The exception has been thrown by ARME. The authorization result is set to deny.
Nov 8, 2013 10:51:36 AM com.bea.security.ssal.micro.MicroAuthorizationManagerWrapper isAccessAllowed
FINE: The exception has been thrown by ARME. The authorization result is set to deny.
com.bea.security.providers.authorization.asi.InvocationException: ArmeRUNTIME Exception: Failed to retrieve scope information.
at com.bea.security.providers.authorization.asi.AuthorizationProviderImpl.isAccessAllowed(AuthorizationProviderImpl.java:396)
....
Caused by: com.wles.InternalException: ArmeRUNTIME Exception: Failed to retrieve scope information.
at com.wles.arme.Credentials_ca.exceptionTransport(Credentials_ca.java:606)
... 11 more
causal exception is:
com.wles.InternalException: ArmeRUNTIME Exception: Failed to retrieve scope information.
at com.wles.arme.Credentials_ca.exceptionTransport(Credentials_ca.java:606)
Nov 8, 2013 10:51:36 AM com.test.entitlement.TestClient query
SEVERE: Pep exception
oracle.security.jps.openaz.pep.JpsPepException: Runtime error encountered

 

 

 

Cause

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
Symptoms
Cause
Solution
References


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