wood burning stoves 2.0*
The moose likes Web Services and the fly likes org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file" Watch "org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file" New topic
Author

org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file

shiva kumar
Greenhorn

Joined: Aug 22, 2006
Posts: 7
I am getting the below error when deploying a service in AxisServer.

Could some please help me understand the reason for the error and how this should be fixed ??
The wsdd file is not changed. (Earlier this worked fine. I was able to deploy the service successfully)



Aug 9, 2011 8:37:31 PM org.apache.axis.InternalException <init>
SEVERE: Exception:
org.apache.axis.ConfigurationException: org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file.
org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file.
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:723)
at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:218)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:386)
at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:316)
at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:230)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:798)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:250)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:369)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:388)
at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
at org.apache.axis.AxisEngine.init(AxisEngine.java:172)
at org.apache.axis.AxisEngine.<init>(AxisEngine.java:156)
at org.apache.axis.server.AxisServer.<init>(AxisServer.java:88)
at org.apache.axis.transport.http.SimpleAxisServer.getAxisServer(SimpleAxisServer.java:210)
at org.apache.axis.transport.http.SimpleAxisWorker.execute(SimpleAxisWorker.java:167)
at org.apache.axis.transport.http.SimpleAxisWorker.run(SimpleAxisWorker.java:155)
at java.lang.Thread.run(Thread.java:595)


Thanks,
Abc
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Though I am not familiar with Axis, I would guess that either one of the files you are trying to deploy or some other configuration file (XML, I suspect) is malformed.
Try examining the files and checking their well-formedness (well-formed XML does not mean that they can be validated against an XML schema).
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
 
wood burning stoves
 
subject: org.xml.sax.SAXException: Fatal Error: URI=null Line=-1: Premature end of file