JES Access Manager: Missing or Wrong Configuration in DNS/Realm Alias Can Cause Severe StackOverFlow Error in AM 7.1 (Doc ID 1506170.1)

Last updated on SEPTEMBER 21, 2016

Applies to:

Oracle OpenSSO - Version 7.1 to 7.1 [Release 7.0]
Information in this document applies to any platform.

Symptoms


After Patching to AM 7.1 patch-06 done, we're getting severe issue when login to am server. This brings to a lot of StackOverFlow errors as seen in the Application Server logs (for example AS 8.2 server logs) as well as in the AM 7.1 patch-06 debug logs.

This was causing "No such organization" error as well as "no matching entries found or too many matching entries for id: http://xx.xx.xx.xx/amserver/UI/Login", all leaded to some severe LoginServlet threw exception java.lang.StackOverflowError as below:

 

IdUtils.getOrganization Exception in getting org name from AMSDK
 com.iplanet.am.sdk.AMException: Either no matching entries found or too many matching entries for id: http://xx.xx.xx.xx/amserver/UI/Login
  at com.iplanet.am.sdk.AMStoreConnection.getOrganizationDN(AMStoreConnection.java: 651)


[#|2012-10-18T15:17:55.216+0200|SEVERE|sun-appserver-ee8.2|javax.enterprise.system.container.web|_ThreadID=49;|StandardWrapperValve[LoginServlet]: Servlet.service() for servlet LoginServlet threw exception
java.lang.StackOverflowError
  at java.nio.CharBuffer.(CharBuffer.java:259)
  at java.nio.HeapCharBuffer.(HeapCharBuffer.java:52)
  at java.nio.CharBuffer.wrap(CharBuffer.java:350)
  at sun.nio.cs.StreamEncoder$CharsetSE.implWrite(StreamEncoder.java:378)
  at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:136)
  at sun.nio.cs.StreamEncoder.write(StreamEncoder.java:146)
  at java.io.OutputStreamWriter.write(OutputStreamWriter.java:204)
  at java.io.PrintWriter.write(PrintWriter.java:384)
  at java.io.PrintWriter.write(PrintWriter.java:401)
  at java.io.PrintWriter.print(PrintWriter.java:532)
  at java.io.PrintWriter.println(PrintWriter.java:669)
  at com.sun.identity.util.impl.DebugImpl.writeIt(DebugImpl.java:240)
  at com.sun.identity.util.impl.DebugImpl.writeIt(DebugImpl.java:220)
  at com.sun.identity.util.impl.DebugImpl.record(DebugImpl.java:208)
  at com.sun.identity.util.impl.DebugImpl.error(DebugImpl.java:201)
  at com.iplanet.am.util.Debug.error(Debug.java:508)
  at com.iplanet.services.util.JSSEncryption.encode(JSSEncryption.java:407)
  at com.iplanet.services.util.JSSEncryption.encrypt(JSSEncryption.java:361)
  at com.iplanet.services.util.Crypt.encode(Crypt.java:253)
  at com.sun.identity.security.EncodeAction.run(EncodeAction.java:106)
  at java.security.AccessController.doPrivileged(Native Method)
  at com.iplanet.dpro.session.service.SessionService.generateEncryptedID(SessionService.java:638)
  at com.iplanet.dpro.session.service.SessionService.generateSessionId(SessionService.java:656)
  at com.iplanet.dpro.session.service.SessionService.newInternalSession(SessionService.java:600)
  at com.iplanet.dpro.session.service.SessionService.newInternalSession(SessionService.java:569)
  at com.sun.identity.authentication.service.AuthD.newSession(AuthD.java:542)
  at com.sun.identity.authentication.service.LoginState.createSession(LoginState.java:1521)
  at com.sun.identity.authentication.service.LoginState.createAuthContext(LoginState.java:1478)
  at com.sun.identity.authentication.service.AuthUtils.getAuthContext(AuthUtils.java:312)
  at com.sun.identity.authentication.service.AuthUtils.getAuthContext(AuthUtils.java:222)
  at com.sun.identity.authentication.UI.LoginViewBean.forwardTo(LoginViewBean.java:402)
  at com.sun.identity.authentication.UI.LoginViewBean.getLoginDisplay(LoginViewBean.java:893)
  at com.sun.identity.authentication.UI.LoginViewBean.processLogin(LoginViewBean.java:816)
  at com.sun.identity.authentication.UI.LoginViewBean.forwardTo(LoginViewBean.java:508)
  at com.sun.identity.authentication.UI.LoginViewBean.getLoginDisplay(LoginViewBean.java:893)
  at com.sun.identity.authentication.UI.LoginViewBean.processLogin(LoginViewBean.java:816)
  at com.sun.identity.authentication.UI.LoginViewBean.forwardTo(LoginViewBean.java:508)
  at com.sun.identity.authentication.UI.LoginViewBean.getLoginDisplay(LoginViewBean.java:893)
  at com.sun.identity.authentication.UI.LoginViewBean.processLogin(LoginViewBean.java:816)
  at com.sun.identity.authentication.UI.LoginViewBean.forwardTo(LoginViewBean.java:508)
  at com.sun.identity.authentication.UI.LoginViewBean.getLoginDisplay(LoginViewBean.java:893)
  at com.sun.identity.authentication.UI.LoginViewBean.processLogin(LoginViewBean.java:816)
  at com.sun.identity.authentication.UI.LoginViewBean.forwardTo(LoginViewBean.java:508)
  at com.sun.identity.authentication.UI.LoginViewBean.getLoginDisplay(LoginViewBean.java:893)
  at com.sun.identity.authentication.UI.LoginViewBean.processLogin(LoginViewBean.java:816)
  at com.sun.identity.authentication.UI.LoginViewBean.forwardTo(LoginViewBean.java:508)
....
...................

Changes

 Patching from AM7.1 RTM to AM 7.1 Patch-06

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