axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Dmitriev (Commented) (JIRA)" <>
Subject [jira] [Commented] (AXIS2-5257) "Premature end of file encountered" when parsing empty response
Date Fri, 02 Mar 2012 06:39:00 GMT


Vadim Dmitriev commented on AXIS2-5257:

Hi! Thanks for the quick response.

> 1.) JIRA project is not meant to help users issues or provide clarifications, use mailing
list for this.
I guess the whole point of apache jira is to resolve project issues, and this issue is not
a "user problem" (i.e. "I can't make Axis work, help!" or "Which lib should I add to my WAR?"),
it is more of a problem with Axis2-IIS interoperation. But certanly it is just my POV :)
I read through section 4 of RFC 2616 and haven't found any reason to consider servers response
to be invalid (specifically, server can simply close the connection to indicate the end of
the response body).

> 2.) Provided derails are not sufficient. Not clear about particular usage here, stack
trace etc.
Yes, forgot about the stacktrace; here it is. Could you please specify any additional useful
info that might help?

org.apache.axis2.AxisFault: Premature end of file encountered
	at org.apache.axis2.AxisFault.makeFault(
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
	at org.apache.axis2.description.OutInAxisOperationClient.send(
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
	at org.apache.axis2.client.OperationClient.execute(
Caused by: Premature
end of file encountered
	at weblogic.xml.stax.XMLStreamReaderBase.setInput(
	at weblogic.xml.stax.XMLStreamInputFactory.createXMLStreamReader(
	at weblogic.xml.stax.XMLStreamInputFactory.createXMLStreamReader(
	at org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper.createXMLStreamReader(
	at org.apache.axiom.util.stax.dialect.BEAInputFactoryWrapper.createXMLStreamReader(
	at org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper.createXMLStreamReader(
	at Method)
	at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(
	at org.apache.axis2.transport.TransportUtils.createDocumentElement(
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
	... 13 more
Caused by: Premature end of file encountered
	... 27 more

> 3.) It seems like a issues with the server. As a suggestion use TCPMon or SoapUI to locate
exact issue. 
I used soapUI in the first place to extract raw server response. Don't know what else I could
use soapUI for in this situation.

> "Premature end of file encountered" when parsing empty response
> ---------------------------------------------------------------
>                 Key: AXIS2-5257
>                 URL:
>             Project: Axis2
>          Issue Type: Bug
>    Affects Versions: 1.6.1
>         Environment: Oracle 1.6.0_31
> WebLogic 10.3.5
>            Reporter: Vadim Dmitriev
> Server response:
> "HTTP/1.1 400 Bad Request
> Connection: close
> Date: Thu, 01 Mar 2012 14:12:07 GMT
> Server: Microsoft-IIS/6.0
> X-Powered-By: ASP.NET
> X-AspNet-Version: 2.0.50727
> Cache-Control: private
> Content-Type: text/html
> "
> Axis tries to parse response message body and XMLStreamReader fails with "premature end
of file". Is this Axis issue or is there a problem with servers response?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message