PQ72912: NULLPOINTEREXCEPTION FROM URL READOBJECT CALL. | |||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||
![]() APAR status Closed as program error. Error description This NullPointerException occurs when making a call to the URLObjectInputStream.readObject(). Rather than returning the object requested, the URL class is throwing a NullPointerExcep- tion. . The error has been found and fixed in IBM jdks with defect SOV 33882. This defect fix was incorporated into IBM jdk's starting with the following builds: This problem is fixed in all IBM jdk 1.3.1 builds. This requires a build that includes this fix for jdk 1.2.2 and jdk 1.3.0. . Sun does not plan to fix this bug in jdk 1.3.x. It will be fixed in jdk 1.4.0Local fix There is a workaround for this problem. Serialize the text representation and create a new URL from the text when deserializing it. toString still works, so one can add a method to derialize/deserialize string value. . Use getFile() instead of getPath().Problem summary **************************************************************** * USERS AFFECTED: All WebSphere Application Server users of * * JDKs prior to IBM JDK 1.3.1 and all Sun * * JDKs. * **************************************************************** * PROBLEM DESCRIPTION: NullPointerException occurs on a URL * * readObject call. * **************************************************************** * RECOMMENDATION: * **************************************************************** NullPointerException occurs when making a call to the URLObjectInputStream.readObject(). Rather than returning the object requested, the URL class is throwing a NullPointerException.Problem conclusion The error has been found and fixed in IBM jdks with defect SOV 33882. This defect fix was incorporated in all IBM jdk 1.3.1 builds. Sun does not plan to fix this bug in jdk 1.3.x. It will be fixed in jdk 1.4.0 Other Workaround: Serialize the text representation and create a new URL from the text when deserializing it. toString still works, so one can add a method to serialize/deserialize string value. Use getFile() instead of getPath().Temporary fix Comments
APAR is sysrouted FROM one or more of the following: APAR is sysrouted TO one or more of the following: Modules/Macros
SRLS
|
Document Information |
Product categories: Software > Application Servers >
Distributed Application & Web Servers > WebSphere Application
Server > General
Operating system(s):
Software version: 400
Software edition:
Reference #: PQ72912
IBM Group: Software Group
Modified date: Apr 8, 2003
(C) Copyright IBM Corporation 2000, 2006. All Rights Reserved.