PQ72912: NULLPOINTEREXCEPTION FROM URL READOBJECT CALL.

 A fix is available

***SUPERCEDED*** 1.3.1 Java SDK, Java Tech Edition for WebSphere v5



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.0
Local 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 information
APAR number PQ72912
Reported component name WEBSPHERE AES S
Reported component ID 5630A2302
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2003-04-07
Closed date 2003-04-08
Last modified date 2003-04-08

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
JDK          

SRLS

Fix information

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 #: PQ72912
IBM Group: Software Group
Modified date: Apr 8, 2003