PQ52176: GETTING NULLPOINTEREXCPETION AT INITIAL CONTEXT AS COM.IBM.WS.NAMING.UTIL.HELPERS CLASS DOES NOT PROPERLY HANDLE

APAR status
Closed as program error.

Error description
Getting NullPointerExcpetion at initial context as
com.ibm.ws.naming.util.Helpers class does not properly handle
null values returned by java.lang.Class.getClassLoader()
Local fix
n/a
Problem summary
****************************************************************
* USERS AFFECTED: All WebSphere Application Server users.      *
****************************************************************
* PROBLEM DESCRIPTION: NullPointerException at initial         *
*                      context due to the helper class not     *
*                      handling null values.                   *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
Helpers.getClassLoader() is used to obtain a class loader which
can be used to load jndiprovider.properties.  Unfortunately,
this call may legitimately return null, and does return null in
some situations.  The context class loader should be used.  The
context class loader should be set, but it is theoretically
possible for someone to set it to null.  The condition should
be checked, and if there is no context class loader, throw an
exception and log a warning.
Problem conclusion
The code has been changed to switch to use the context class
loader for loading in jndiprovider.properties.  The old code
was using Helpers.getClassLoader().  The file changed is:
com/ibm/ws/naming/util/Helpers.java
Temporary fix Comments
APAR information
APAR number PQ52176
Reported component name WEBSPHERE AE AI
Reported component ID 5630A2200
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2001-09-06
Closed date 2001-09-21
Last modified date 2001-09-21

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros

Fix information
Fixed component name WEBSPHERE AE AI
Fixed component ID 5630A2200

Applicable component levels
R400 PSY    UP


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ52176
IBM Group: Software Group
Modified date: Sep 21, 2001