My Oracle Support Banner

"Exception Message : Java heap space" Thrown in Logs While OID 11g Server Chaining Enabled | java.lang.OutOfMemoryError. ODSM Fails with java.lang.NullPointerException / ADF_FACES-60097 (Doc ID 1465974.1)

Last updated on OCTOBER 15, 2019

Applies to:

Oracle Internet Directory - Version 11.1.1.6.0 to 11.1.1.7.0 [Release 11g]
Information in this document applies to any platform.

Symptoms

Server chaining has been configured with Active Directory.

Errors from OID LOGS:

Showing the following error:

[2012-06-05T10:33:31-05:00] [OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: <OID_HOSTNAME>] [pid: <PID>] [tid: <TID>] [ecid: <ECID>] ServerWorker (REG):[[
BEGIN
ConnID:37 mesgID:12 OpID:11  OpName:search ConnIP:::ffff:<IP_ADDRESS> ConnDN:cn=orcladmin
ERROR * sgslpip_invokeJPlg * Exception thrown while executing Java Plug-in oidscad.jar
END
]]
[2012-06-05T10:33:31-05:00] [OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: <OID_HOSTNAME>] [pid: <PID>] [tid: <TID>] [ecid: <ECID>] ServerWorker (REG):[[
BEGIN
ConnID:37 mesgID:12 OpID:11  OpName:search ConnIP:::ffff:<IP_ADDRESS> ConnDN:cn=orcladmin
ERROR * sgslpip_invokeJPlg * Server Chaining error.
END
]]
[2012-06-05T10:33:31-05:00] [OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: <OID_HOSTNAME>] [pid: <PID>] [tid: <TID>] [ecid: <ECID>] ServerWorker (REG):[[
BEGIN
ConnID:37 mesgID:12 OpID:11  OpName:search ConnIP:::ffff:<IP_ADDRESS> ConnDN:cn=orcladmin
ERROR * sgslpex_exceptionHndlr * Exception Message : Java heap space
ERROR * sgslpex_exceptionHndlr * The Exception Stack Trace :
java.lang.OutOfMemoryError
java.util.Arrays.copyOf(Arrays.java:2882)
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
java.lang.StringBuffer.append(StringBuffer.java:224)
oracle.ldap.util.DistinguishedName.normalizeDN(DistinguishedName.java:425)
oracle.ldap.util.DistinguishedName.<init>(DistinguishedName.java:74)
SCAD.mappingGroupSearchResults(SCAD.java:1514)
SCAD.searchADGroup(SCAD.java:1378)
SCAD.when_search(SCAD.java:485)
END
]]

 

Or, example from 11.1.1.7.0 OID ldap server log:

[2018-09-27T09:01:23-05:00] [OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: <OID_HOSTNAME>] [pid: <PID>] [tid: <TID>] [ecid: <ECID>] ServerWorker (REG):[[
BEGIN
ConnID:356 mesgID:12 OpID:11  OpName:search ConnIP:<IP_ADDRESS> ConnDN:cn=orcladmin
ERROR * sgslpip_invokeJPlg * Exception thrown while executing Java Plug-in oidscad.jar
END
]]
[2018-09-27T09:01:23-05:00] [OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: <OID_HOSTNAME>] [pid: <PID>] [tid: <TID>] [ecid: <ECID>] ServerWorker (REG):[[
BEGIN
ConnID:356 mesgID:12 OpID:11  OpName:search ConnIP:<IP_ADDRESS> ConnDN:cn=orcladmin
ERROR * sgslpip_invokeJPlg * Server Chaining error.
END
]]
[2018-09-27T09:01:23-05:00] [OID] [NOTIFICATION:16] [] [OIDLDAPD] [host: <OID_HOSTNAME>] [pid: <PID>] [tid: <TID>] [ecid: <ECID>] ServerWorker (REG):[[
BEGIN
ConnID:356 mesgID:12 OpID:11  OpName:search ConnIP:<IP_ADDRESS> ConnDN:cn=orcladmin
ERROR * sgslpex_exceptionHndlr * Exception Message : GC overhead limit exceeded
 ERROR * sgslpex_exceptionHndlr * The Exception Stack Trace :
java.lang.OutOfMemoryError
java.util.Arrays.copyOf(Arrays.java:2882)
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
java.lang.StringBuffer.append(StringBuffer.java:224)
oracle.ldap.util.DistinguishedName.normalizeDN(DistinguishedName.java:425)
oracle.ldap.util.DistinguishedName.addAll(DistinguishedName.java:286)
SCAD.replaceStr(SCAD.java:1726)
SCAD.mappingGroupSearchResults(SCAD.java:1499)
SCAD.searchADGroup(SCAD.java:1386)
SCAD.when_search(SCAD.java:486)
END
]]

 

Additional symptoms:

When logging into ODSM, there is a long pause before coming back with an error message indicating to check the web server logs. After the error the page does not load fully.

Or any of the below:

- Logging into ODSM to the default Home tab, getting exception below
- Logging into ODSM selecting the Schema tab, it connects ok but displays an empty page.
- Logging into ODSM selecting the Security or Data Browser tabs works ok.

java.lang.NullPointerException

ADF_FACES-60097:For more information, please see server's error
log for an entry beginning with: ADF_FACES-60096:Server Exception
during PPR, #26


Potential WLS Managed Server wls_ods1 logs errors:

[2012-05-23T11:41:48.844-05:00] [AdminServer] [ERROR] [] [oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: <ECID>] [APP: em] ADF_FACES-60096:Server Exception during PPR, #1[[
javax.el.ELException: java.lang.NullPointerException

 

####<Sep 26, 2018 1:38:15 PM CDT> <Notice> <Diagnostics> <> <wls_ods1> <[STANDBY] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <[string]> <[string]> <BEA-320068> <Watch 'UncheckedException' with severity 'Notice' on server 'wls_ods1' has triggered at Sep 26, 2018 1:38:15 PM CDT. Notification details: 
WatchRuleType: Log 
WatchRule: (SEVERITY = 'Error') AND ((MSGID = 'WL-101020') OR (MSGID = 'WL-101017') OR (MSGID = 'WL-000802') OR (MSGID = 'BEA-101020') OR (MSGID = 'BEA-101017') OR (MSGID = 'BEA-000802')) 
WatchData: DATE = Sep 26, 2018 1:38:15 PM CDT SERVER = wls_ods1 MESSAGE = [ServletContext@13233372[app:odsm module:/odsm path:/odsm spec-version:2.5 version:11.1.1.2.0]] Servlet failed with Exception
javax.el.ELException: java.lang.IndexOutOfBoundsException: Posn: -1, Size: 0
at javax.el.BeanELResolver.getValue(BeanELResolver.java:298)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
at com.sun.el.parser.AstValue.getValue(AstValue.java:138)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:206)
...<etc>...
Caused By: java.lang.IndexOutOfBoundsException: Posn: -1, Size: 0
at javax.naming.ldap.LdapName.getPrefix(LdapName.java:240)
at com.sun.jndi.toolkit.ctx.Continuation.fillInException(Continuation.java:133)
at com.sun.jndi.ldap.LdapCtx.searchAux(LdapCtx.java:1877)
at com.sun.jndi.ldap.LdapCtx.c_search(LdapCtx.java:1749)
...<etc>...

 

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.