Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.

Categories

Error opening file

0 votes

Iam using Yed version 3.10.2.Java version 1.6.0_43.Updated  my maven projects to use version 2.2 and when i try opening the .graphml file i get the following error. Iam using MAC OSX 10.7.5. Any suggestion? Thanks .

 

y.H.B.B.a: SAX error: Content is not allowed in prolog.
at y.H.B.B._.ā(Unknown Source)
at y.H.B.A$13.ā(Unknown Source)
at y.H.B.A.ā(Unknown Source)
at y.H.B.A.ā(Unknown Source)
at y.H.Q.ā(Unknown Source)
at B.A.A.B.G.A.F.ā(Unknown Source)
at B.A.A.B.G.A.F.ā(Unknown Source)
at B.A.A.B.G.A.D.ā(Unknown Source)
at y.H.G.ā(Unknown Source)
at y.B.A.M.ď(Unknown Source)
at y.B.W.Č(Unknown Source)
at y.B.W.ā(Unknown Source)
at y.B.W.ă(Unknown Source)
at B.A.A.B.Q.Ă(Unknown Source)
at B.A.A.B.Q.ā(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.K.D.ā(Unknown Source)
at B.A.A.K.i.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6382)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6147)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4744)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4280)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:669)
at java.awt.EventQueue$2.run(EventQueue.java:667)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:683)
at java.awt.EventQueue$3.run(EventQueue.java:681)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.xml.sax.SAXParseException: Content is not allowed in prolog.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
... 58 more
 
in Help by
I don't see how Maven might be involved in this problem. Anyways, please upload one of your files and we will have a closer look. File upload is described here: http://yed.yworks.com/support/qa/1734/

1 Answer

0 votes

Hello, I am getting a very similar error with version 3.10.2. Is there a solution available?

y.H.B.B.a: SAX error: Content ist nicht zulässig in angehängtem Abschnitt.
    at y.H.B.B._.ā(Unknown Source)
    at y.H.B.A$13.ā(Unknown Source)
    at y.H.B.A.ā(Unknown Source)
    at y.H.B.A.ā(Unknown Source)
    at y.H.Q.ā(Unknown Source)
    at B.A.A.B.G.A.F.ā(Unknown Source)
    at B.A.A.B.G.A.F.ā(Unknown Source)
    at B.A.A.B.G.A.D.ā(Unknown Source)
    at y.H.G.ā(Unknown Source)
    at y.B.A.M.ď(Unknown Source)
    at y.B.W.Č(Unknown Source)
    at y.B.W.ā(Unknown Source)
    at y.B.W.ă(Unknown Source)
    at B.A.A.B.Q.Ă(Unknown Source)
    at B.A.A.B.Q.ā(Unknown Source)
    at B.A.A.J.A.ā(Unknown Source)
    at B.A.A.J.A.ā(Unknown Source)
    at B.A.A.J.D.ă(Unknown Source)
    at B.A.A.J.D.Ă(Unknown Source)
    at B.A.A.B$5.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:727)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:688)
    at java.awt.EventQueue$3.run(EventQueue.java:686)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:697)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: org.xml.sax.SAXParseException; lineNumber: 864; columnNumber: 1; Content ist nicht zulässig in angehängtem Abschnitt.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:251)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:300)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:121)
    ... 34 more

PS: Here is the graphml file that gives the error.

by
edited
As the error message already indicates, yEd thinks your file contains erroneous content. Without knowing the file, it's impossible to know that's going wrong. Please upload the file as described here: http://yed.yworks.com/support/qa/1734/
OK, I just added the graphml file at the bottom of the post.
There is a big block of 0 value bytes at the end of your file. I have no idea why that is the case (yEd does not write such blocks), but at least it is easy to fix:
1. Open your file in a text editor (or XML editor).
2. Find the last occurance of "</graphml>" (without the quotes).
3. Delete everything thereafter.
4. Save.
Legal Disclosure | Privacy Policy
...