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
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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)

    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