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 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 Stack Overflow by RoD
, 2 years ago
Error on line 1 of document : Reference is not allowed in prolog. Nested exception: Reference is not allowed in prolog.
via j-trac by mmichel
, 1 year ago
Error on line 1 of document  : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.
via GitHub by abmargb
, 2 years ago
Error on line 1 of document : The entity name must immediately follow the '&' in the entity reference. Nested exception: The entity name must immediately follow the '&' in the entity reference.
via Stack Overflow by solita
, 8 months ago
Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.
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.getSystemEnv(PacProServiceImpl.java:983)
at com.pentaho.pac.server.PacProServiceImpl.getTestResult(PacProServiceImpl.java:694)
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, 4 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.