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.swing.drawingarea.ADDrawingAreaControl.save(ADDrawingAreaControl.java:7630) at com.embarcadero.uml.ui.controls.drawingarea.UIDiagram.save(UIDiagram.java:101) at com.sun.tools.ide.modeling.drawingarea.UMLDiagramManager.createDiagram(UMLDiagramManager.java:228) at com.sun.tools.ide.modeling.drawingarea.UMLDiagramManager.doNewDiagramDialog(UMLDiagramManager.java:511) at com.sun.tools.ide.modeling.drawingarea.UMLDiagramManager.newDiagramDialog(UMLDiagramManager.java:157) at com.sun.tools.ide.modeling.diagramcreator.DiagCreatorAddIn.guiCreateDiagram(DiagCreatorAddIn.java:825) at com.sun.tools.ide.modeling.diagramcreator.DiagCreatorAddIn.guiCreateDiagramFromElements(DiagCreatorAddIn.java:218) at com.sun.tools.ide.modeling.diagramcreator.DiagramCreatorAction$1.run(DiagramCreatorAction.java:93) at java.lang.Thread.run(Thread.java:595) at com.sun.tools.ide.modeling.diagramcreator.DiagramCreatorAction.performAction(DiagramCreatorAction.java:96) at org.openide.util.actions.NodeAction$3.run(NodeAction.java:450) at org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247) at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74) 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 org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179) at org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31) at org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241) at org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111) at org.openide.util.Task.run(Task.java:189) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:721)

    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