IBM Support

PM23423: -DJAVA.SECURITY.DEBUG=ACCESS CAUSES RECURSIVE STACK TRACE, STACKOVERFLOWERROR, & CORBA::INTERNAL WITH ERROR CODE C9C25808

Fixes are available

6.1.0.37: Java SDK 1.5 SR12 FP3 Cumulative Fix for WebSphere
7.0.0.17: Java SDK 1.6 SR9 FP1 Cumulative Fix for WebSphere Application Server
6.1.0.47: WebSphere Application Server V6.1 Fix Pack 47
7.0.0.27: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
6.1.0.39: Java SDK 1.5 SR12 FP4 Cumulative Fix for WebSphere Application Server
6.1.0.41: Java SDK 1.5 SR12 FP5 Cumulative Fix for WebSphere Application Server
6.1.0.43: Java SDK 1.5 SR13 Cumulative Fix for WebSphere Application Server
6.1.0.45: Java SDK 1.5 SR14 Cumulative Fix for WebSphere Application Server
6.1.0.47: Java SDK 1.5 SR16 Cumulative Fix for WebSphere Application Server
7.0.0.19: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.21: Java SDK 1.6 SR9 FP2 Cumulative Fix for WebSphere
7.0.0.23: Java SDK 1.6 SR10 FP1 Cumulative Fix for WebSphere
7.0.0.25: Java SDK 1.6 SR11 Cumulative Fix for WebSphere Application Server
7.0.0.27: Java SDK 1.6 SR12 Cumulative Fix for WebSphere Application Server
7.0.0.29: Java SDK 1.6 SR13 FP2 Cumulative Fix for WebSphere Application Server
7.0.0.45: Java SDK 1.6 SR16 FP60 Cumulative Fix for WebSphere Application Server
7.0.0.31: Java SDK 1.6 SR15 Cumulative Fix for WebSphere Application Server
7.0.0.35: Java SDK 1.6 SR16 FP1 Cumulative Fix for WebSphere Application Server
7.0.0.37: Java SDK 1.6 SR16 FP3 Cumulative Fix for WebSphere Application Server
7.0.0.39: Java SDK 1.6 SR16 FP7 Cumulative Fix for WebSphere Application Server
7.0.0.41: Java SDK 1.6 SR16 FP20 Cumulative Fix for WebSphere Application Server
7.0.0.43: Java SDK 1.6 SR16 FP41 Cumulative Fix for WebSphere Application Server
Obtain the fix for this APAR.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • While using the setting -Djava.security.debug=access a user may
    get a repeating error stack and eventually see a
    java/lang/StackOverflowError due to system exception
    CORBA::INTERNAL with error code C9C25808.
    The recursive stack trace may look like this:
    
    .at java/net/URLClassLoader$ClassFinder.run
    (URLClassLoader.java:1032)
    .at java/security/AccessController.doPrivileged
    (AccessController.java:279)
    .at java/net/URLClassLoader.findClass (URLClassLoader.java:491)
    .at java/lang/ClassLoader.loadClass (ClassLoader.java:631)
    .at sun/misc/Launcher$AppClassLoader.loadClass
    (Launcher.java:349)
    .at java/lang/ClassLoader.loadClass (ClassLoader.java:597)
    .at com/ibm/ws390/utility/PrintStreamErrWriter.println
    (PrintStreamErrWriter.j
    .at com/ibm/ws390/utility/PrintStreamErrWriter.print
    (PrintStreamErrWriter.jav
    .at java/security/AccessControlContext.debugPrintAccess
    (AccessControlContext.
    .at java/security/AccessController.checkPermission
    (AccessController.java:112)
    .at java/lang/SecurityManager.checkPermission
    (SecurityManager.java:558)
    .at java/lang/SecurityManager.checkRead
    (SecurityManager.java:897)
    .at java/io/File.exists (File.java:729)
    .at sun/misc/URLClassPath$FileLoader.getResource
    (URLClassPath.java:1170)
    .at sun/misc/URLClassPath.getResource (URLClassPath.java:325)
    .at java/net/URLClassLoader$ClassFinder.run
    (URLClassLoader.java:1032)
    .at java/security/AccessController.doPrivileged
    (AccessController.java:279)
    .at java/net/URLClassLoader.findClass (URLClassLoader.java:491)
    .at java/lang/ClassLoader.loadClass (ClassLoader.java:631)
    .at sun/misc/Launcher$AppClassLoader.loadClass
    (Launcher.java:349)
    .at java/lang/ClassLoader.loadClass (ClassLoader.java:597)
    .at com/ibm/ws390/utility/PrintStreamErrWriter.println
    (PrintStreamErrWriter.j
    .at com/ibm/ws390/utility/PrintStreamErrWriter.print
    (PrintStreamErrWriter.java
    

Local fix

  • Remove the use of -Djava.security.debug=access
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V6.1.0                               *
    ****************************************************************
    * PROBLEM DESCRIPTION: With -Djava.security.debug=access       *
    *                      enabled, users will see stack trace     *
    *                      recursion lead to a StackOverflowError  *
    *                      and error code C9C25808 during server   *
    *                      startup.                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When -Djava.security.debug=access is enabled, users will see
    in the java stack trace repeating lines like:
      at java/io/File.exists
      at sun/misc/URLClassPath$FileLoader.getResource
      at sun/misc/URLClassPath.getResource
      at java/net/URLClassLoader$ClassFinder.run
      at java/security/AccessController.doPrivileged
      at java/net/URLClassLoader.findClass
      at java/lang/ClassLoader.loadClass
      at sun/misc/Launcher$AppClassLoader.loadClass
      at java/lang/ClassLoader.loadClass
      at com/ibm/ws390/utility/PrintStreamErrWriter.println
      at com/ibm/ws390/utility/PrintStreamErrWriter.print
      at java/security/AccessControlContext.debugPrintAccess
      at java/security/AccessController.checkPermission
      at java/lang/SecurityManager.checkPermission
      at java/lang/SecurityManager.checkRead
    This will eventually be followed by a
    java/lang/StackOverflowError accompanied by:
      BBOO0010W The function CPPtoJAVAUtilities::startServer()+233
        raised CORBA system exception CORBA::INTERNAL.  Error code
        is C9C25808.
    This occurs when the JVM attempts to load its PolicyFile and
    triggers a security lookup for "Read Permission" on that file.
    The debugging code attempts to trace the security lookup out to
    stderr. com/ibm/ws390/utility/PrintStreamErrWriter intercepts
    this attempt to write to stderr and tries to load a Resource
    which triggers a security lookup for "Read Permission" and the
    cycle begins again.
    

Problem conclusion

  • The problem is solved by staticly preloading the
    com.ibm.ws390.utility.JAVAtoCPPUtilities class in the beginning
    of the com.ibm.ws390.utility.PrintStreamErrWriter class before
    print or println ever get called. With the class preloaded
    the security lookup will be done once at initialization and is
    out of the way of the print calls.
    
    APAR PM23423 is currently targeted for inclusion in
    Service Level (Fix Pack) 6.1.0.37 of WebSphere
    Application Server V6.1
    
    Please refer to URL:
    //www.ibm.com/support/docview.wss?rs=404&uid=swg27006970
    for Fix Pack availability.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM23423

  • Reported component name

    WEBSPHERE FOR Z

  • Reported component ID

    5655I3500

  • Reported release

    610

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-09-28

  • Closed date

    2010-12-20

  • Last modified date

    2011-05-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    PM37633

Fix information

  • Fixed component name

    WEBSPHERE FOR Z

  • Fixed component ID

    5655I3500

Applicable component levels

  • R610 PSY UK65883

       UP11/04/06 P F104

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SS7K4U","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
25 October 2021