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

yEd error: could not import file

0 votes
Hi,
 
When opening yEd file I'm getting the yEd Error Handling window
with this:
 
yEd has encountered the following error: Could not import file MY_FILE.graphml
 
y.H.B.B.a: SAX error: An invalid XML character (Unicode: 0x0) was found in the element content of the document.
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.D.ā(Unknown Source)
at y.H.G.ā(Unknown Source)
at y.B.A.M.Đ(Unknown Source)
at y.B._.č(Unknown Source)
at y.B._.ā(Unknown Source)
at y.B._.ă(Unknown Source)
at B.A.A.B.W.ă(Unknown Source)
at B.A.A.B.W.ā(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.J.A$A.Ă(Unknown Source)
at B.A.A.J.A.ā(Unknown Source)
at B.A.A.K.D.ā(Unknown Source)
at B.A.A.K.j.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at com.jidesoft.plaf.basic.BasicJideButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: org.xml.sax.SAXParseException; lineNumber: 258589; columnNumber: 55; An invalid XML character (Unicode: 0x0) was found in the element content of the document.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
... 58 more
 
 
Please let me know if you can correct for this, or should I somehow edit the file manualy
 
Many thanks,
Wojciech

 

in Help by

1 Answer

0 votes

This error message means that there is a character/letter in the GraphML file that should not be in there (according to the error message it is the unicode character at codepoint 0 in line 258589). In theory, the quick fix would be finding and removing that character manually. However, unicode codepoint 0 is an "invisible" character that is not displayed in text editors which makes it difficult to find the offending character.

How did you create the problematic file? Which version of yEd are you using? What version of Java is yEd running on?

Your file seems to be really big, so uploading here is probably not an option. If you can upload your file to a public file hosting site and post a link to your file here, I will have a look and try to remove the problematic characters.

by [yWorks] (161k points)
Thank you for your quick reply.
I'm using yEd version 3.14 on Java 1.8.0_25 on Windows 7 x64,
although the file is quite old (~6 months old) so it was created in one of the previous versions of yEd. I didn't change anything substantial in the file. Just edited some text in the node and than the next time I tried to open the file I could not. I certainly didn't edit it by hand. I will look for the character myself, as the file contains somewhat personal information.
Legal Disclosure | Privacy Policy
...