PQ67220: WHITE SPACE IN CONTENT-LENGTH HEADER CAUSES ERROR IN SOAP

 A fix is available

4.0.5: WebSphere Application Server Version 4.0 Fix Pack 5 (Version 4.0.5)



APAR status
Closed as program error.

Error description
Customer was running some WSDL code and
received this stack trace (with some truncation
of line numbers)
Request: mappings.AgentEmailRecord_TypeContentType@3a31dcb9
[SOAPException: faultCode=SOAP-ENV:Client; msg=19212   ; targetE
xception
at org.apache.soap.transport.http.SOAPHTTPConnection.send
at org.apache.soap.messaging.Message.send
at mappings.CallAgentEmailProxy.CallAgentEmailRun
at mappings.CallAgentEmailProxy.CallAgentEmailRun(

at mappings.TestClient.main(TestClient.java:25)
java.lang.NumberFormatException: 19212
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:455)
at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:296)
at org.apache.soap.transport.http.SOAPHTTPConnection.send
at org.apache.soap.messaging.Message.send(Message.java:123)
at mappings.CallAgentEmailProxy.CallAgentEmailRun_(CallAgentEma
at mappings.CallAgentEmailProxy.CallAgentEmailRun
Local fix Problem summary
****************************************************************
* USERS AFFECTED: All WebSphere Application Server users of    *
*                 SOAP based web service.                      *
****************************************************************
* PROBLEM DESCRIPTION: The SOAP runtime was not stripping      *
*                      whitespace from the content-length      *
*                      header value.  Thus, when trying to     *
*                      convert the length from a text-string   *
*                      (with whitespaces) to an integer, the   *
*                      conversion failed.                      *
****************************************************************
* RECOMMENDATION:                                              *
****************************************************************
The user was running some WSDL code and received this stack
trace (with some truncation of line numbers)

Request: mappings.AgentEmailRecord_TypeContentType@3a31dcb9

 SOAPException: faultCode=SOAP-ENV:Client; msg=19212   ;
targetException
at org.apache.soap.transport.http.SOAPHTTPConnection.send
(SOAPHTTPConnection.send)
at org.apache.soap.messaging.Message.send(Message.java:123)
at mappings.CallAgentEmailProxy.CallAgentEmailRun_
 (CallAgentEmailProxy.
at mappings.CallAgentEmailProxy.CallAgentEmailRun
 (CallAgentEmailProxy.java:
at mappings.TestClient.main(TestClient.java:25)
.
java.lang.NumberFormatException: 19212
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:415)
at java.lang.Integer.parseInt(Integer.java:455)
at org.apache.soap.util.net.HTTPUtils.post(HTTPUtils.java:296)
at org.apache.soap.transport.http.SOAPHTTPConnection.send
 (SOAPHTTPConne
at org.apache.soap.messaging.Message.send(Message.java:123)
at mappings.CallAgentEmailProxy.CallAgentEmailRun_
 (CallAgentEmailProxy.
at mappings.CallAgentEmailProxy.CallAgentEmailRun
 (CallAgentEmailProxy.j
at mappings.TestClient.main(TestClient.java:25)
Problem conclusion
The SOAP runtime, specifically the HTTPUtils.post() was
enhanced to strip out any whitespace that may exist, before
attempting the conversion.
Temporary fix Comments
APAR information
APAR number PQ67220
Reported component name WEBSPHERE AES A
Reported component ID 5630A2300
Reported release 400
Status CLOSED PER
PE NoPE
HIPER NoHIPER
Submitted date 2002-10-15
Closed date 2002-10-29
Last modified date 2002-10-29

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:

Modules/Macros
SOAP          

SRLS

Fix information
Fixed component name WEBSPHERE AES A
Fixed component ID 5630A2300

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 #: PQ67220
IBM Group: Software Group
Modified date: Oct 29, 2002