org.dom4j.DocumentException

Error on line 1 of document : Reference is not allowed in prolog. Nested exception: Reference is not allowed in prolog.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web637

  • via Oracle Community by 807581, 1 year ago
    Error on line 1 of document : Reference is not allowed in prolog. Nested exception: Reference is not allowed in prolog.
  • Error on line 1 of document : Reference is not allowed in prolog. Nested exception: Reference is not allowed in prolog.
  • via Stack Overflow by RoD
    , 1 year ago
    Error on line 1 of document : Reference is not allowed in prolog. Nested exception: Reference is not allowed in prolog.
  • Stack trace

    • org.dom4j.DocumentException: Error on line 1 of document : Reference is not allowed in prolog. Nested exception: Reference is not allowed in prolog. at org.dom4j.io.SAXReader.read(SAXReader.java:436) at org.dom4j.io.SAXReader.read(SAXReader.java:344) at com.embarcadero.uml.core.support.umlsupport.XMLManip.loadXML(XMLManip.java:730) at com.embarcadero.uml.core.support.umlsupport.XMLManip.loadXML(XMLManip.java:702) at com.embarcadero.uml.ui.support.archivesupport.ProductArchiveImpl.createDomDocument(ProductArchiveImpl.java:73) at com.embarcadero.uml.ui.support.archivesupport.ProductArchiveImpl.<init>(ProductArchiveImpl.java:46) at com.embarcadero.uml.ui.swing.drawingarea.ADDrawingAreaControl.saveETLDAndETLPFiles(ADDrawingAreaControl.java:9918) at com.embarcadero.uml.ui.swing.drawingarea.ADDrawingAreaControl.preCommit(ADDrawingAreaControl.java:9830) at com.embarcadero.uml.ui.controls.drawingarea.DrawingAreaEventHandler.onProjectPreSave(DrawingAreaEventHandler.java:1946) 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:585) at com.embarcadero.uml.core.eventframework.EventFunctor.invokeMethod(EventFunctor.java:207) at com.embarcadero.uml.core.eventframework.EventFunctor.execute(EventFunctor.java:93) at com.embarcadero.uml.core.eventframework.EventManager.notifyListenersWithQualifiedProceed(EventManager.java:122) at com.embarcadero.uml.core.metamodel.structure.StructureEventDispatcher.fireProjectPreSave(StructureEventDispatcher.java:409) at com.embarcadero.uml.core.metamodel.structure.Project.save(Project.java:252) at com.embarcadero.uml.core.Application.saveProject(Application.java:414) at com.embarcadero.uml.ui.products.ad.applicationcore.ADApplication.saveProject(ADApplication.java:395) at com.sun.tools.ide.uml.project.UMLProjectHelper.saveProject(UMLProjectHelper.java:299) at com.sun.tools.ide.uml.integration.netbeans.actions.NBSaveAllAction.performAction(NBSaveAllAction.java:129) at org.openide.util.actions.CallableSystemAction$1.run(CallableSystemAction.java:78) at org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116) at org.openide.util.actions.CallableSystemAction.actionPerformed(CallableSystemAction.java:76) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) at java.awt.Component.processMouseEvent(Component.java:5488) at javax.swing.JComponent.processMouseEvent(JComponent.java:3126) at org.openide.awt.ToolbarButton.processMouseEvent(ToolbarButton.java:29) at java.awt.Component.processEvent(Component.java:5253) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3955) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3803)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 5 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 10 months ago
    37 more bugmates