axis-java-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/AXIS2-5257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13220728#comment-13220728
] 

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: javax.xml.stream.XMLStreamException: Premature end of file encountered
	at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123)
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67)
	at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354)
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421)
	at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
	at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
	...
Caused by: javax.xml.stream.XMLStreamException: javax.xml.stream.XMLStreamException: Premature
end of file encountered
	at weblogic.xml.stax.XMLStreamReaderBase.prime(XMLStreamReaderBase.java:80)
	at weblogic.xml.stax.XMLStreamReaderBase.setInput(XMLStreamReaderBase.java:99)
	at weblogic.xml.stax.XMLStreamInputFactory.createXMLStreamReader(XMLStreamInputFactory.java:316)
	at weblogic.xml.stax.XMLStreamInputFactory.createXMLStreamReader(XMLStreamInputFactory.java:66)
	at org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper.createXMLStreamReader(XMLInputFactoryWrapper.java:95)
	at org.apache.axiom.util.stax.dialect.BEAInputFactoryWrapper.createXMLStreamReader(BEAInputFactoryWrapper.java:65)
	at org.apache.axiom.util.stax.wrapper.XMLInputFactoryWrapper.createXMLStreamReader(XMLInputFactoryWrapper.java:95)
	at org.apache.axiom.om.util.StAXUtils$1.run(StAXUtils.java:202)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:198)
	at org.apache.axiom.om.util.StAXUtils.createXMLStreamReader(StAXUtils.java:190)
	at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:684)
	at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:197)
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145)
	at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108)
	... 13 more
Caused by: javax.xml.stream.XMLStreamException: Premature end of file encountered
	at weblogic.xml.stax.XMLStreamReaderBase.prime(XMLStreamReaderBase.java:69)
	... 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.

Regards.
                
> "Premature end of file encountered" when parsing empty response
> ---------------------------------------------------------------
>
>                 Key: AXIS2-5257
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5257
>             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: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message