OAM 12.2.1.4 - NullPointerException After Adding "-Doracle.oam.EnableExtraSAMLAttr=true"
(Doc ID 2757820.1)
Last updated on SEPTEMBER 12, 2023
Applies to:
Oracle Access Manager - Version 12.2.1.4.0 and laterInformation in this document applies to any platform.
Symptoms
Federation environment - OAM is the SP
OAM 12.2.1.4.200909
IdP is sending a large number of attributes in SAML Assertion and OAM store them in the OAM session (more than 40 attributes).
Initially Customer encountered the "Oam Session supports only 40 string type properties" error:
[2020-10-29......] [<oam_server_name>] [ERROR] [][oracle.oam.engine.session][APP: oam_server] [partition-name:DOMAIN] [tenant-name: GLOBAL] Oam Session supports only 40 string type properties
.......
For overcoming this error, was added parameter "-Doracle.oam.EnableExtraSAMLAttr=true" in the setDomainEnv.sh under EXTRA_JAVA_PROPERTIES
After this parameter was added, the NullPointerException was thrown in "getEncLongerStringPropertiesWithExtraSAMLAttr()":
SSO session creation failed.[[
oracle.security.am.common.utilities.exception.AmRuntimeException: Unable to create and persist user session
at oracle.security.am.engines.sso.adapter.AbstractSessionAdapterImpl.createUpdateSession(AbstractSessionAdapterImpl.java:692)
at oracle.security.am.engines.sso.adapter.HighlyAvailableUserSessionAdapterImpl.lambda$createUpdateSession$8(HighlyAvailableUserSessionAdapterImpl.java:152)
at oracle.security.am.engines.sso.adapter.HighlyAvailableSessionAdapterHelper.invokeOperationWithFallback(HighlyAvailableSessionAdapterHelper.java:86)
at oracle.security.am.engines.sso.adapter.HighlyAvailableSessionAdapterHelper.invokeOperation(HighlyAvailableSessionAdapterHelper.java:54)
at oracle.security.am.engines.sso.adapter.HighlyAvailableUserSessionAdapterImpl.createUpdateSession(HighlyAvailableUserSessionAdapterImpl.java:156)
at oracle.security.am.engines.enginecontroller.SSOEngineController.createSession(SSOEngineController.java:4293)
...........
Caused by: java.lang.NullPointerException
at oracle.security.am.foundation.sme.dbimpl.beans.OamSession.getEncLongerStringPropertiesWithExtraSAMLAttr(OamSession.java:2588)
at oracle.security.am.foundation.sme.dbimpl.beans.OamSession.getEncLongerStringMapofmaps(OamSession.java:2509)
at oracle.security.am.engines.sme.mgrdb.Util.getSessionImpl(Util.java:362)
at oracle.security.am.engines.sme.mgrdb.Util.getOAMSessionObject(Util.java:283)
at oracle.security.am.engines.sme.mgrdb.SessionManagerImpl.doCreateSession(SessionManagerImpl.java:1892)
at oracle.security.am.engines.sme.mgrdb.SessionManagerImpl.doAggregationInternal(SessionManagerImpl.java:2109)
at oracle.security.am.engines.sme.mgrdb.SessionManagerImpl.doAggregation(SessionManagerImpl.java:2063)
at oracle.security.am.engines.sme.mgrdb.SessionManagerImpl.createSession(SessionManagerImpl.java:1867)
at oracle.security.am.engines.sme.mgrdb.SessionManagerImpl.createSession(SessionManagerImpl.java:283)
at oracle.security.am.engines.sso.adapter.AbstractSessionAdapterImpl.createSession(AbstractSessionAdapterImpl.java:968)
at oracle.security.am.engines.sso.adapter.AbstractSessionAdapterImpl.createSession(AbstractSessionAdapterImpl.java:931)
at oracle.security.am.engines.sso.adapter.AbstractSessionAdapterImpl.createUpdateSession(AbstractSessionAdapterImpl.java:672)
... 56 more
]]
................
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 |