Error Invoking Web Service - Unable To Read Response: Underlying Input Stream Returned Zero Bytes (Doc ID 1544369.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Oracle SOA Platform - Version 11.1.1.6.0 and later
Information in this document applies to any platform.
Log snippet:

[2013-04-03T09:42:01.977+13:00] [wls_soa1] [ERROR] [] [oracle.integration.platform.blocks.soap] [tid: orabpel.invoke.pool-4.thread-3] [userId: weblogic] [ecid: 629416401724808,1:43962] [APP: soa-infra] [composite_name: Test] [component_name: Mediator1] [component_instance_id: C56954909BD511E2BF2DA95FEBBEB0AA] [composite_instance_id: 311465] Unable to dispatch request to http://test.company.net/mytest/test due to exception[[
javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Unable to read response: Underlying input stream returned zero bytes
at oracle.j2ee.ws.client.jaxws.DispatchImpl.invokeOneWay(DispatchImpl.java:1186)
at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:233)
at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invokeOneWay(OracleDispatchImpl.java:111)
at oracle.integration.platform.blocks.soap.AbstractWebServiceBindingComponent.dispatchRequest(AbstractWebServiceBindingComponent.java:551)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.processOutboundMessage(WebServiceExternalBindingComponent.java:248)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.sendSOAPMessage(WebServiceExternalBindingComponent.java:1026)
at oracle.integration.platform.blocks.soap.WebServiceExternalBindingComponent.post(WebServiceExternalBindingComponent.java:936)
at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doPost(AsynchronousMessageHandler.java:142)
at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:197)

Symptoms

When calling a remote service which is configured as a one-way call we are getting an error:

javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Unable to read response: Underlying input stream returned zero bytes

However the remote system is receiving the payload as expected.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms