org.xml.sax.SAXParseException: Premature end of file. at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)

Java.net JIRA | cesarico | 9 years ago
  1. 0

    I am using Glassfish 9.1_01 (build b09d-fcs), and I am testing web services from the administrator's web interface. I deploy the web services from Netbeans 5.5.1. When I deploy for the first time my application I can test the web services without problems, but when I redeploy the application from netbeans and test the web service again I receive an error; the only way for me to get rid of the error is to restart Glassfish. This is the error that I get: Service invocation threw an exception with message : org.xml.sax.SAXParseException: Premature end of file.; Refer to the server log for more details. Exceptions details : javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: Premature end of file. javax.servlet.ServletException: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: Premature end of file. at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) Caused by: javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:501) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.dumpMessage(WebServiceTesterServlet.java:377) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:327) ... 31 more Caused by: org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484) ... 33 more The server log does not give much more information: [#|2008-04-04T15:50:22.532+0200|SEVERE|sun-appserver9.1|javax.xml.messaging.saaj.soap|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=b1c8ab2f-d14f-4cc4-96db-bdd1922bad80;|SAAJ0539: Unable to get header stream in saveChanges|#] [#|2008-04-04T15:50:22.532+0200|SEVERE|sun-appserver9.1|javax.xml.messaging.saaj.soap|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=b1c8ab2f-d14f-4cc4-96db-bdd1922bad80;|SAAJ0540: Error during saving a multipart message|#] [#|2008-04-04T15:50:22.532+0200|WARNING|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=b1c8ab2f-d14f-4cc4-96db-bdd1922bad80;|Cannot log SOAP Message Error during saving a multipart message|#] [#|2008-04-04T15:50:22.814+0200|SEVERE|sun-appserver9.1|javax.xml.messaging.saaj.soap|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=b1c8ab2f-d14f-4cc4-96db-bdd1922bad80;|SAAJ0539: Unable to get header stream in saveChanges|#] [#|2008-04-04T15:50:22.814+0200|SEVERE|sun-appserver9.1|javax.xml.messaging.saaj.soap|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=b1c8ab2f-d14f-4cc4-96db-bdd1922bad80;|SAAJ0540: Error during saving a multipart message|#] [#|2008-04-04T15:50:22.814+0200|WARNING|sun-appserver9.1|javax.enterprise.system.core|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=b1c8ab2f-d14f-4cc4-96db-bdd1922bad80;|Cannot log SOAP Message Error during saving a multipart message|#] [#|2008-04-04T15:50:23.126+0200|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-1;_RequestID=08fe05cf-27f5-4c01-975a-4ec126033068;|[Fatal Error] :-1:-1: Premature end of file. |#] I searched in the internet for similar errors and I found this forum entry: http://forum.springframework.org/archive/index.php/t-38582.html . In this page they fixed their peoblem updating to Xerces 2.8.1 and Xalan 2.7.0 ; I did so, but no luck.

    Java.net JIRA | 9 years ago | cesarico
    org.xml.sax.SAXParseException: Premature end of file. at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
  2. 0

    mybatis-user - MyBatis + Axis2 problem: ### Error building SqlSession. ### The error may exist in SQL Mapper Configuration

    nabble.com | 12 months ago
    org.xml.sax.SAXParseException: The element type >> > "property" must >> >  be terminated by the matching end-tag "</property>". at >> > org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic >> > (RPCMessageReceiver.java:158) at >> > org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines >> > sLogic(AbstractInOutMessageReceiver.java:40) at >> > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe >> > ssageReceiver.java:114) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java: >> > 173) at >> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq >> > uest(HTTPTransportUtils.java:167) at >> > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1 >> > 42) at javax.servlet.http.HttpServlet.service(HttpServlet.java: >> > 641) at javax.servlet.http.HttpServlet.service(HttpServlet.java: >> > 722) at >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl >> > icationFilterChain.java:304) at >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF >> > ilterChain.java:210) at >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV >> > alve.java:240) at >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV >> > alve.java:164) at >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j >> > ava:164) at >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j >> > ava:100) at >> > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: >> > 562) at >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal >> > ve.java:118) at >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav >> > a:394) at >> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java >> > :243) at org.apache.coyote.http11.Http11Protocol >> > $Http11ConnectionHandler.proce >> > ss(Http11Protocol.java:188) at org.apache.coyote.http11.Http11Protocol >> > $Http11ConnectionHandler.proce >> > ss(Http11Protocol.java:166) at org.apache.tomcat.util.net.JIoEndpoint >> > $SocketProcessor.run(JIoEndpoin >> > t.java:302) at java.util.concurrent.ThreadPoolExecutor >> > $Worker.runTask(Unknown Source >> > ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown >> > Source)
  3. 0

    mybatis-user - MyBatis + Axis2 problem: ### Error building SqlSession. ### The error may exist in SQL Mapper Configuration

    nabble.com | 12 months ago
    org.xml.sax.SAXParseException: The element type > "property" must >  be terminated by the matching end-tag "</property>". at > org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic > (RPCMessageReceiver.java:158) at > org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusines > sLogic(AbstractInOutMessageReceiver.java:40) at > org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMe > ssageReceiver.java:114) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java: > 173) at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq > uest(HTTPTransportUtils.java:167) at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1 > 42) at javax.servlet.http.HttpServlet.service(HttpServlet.java: > 641) at javax.servlet.http.HttpServlet.service(HttpServlet.java: > 722) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl > icationFilterChain.java:304) at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF > ilterChain.java:210) at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV > alve.java:240) at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextV > alve.java:164) at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j > ava:164) at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j > ava:100) at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: > 562) at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal > ve.java:118) at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav > a:394) at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java > :243) at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.proce > ss(Http11Protocol.java:188) at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.proce > ss(Http11Protocol.java:166) at org.apache.tomcat.util.net.JIoEndpoint > $SocketProcessor.run(JIoEndpoin > t.java:302) at java.util.concurrent.ThreadPoolExecutor > $Worker.runTask(Unknown Source > ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown > Source)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Grid From XML data

    Stack Overflow | 4 years ago | user1479644
    org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:264) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:292) at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:165)<br> at JEE_jsp_CM_Glory_Sample_displayXML_8904750_1340860399234_1340860399922._jspService(JEE_jsp_CM_Glory_Sample_displayXML_8904750_1340860399234_1340860399922.java:51) at com.sap.engine.services.servlets_jsp.lib.jspruntime.JspBase.service(JspBase.java:102) at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140) at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:436) at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:240) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)<br> at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162) at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
  6. 0

    IBM ADMU0111E error causes nodeagent startup failure - United States

    ibm.com | 4 months ago
    org.xml.sax.SAXParseException: Premature end of file. at org.apache.xerces.parsers.AbstractSAXParser.parse (AbstractSAXParser.java:1172)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.xml.sax.SAXParseException

      Premature end of file. at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.doPost(WebServiceTesterServlet.java:345) at com.sun.enterprise.webservice.monitoring.WebServiceTesterServlet.invoke(WebServiceTesterServlet.java:121) at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:148) at javax.servlet.http.HttpServlet.service(HttpServlet.java:738) at javax.servlet.http.HttpServlet.service(HttpServlet.java:831) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)

      at org.apache.catalina.core.StandardPipeline.doInvoke()
    2. Glassfish Core
      StandardPipeline.doInvoke
      1. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
      2 frames