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 "Gentile, Deborah" <de...@ngc.com> on 2005/08/29 21:07:47 UTC

Error -- org.xml.sax.SAXParseException: Premature end of file.

Hi.

I'm running:
Axis version 1.2.1
Xerces version 2.5.0
Apache Tomcat version 5.0.18

I created a wsdl and used WSDL2Java to generate the client stubs.  I've
added code into the stubs, and was able to successfully compile and
deploy.  When I hit a web service that just returns an int, I get back
the number that I was expecting.  When I hit a web service that returns
a structure or an array, I get, "org.xml.sax.SAXParseException:
Premature end of file."  Previously, before upgrading to Axis version
1.2.1, the same wsdl was used as well as the same stub code and it
worked using Axis version 1.1.  The only thing that changed was the Axis
version that was being used.  Not sure if it has anything to do with it,
but I am using rpc encoding.  Is it possible that I need a newer version
of Xerces or that I am missing a jar file?  I'm including the following
jar files: axis-1_2_1/lib/axis.jar, axis-1_2_1/lib/axis-ant.jar,
axis-1_2_1/lib/commons-discovery-0.2.jar,
axis-1_2_1/lib/commons-logging-1.0.4.jar, axis-1_2_1/lib/jaxrpc.jar,
axis-1_2_1/lib/log4j-1.2.8.jar, axis-1_2_1/lib/saaj.jar,
axis-1_2_1/lib/wsdl4j-1.5.1.jar, xerces-2_5_0/xercesImpl.jar,
xerces-2_5_0/xml-apis.jar, xerces-2_5_0/xmlParserAPIs.jar,
jaf-1.0.2/activation.jar, and javamail-1.3.1/mail.jar.  I would
appreciate any help that anyone can offer. 

Thanks.

Debbie Gentile
E-2C Software Engineer
Northrop Grumman Integrated Systems
925 South Oyster Bay Road
Bethpage, NY 11714-3582
M/S: X07-14
Phone: (516) 575-7131
Fax: (516) 346-3915
E-mail: deborah.gentile@ngc.com 



Re: Error -- org.xml.sax.SAXParseException: Premature end of file.

Posted by Davanum Srinivas <da...@gmail.com>.
If you need more than the usual help on the mailing list / jira and/or
need production support, drop a note to info@wso2.com with what kind
of services you need/expect.

thanks,
dims

On 8/30/05, Davanum Srinivas <da...@gmail.com> wrote:
> Debbie,
> 
> Use the tcpmon (check archives/wiki) to look at the request/response
> pairs both from 1.1 and 1.2.1 and compare them. if they are
> corrupted/bad, please open a bug report with your WSDL
> 
> thanks,
> dims
> 
> On 8/29/05, Gentile, Deborah <de...@ngc.com> wrote:
> >
> >
> > Hi.
> >
> > I'm running:
> > Axis version 1.2.1
> > Xerces version 2.5.0
> > Apache Tomcat version 5.0.18
> >
> > I created a wsdl and used WSDL2Java to generate the client stubs.  I've
> > added code into the stubs, and was able to successfully compile and deploy.
> > When I hit a web service that just returns an int, I get back the number
> > that I was expecting.  When I hit a web service that returns a structure or
> > an array, I get, "org.xml.sax.SAXParseException: Premature end of file."
> > Previously, before upgrading to Axis version 1.2.1, the same wsdl was used
> > as well as the same stub code and it worked using Axis version 1.1.  The
> > only thing that changed was the Axis version that was being used.  Not sure
> > if it has anything to do with it, but I am using rpc encoding.  Is it
> > possible that I need a newer version of Xerces or that I am missing a jar
> > file?  I'm including the following jar files: axis-1_2_1/lib/axis.jar,
> > axis-1_2_1/lib/axis-ant.jar, axis-1_2_1/lib/commons-discovery-0.2.jar,
> > axis-1_2_1/lib/commons-logging-1.0.4.jar, axis-1_2_1/lib/jaxrpc.jar,
> > axis-1_2_1/lib/log4j-1.2.8.jar, axis-1_2_1/lib/saaj.jar,
> > axis-1_2_1/lib/wsdl4j-1.5.1.jar, xerces-2_5_0/xercesImpl.jar,
> > xerces-2_5_0/xml-apis.jar, xerces-2_5_0/xmlParserAPIs.jar,
> > jaf-1.0.2/activation.jar, and javamail-1.3.1/mail.jar.  I would appreciate
> > any help that anyone can offer.
> >
> > Thanks.
> >
> > Debbie Gentile
> > E-2C Software Engineer
> > Northrop Grumman Integrated Systems
> > 925 South Oyster Bay Road
> > Bethpage, NY 11714-3582
> > M/S: X07-14
> > Phone: (516) 575-7131
> > Fax: (516) 346-3915
> > E-mail: deborah.gentile@ngc.com
> >
> 
> 
> --
> Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

Re: Error -- org.xml.sax.SAXParseException: Premature end of file.

Posted by Davanum Srinivas <da...@gmail.com>.
Debbie,

Use the tcpmon (check archives/wiki) to look at the request/response
pairs both from 1.1 and 1.2.1 and compare them. if they are
corrupted/bad, please open a bug report with your WSDL

thanks,
dims

On 8/29/05, Gentile, Deborah <de...@ngc.com> wrote:
>  
> 
> Hi. 
> 
> I'm running: 
> Axis version 1.2.1 
> Xerces version 2.5.0 
> Apache Tomcat version 5.0.18 
> 
> I created a wsdl and used WSDL2Java to generate the client stubs.  I've
> added code into the stubs, and was able to successfully compile and deploy. 
> When I hit a web service that just returns an int, I get back the number
> that I was expecting.  When I hit a web service that returns a structure or
> an array, I get, "org.xml.sax.SAXParseException: Premature end of file." 
> Previously, before upgrading to Axis version 1.2.1, the same wsdl was used
> as well as the same stub code and it worked using Axis version 1.1.  The
> only thing that changed was the Axis version that was being used.  Not sure
> if it has anything to do with it, but I am using rpc encoding.  Is it
> possible that I need a newer version of Xerces or that I am missing a jar
> file?  I'm including the following jar files: axis-1_2_1/lib/axis.jar,
> axis-1_2_1/lib/axis-ant.jar, axis-1_2_1/lib/commons-discovery-0.2.jar,
> axis-1_2_1/lib/commons-logging-1.0.4.jar, axis-1_2_1/lib/jaxrpc.jar,
> axis-1_2_1/lib/log4j-1.2.8.jar, axis-1_2_1/lib/saaj.jar,
> axis-1_2_1/lib/wsdl4j-1.5.1.jar, xerces-2_5_0/xercesImpl.jar,
> xerces-2_5_0/xml-apis.jar, xerces-2_5_0/xmlParserAPIs.jar,
> jaf-1.0.2/activation.jar, and javamail-1.3.1/mail.jar.  I would appreciate
> any help that anyone can offer. 
> 
> Thanks. 
> 
> Debbie Gentile 
> E-2C Software Engineer 
> Northrop Grumman Integrated Systems 
> 925 South Oyster Bay Road 
> Bethpage, NY 11714-3582 
> M/S: X07-14 
> Phone: (516) 575-7131 
> Fax: (516) 346-3915 
> E-mail: deborah.gentile@ngc.com 
>  


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform