Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gexf Encoding on export generates error on import #1514

Open
totetmatt opened this issue Jun 4, 2016 · 1 comment
Open

Gexf Encoding on export generates error on import #1514

totetmatt opened this issue Jun 4, 2016 · 1 comment

Comments

@totetmatt
Copy link
Contributor

Opening a .gexf file got error :

javax.xml.stream.XMLStreamException: ParseError at [row,col]:[226,112]
Message: Character reference "&#
    at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:596)
    at org.gephi.io.importer.plugin.file.ImporterGEXF.execute(ImporterGEXF.java:145)
Caused: java.lang.RuntimeException
    at org.gephi.io.importer.plugin.file.ImporterGEXF.execute(ImporterGEXF.java:169)
    at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:164)
    at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:189)
Caused: java.lang.RuntimeException
    at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:191)
    at org.gephi.desktop.importer.DesktopImportControllerUI$3.run(DesktopImportControllerUI.java:184)
Caused: java.lang.RuntimeException
    at org.gephi.desktop.importer.DesktopImportControllerUI$3.run(DesktopImportControllerUI.java:190)
[catch] at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:274)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

For this file Nolife9ans.zip

Graph was originally created via Twitter Stream Import Plugins and exported as Gexf from gephi.

The incriminated line is :

Where � makes import fail.
The message is this one
2016-06-04 10_10_07-gameophage gameophage _ twitter

Which sounds like Gephi encodes the Emoticon as HTML decimal, which generates error at import because &# is a special character in XML.

@mbastian
Copy link
Member

Hey, I wasn't able to reproduce this issue. I created a simple GEXF file with <node id="0" label="Gavroche 😆😂"> so it contains an emoticon. The file loaded fine in Gephi. Then I exported it and reimported it. Again, it loads find. Did I miss something? Thx!

@mbastian mbastian removed this from the 0.10.0 milestone Nov 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants