axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tom chen <tomc15...@yahoo.com>
Subject Help on error: faultString: org.xml.sax.SAXParseException: Premature end of file.
Date Sat, 05 Feb 2005 06:08:08 GMT
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'
Mime
View raw message