IBM Support

PM46243: NAMINGEXCEPTION OCCURS DURING LOOKUP OF WEBSPHERE VERSION 4 DATA SOURCES

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Lookup of a WebSphere Application Server Version 4 data source
    can fail with a javax.naming.NamingException, which is caused
    by a java.security.AccessControlException. The stack trace for
    the exception is shown below
    
    Caused by: javax.naming.NamingException: Exception: Access
    denied (java.lang.RuntimePermission getClassLoader) [Root
    exception is java.security.AccessControlException: Access
    denied (java.lang.RuntimePermission getClassLoader)]
    at
    com.ibm.websphere.advanced.cm.factory.DataSourceFactory$Resource
    ReferenceObjectFactory.getObjectInstance(DataSourceFactory.java:
    997)
    at
    javax.naming.spi.NamingManager.getObjectInstanceByFactoryInRefer
    ence(NamingManager.java:485)
    at
    javax.naming.spi.NamingManager.getObjectInstance(NamingManager.j
    ava:350)
    at
    com.ibm.ws.naming.util.Helpers.processSerializedObjectForLookupE
    xt(Helpers.java:927)
    ... 68 more
    Caused by: java.security.AccessControlException: Access denied
    (java.lang.RuntimePermission getClassLoader)
    at
    java.security.AccessController.checkPermission(AccessController.
    java:108)
    at
    java.lang.SecurityManager.checkPermission(SecurityManager.java:5
    44)
    at
    com.ibm.ws.security.core.SecurityManager.checkPermission(Securit
    yManager.java:206)
    at java.lang.Thread.getContextClassLoader(Thread.java:456)
    at
    com.ibm.websphere.advanced.cm.factory.DataSourceFactory.createCM
    Properties(DataSourceFactory.java:1018)
    at
    com.ibm.websphere.advanced.cm.factory.DataSourceFactory.access$2
    00(DataSourceFactory.java:124)
    at
    com.ibm.websphere.advanced.cm.factory.DataSourceFactory$Resource
    ReferenceObjectFactory.getObjectInstance(DataSourceFactory.java:
    972)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server V8.0                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: Lookup of a WebSphere Application       *
    *                      Server v4 Datasource fails with a       *
    *                      NamingException caused by a             *
    *                      java.security.AccessControlException    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    *                                                              *
    ****************************************************************
    The Application Server tries to get the
    ThreadContextClassLoader in the application thread when an
    application looks up a WebSphere v4 datasource. Since the
    application does not have permission to get the
    ThreadContextClassLoader a java.security.AccessControlException
    is thrown.
    

Problem conclusion

  • To prevent the java.security.AccessControlException, the
    Application server now gets the ThreadContextClassLoader
    within a doPrivileged block.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.2.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM46243

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-08-24

  • Closed date

    2011-10-25

  • Last modified date

    2011-10-25

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

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

Fix information

  • Fixed component name

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 October 2021