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/aProblem 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.javaTemporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
|
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
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.