Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 37433 invoked from network); 5 Feb 2005 06:08:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 5 Feb 2005 06:08:19 -0000 Received: (qmail 36790 invoked by uid 500); 5 Feb 2005 06:08:12 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 36778 invoked by uid 500); 5 Feb 2005 06:08:12 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 36765 invoked by uid 99); 5 Feb 2005 06:08:12 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,FROM_ENDS_IN_NUMS,HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from web61107.mail.yahoo.com (HELO web61107.mail.yahoo.com) (216.155.196.109) by apache.org (qpsmtpd/0.28) with SMTP; Fri, 04 Feb 2005 22:08:11 -0800 Received: (qmail 10342 invoked by uid 60001); 5 Feb 2005 06:08:08 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=ufSofiKVo5y9YqPburXLwhEqT3CGblLv59zHJPtL5jLeHJif+TNRtYagEI22DVRrgw5N/CS+M7GjyR1xr3m0/e3eqbSAuTS+J9i8q3z1eFLqjGVzolbsiGRJSwTir3FZu4Xa+kkfs35o/pC9yxVACiqXboGxyUhfAeR/I9khe0s= ; Message-ID: <20050205060808.10340.qmail@web61107.mail.yahoo.com> Received: from [24.90.194.216] by web61107.mail.yahoo.com via HTTP; Fri, 04 Feb 2005 22:08:08 PST Date: Fri, 4 Feb 2005 22:08:08 -0800 (PST) From: tom chen Subject: Help on error: faultString: org.xml.sax.SAXParseException: Premature end of file. To: axis-user@ws.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1424732121-1107583688=:9287" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-1424732121-1107583688=:9287 Content-Type: text/plain; charset=us-ascii 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' --0-1424732121-1107583688=:9287 Content-Type: text/html; charset=us-ascii
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' --0-1424732121-1107583688=:9287--