IBM Support

PM07249; 6.1.0.27: nullpointerexception error may occur in a jax-rpc application

Download


Abstract

A NullPointerException may occur when a JAX-RPC application receives a message that contains no elements in the SOAP Body.

Download Description

PM07249 resolves the following problem:

ERROR DESCRIPTION:
A NullPointerException error may occur when a JAX-RPC application receives a message from a web service.

Example error:

[2/5/10 16:51:23:076 GMT+05:30] 0000003f Connection E

com.ibm.ws.webservices.engine.client.Connection invoke
WSWS3227E:
Error: Exception: java.lang.NullPointerException
at
com.ibm.ws.webservices.engine.utils.MCUtils.interceptDeserializa
tionException(MCUtils.java:181)
at
com.ibm.ws.webservices.engine.xmlsoap.ext.RequestResponse.deseri
alize(RequestResponse.java:439)
at ...


This error only occurs if the response message does not contain any elements within the SOAPBody. For example:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/&quot;
<soapenv:Body>
<p:myOperation xmlns:p="urn"sample">
<value>Hello</value>
</p:myOperation>
</soapenv:Envelope>

LOCAL FIX:
No local fix avail at this time

PROBLEM SUMMARY

USERS AFFECTED:
IBM WebSphere Application Server V6.1 and V7.0 users of JAX-RPC

PROBLEM DESCRIPTION:
A NullPointerException may occur when a JAX-RPC application receives a message that contains no elements in the SOAP Body.

RECOMMENDATION:
None

A JAX-RPC client application invokes a two-way document literal wrapped operation of a remote web service. Here is an example outgoing message:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/&quot;
<soapenv:Body>
<p:myOperation xmlns:p="urn"sample">
<value>Hello</value>
</p:myOperation>
</soapenv:Envelope>

The JAX-RPC client runtime expects a response that contains a myOperationResponse object (even if the web service does not pass back any data). Instead the response contains a SOAP Body without any contents. For example:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/&quot;
<soapenv:Body/>
</soapenv:Envelope>

This incoming message is unexpected and results in a NullPointerException error.

PROBLEM CONCLUSION:
The JAX-RPC client runtime is changed to correctly process the incoming message.

If the incoming message contains no elements in the SOAP Body and output data was expected, then the client runtime will now issue an informative error.

If the incoming message contains no elements in the SOAP Body and output data was not expected, then the client runtime will tolerate the incoming message and proceed without error.

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

Prerequisites

Please download the UpdateInstaller below to install this fix.

[{"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":"10344","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM07249/readme.txt"}]
On
[{"DNLabel":"6.1.0.25-WS-WAS-IFPM07249","DNDate":"4/12/2010","DNLang":"US English","DNSize":"41245","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=6.1.0.25-WS-WAS-IFPM07249&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM07249/6.1.0.25-WS-WAS-IFPM07249.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PM07249/6.1.0.25-WS-WAS-IFPM07249.pak"},{"DNLabel":"6.1.0.29-WS-WAS-IFPM07249","DNDate":"4/12/2010","DNLang":"US English","DNSize":"41227","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=6.1.0.29-WS-WAS-IFPM07249&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM07249/6.1.0.29-WS-WAS-IFPM07249.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PM07249/6.1.0.29-WS-WAS-IFPM07249.pak"},{"DNLabel":"7.0.0.1-WS-WAS-IFPM07249","DNDate":"4/12/2010","DNLang":"US English","DNSize":"59635","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/quickorder?fixids=7.0.0.1-WS-WAS-IFPM07249&product=ibm%2FWebSphere%2FWebSphere%20Application%20Server&source=dbluesearch","DNURL_FTP":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PM07249/7.0.0.1-WS-WAS-IFPM07249.pak","DDURL":"http://public.dhe.ibm.com:7618;sw_websphere;appserv/support/fixes/PM07249/7.0.0.1-WS-WAS-IFPM07249.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":"Web Services (for example: SOAP or UDDI or WSGW or WSIF)","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.7;7.0.0.5;7.0.0.3;7.0.0.1;6.1.0.29;6.1.0.27;6.1.0.25","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24026406