You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by tom chen <to...@yahoo.com> on 2005/02/05 07:08:08 UTC

Help on error: faultString: org.xml.sax.SAXParseException: Premature end of file.

I am using axis to return a bean object. But I get the following error
==============
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.xml.sax.SAXParseException: Premature end of file.
 faultActor: 
 faultNode: 
 faultDetail: 
 {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: Premature end of file.
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
 at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
 at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
 at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
 at org.apache.axis.client.Call.invoke(Call.java:2702)
 at org.apache.axis.client.Call.invoke(Call.java:2378)
 at org.apache.axis.client.Call.invoke(Call.java:2301)
 at org.apache.axis.client.Call.invoke(Call.java:1758)
 at tc.client.GetBeanSoapBindingStub.getBean(GetBeanSoapBindingStub.java:153)
 at tc.client.TestClient.test(TestClient.java:23)
 at tc.client.TestClient.main(TestClient.java:10)
 
 {http://xml.apache.org/axis/}hostname:IBM-E7BCD6AC493
 
org.xml.sax.SAXParseException: Premature end of file.
 at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:650)
 at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
 at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
 at org.apache.axis.client.AxisClient.invoke(AxisClient.java:173)
 at org.apache.axis.client.Call.invokeEngine(Call.java:2719)
 at org.apache.axis.client.Call.invoke(Call.java:2702)
 at org.apache.axis.client.Call.invoke(Call.java:2378)
 at org.apache.axis.client.Call.invoke(Call.java:2301)
 at org.apache.axis.client.Call.invoke(Call.java:1758)
 at tc.client.GetBeanSoapBindingStub.getBean(GetBeanSoapBindingStub.java:153)
 at tc.client.TestClient.test(TestClient.java:23)
 at tc.client.TestClient.main(TestClient.java:10)
Caused by: org.xml.sax.SAXParseException: Premature end of file.
 at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
 at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226)
 at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645)
 ... 11 more
===========================================================
 
public class Bean1 {
    private String sample = "Sample";
    private String name;
    private int age;
    public Bean1(String sample,String name,int age) {
        this.sample=sample;
        this.name=name;
        this.age=age;
    }
    public Bean1() {
    }
....
}

 

 

Thank you very much!

		
---------------------------------
Do you Yahoo!?
 Yahoo! Search presents - Jib Jab's 'Second Term'