The problem is that when the stream is read for the second time, it is at the EOF. A solution is to simply call stream.reset() before starting the import.
** Patch added: "welcomePatch.patch" http://launchpadlibrarian.net/51980909/welcomePatch.patch -- Can't import the same file twice in Welcome window https://bugs.launchpad.net/bugs/598157 You received this bug notification because you are a member of Gephi Team, which is subscribed to 0.7. Status in Gephi - Network exploration and manipulation: New Status in Gephi 0.7 series: New Bug description: Way to reproduce: * Launch Gephi * Open Les_Miserable.gexf from the Welcome window * Open this window again and try to import the same file. [Fatal Error] :1:1: Premature end of file. java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Impossible to parse the given XML file at org.gephi.desktop.importer.DesktopImportControllerUI$5.run(DesktopImportControllerUI.java:189) at org.gephi.utils.longtask.api.LongTaskExecutor$RunningLongTask.run(LongTaskExecutor.java:228) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Impossible to parse the given XML file at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:132) at org.gephi.desktop.importer.DesktopImportControllerUI$5.run(DesktopImportControllerUI.java:183) ... 7 more Caused by: java.lang.RuntimeException: Impossible to parse the given XML file at org.gephi.io.importer.api.ImportUtils.getXMLDocument(ImportUtils.java:96) at org.gephi.io.importer.plugin.file.ImporterGEXF.execute(ImporterGEXF.java:103) at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:113) at org.gephi.io.importer.impl.ImportControllerImpl.importFile(ImportControllerImpl.java:130) ... 8 more _______________________________________________ Mailing list: https://launchpad.net/~gephi.team Post to : [email protected] Unsubscribe : https://launchpad.net/~gephi.team More help : https://help.launchpad.net/ListHelp

