org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Pentaho BI Platform Tracking by Golda David, 1 year ago
Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.
via Pentaho BI Platform Tracking by Golda David, 1 year ago
Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.
via Google Groups by Timothy Olsen, 1 year ago
/XNAT/XNAT-Appliance/nexus-1-4-Ubuntu/ Local/Storage/xnat/prearchive (Is a directory) Nested exception: /XNAT/ XNAT-Appliance/nexus-1-4-Ubuntu/Local/Storage/xnat/prearchive (Is a directory)
via Stack Overflow by sweety
, 2 years ago
org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory Nested exception: org.dom4j.DocumentFactory cannot be cast to org.dom4j.DocumentFactory
via Google Groups by Germc, 1 year ago
Error on line 1 of document : The element type "HR" must be terminated by the matching end-tag "</HR>". Nested exception: The element type "HR" must be terminated by the matching end-tag "</HR>".
via Oracle Community by 843834, 1 year ago
Error on line 1 of document file:///C:/file.xml : http://www.w3.org/TR/xml-schema-1#SchemaLocation?file:///C:/xmldsig-core-schema.xsd Nested exception: http://www.w3.org/TR/xml-schema-1#SchemaLocation?file:///C:/xmldsig-core-schema.xsd
org.dom4j.DocumentException: Error on line 1 of document : Premature end of file. Nested exception: Premature end of file.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
at org.dom4j.DocumentHelper.parseText(DocumentHelper.java:278)
at com.pentaho.pac.server.PacProServiceImpl.runPlatformDiagnostics(PacProServiceImpl.java:1116)
at com.pentaho.pac.server.PacProServiceImpl.getEmailTestResult(PacProServiceImpl.java:1080)
at com.pentaho.pac.server.PacProServiceImpl.getTestResult(PacProServiceImpl.java:693)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:166)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 5 days ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
39 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.