IBM Support

PK93952: NullPointerException in CompoundClassLoader

Download


Abstract

Users who use an application's class loader after the application has been stopped may see a NullPointerException.

Download Description

PK93952 resolves the following problem:

ERROR DESCRIPTION:
Attempts to load a class from a disposed CompoundClassLoader results in NullPointerException.

Attempts to output a disposed CompoundClassLoader also results in an NullPointerException, which can make problem determination difficult.

The NullPointerException is due to internal variables being set to null when the CompoundClassLoader is disposed.

LOCAL FIX:

PROBLEM SUMMARY

USERS AFFECTED:
All users of IBM WebSphere Application Server V7.0.

PROBLEM DESCRIPTION:
Users who use an application's class loader after the application has been stopped may see a NullPointerException.

RECOMMENDATION:
None

Use of an application's class loader after the application is stopped may result in one of the following NullPointerExceptions:


java.lang.NullPointerException
at
com.ibm.ws.classloader.CompoundClassLoader.libraryClassLoadersFindClass(CompoundClassLoader.java:658)

at
com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:471)
...

or

java.lang.NullPointerException
at
com.ibm.ws.classloader.CompoundClassLoader.toString(CompoundClassLoader.java:1193)
...

PROBLEM CONCLUSION:
When an application is stopped, it's class loader is disposed of and some internal structures are set to null. If this class loader is subsequently used, the null structures may cause a NullPointerException. In this APAR the structures are no longer nulled out but their contents are cleared.

The fix for this APAR is currently targeted for inclusion in fix pack 7.0.0.9. Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

Prerequisites

PK90343

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?rs=180&uid=swg21205991"}]

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"6759","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK93952/readme.txt"}]
On
[{"DNLabel":"7.0.0.5-WS-WAS-IFPK93952","DNDate":"11/19/2009","DNLang":"US English","DNSize":"22406","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"https://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.5-WS-WAS-IFPK93952&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK93952/7.0.0.5-WS-WAS-IFPK93952.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK93952/7.0.0.5-WS-WAS-IFPK93952.pak"},{"DNLabel":"7.0.0.7-WS-WAS-IFPK93952","DNDate":"11/19/2009","DNLang":"US English","DNSize":"22398","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"https://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.7-WS-WAS-IFPK93952&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK93952/7.0.0.7-WS-WAS-IFPK93952.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PK93952/7.0.0.7-WS-WAS-IFPK93952.pak"}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server Support Web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV (U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Classloader","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.0.5;7.0.0.7","Edition":"Base;Express;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
07 December 2019

UID

swg24025132