com.liferay.portal.kernel.xml.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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via openxava by henryedsl
, 1 year ago
Error on line -1 of document  : Premature end of file. Nested exception: Premature end of file.
via liferay.com by Unknown author, 2 years ago
Error on line 14 of document : Attribute "mapping-key" must be declared for element type "column". Nested exception: Attribute "mapping-key" must be declared for element type "column".
via liferay.com by Unknown author, 1 year ago
Error on line 26 of document : cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0
via liferay.com by Unknown author, 2 years ago
Error on line 26 of document : cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0
via liferay.com by Unknown author, 1 year ago
Error on line 26 of document : cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0
via manning.com by Unknown author, 2 years ago
Error on line 25 of document : The content of element type "entity" must match "(column*,order?,finder*,refer ence*,tx-required*)". Nested exception: The content of element type "entity" mus t match "(column*,order?,finder*,reference*,tx-required*)".
com.liferay.portal.kernel.xml.DocumentException: Error on line -1 of document  : Premature end of file. Nested exception: Premature end of file.
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:343)
at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:331)
at com.liferay.portal.tools.deploy.PortletDeployer.getServletContent(PortletDeployer.java:186)
at com.liferay.portal.tools.deploy.PortletDeployer.getExtraContent(PortletDeployer.java:148)
at com.liferay.portal.tools.deploy.BaseDeployer.updateWebXml(BaseDeployer.java:1280)
at com.liferay.portal.tools.deploy.BaseDeployer.deployDirectory(BaseDeployer.java:459)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:739)
at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:676)
at com.liferay.portal.tools.deploy.BaseDeployer.deploy(BaseDeployer.java:407)
at com.liferay.portal.deploy.auto.PortletAutoDeployer.autoDeploy(PortletAutoDeployer.java:99)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.processFile(AutoDeployDir.java:196)
at com.liferay.portal.kernel.deploy.auto.AutoDeployDir.scanDirectory(AutoDeployDir.java:144)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

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