IBM Support

WSWS3227E: Error: Exception: java.io.IOException: SRVE0080E: Invalid content length

Troubleshooting


Problem

You notice an exception occurs when a web service provider running on WebSphere Application Server receives a SOAP request. The stack trace logged to the application server's SystemOut.log will look similar to the following: [] [5/12/06 5:57:07:770 GMT-08:00] 00000040 InternalExcep E com.ibm.ws.webservices.engine.InternalException WSWS3227E: Error: Exception: java.io.IOException: SRVE0080E: Invalid content length at com.ibm.ws.webcontainer.srt.http.HttpInputStream.finish(HttpInputStream. java(Compiled Code)) at com.ibm.ws.webcontainer.srt.http.HttpInputStream.close(HttpInputStream. java(Compiled Code)) .... [5/12/06 5:57:07:818 GMT-08:00] 00000040 PivotHandlerW E com.ibm.ws.webservices.engine.PivotHandlerWrapper bindExceptionToResponse WSWS3400I: Info: unexpected exception. com.ibm.ws.webservices.engine.InternalException: java.io.IOException: SRVE0080E: Invalid content length at com.ibm.ws.webservices.utils.WebServicesInputSource.getBAISContent (WebServicesInputSource.java(Compiled Code)) []

Cause

The problem occurs if the Content-length HTTP header is calculated to the wrong value by the web service client runtime. Many times, this type of error occurs in scenarios where WebSphere Application Server is interoperating with non-WebSphere Application Server web service clients.

The WebSphere Application Server web services engine cannot complete processing if the wrong length is included in the HTTP request. This results in a failure to process the web service request.

Resolving The Problem

To resolve the problem, review the code for the web service client and ensure that the Content-length HTTP header is calculated correctly. In some cases, it could be the web service client's runtime which is doing the Content-length calculation. If this is the case, then it would be necessary to consult the vendor of that runtime.

[{"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":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.5;8.0;7.0","Edition":"Base;Network Deployment","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Java SDK","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21239783