-
Notifications
You must be signed in to change notification settings - Fork 0
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
failed import/export of graphs in GXL format #421
Comments
This is definitely the right place. Unfortunately, the GXL import is not very stable, as you noticed. If you explicitly provide the namespace in the gxl tag of your .gxl, as in <gxl xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.gupro.de/GXL/gxl-1.0.dtd"> then you will get a little bit further. Unfortunately, I do not count myself as xml expert, I do not know how to make the unmarshaller understand that this is supposed to be the default namespace. The only documentation I can offer is the MSc thesis in which all this is described: see http://fmt.cs.utwente.nl/files/sprojects/142.pdf Original comment by: rensink |
Thank you for the quick response and for the documentation. Considering the initial issue, as mentioned I already tried to manually add the namespace in the gxl. When trying to import the updated xml file in groove's simulator, no more error occur and the "config dialog" pop. However, when clicking on "ok", nothing happen and the graph does not seem to be, in fact, imported. When importing and before the appearance of the "config dialog", the following messages are printed in the terminal used to launch the simulator :
Original comment by: ceichler |
Yes, I now see your initial remark that you tried this. Sorry for overlooking that. There are two other issues that prevent this from working:
If you manually include the instance graph into the file with the type definition, and manually remove all those spaces, then in fact you will get an imported graph that looks reasonable to me. The dialog in principle allows you to tune the way the gxl graphs are represented in GROOVE. Unfortunately it pops up all the time, and it spews out all those messages on stdout. This is actually due to the library used to create the dialog (jaxfront). It's all far from ideal, I'm afraid; and I do not have time to improve the situation at the moment. Still, I'm curious to know if you get anything at all now, and if there are other small things I can help with, I'm ready to try. Yours, Original comment by: rensink |
My bad, quoting errors within the text dilute the message. After removing spaces in type names, 'dummy' example files containing both type and instance graphs did successfully load. However, when trying to import files created through AGG's export function (after taking care of spacenames and spaces), the error reported in post scriptum occurs. Even though I am not 100% sure, I reckon that AGG's export is error free, so that the issue may indeed come from groove. I'm afraid I'll have to postpone my groove's usage due to approaching deadlines. Provided that your are interested, I'll come back to you if I come up with a satisfying and clean solution regarding exchanges of graphs from AGG to groove. Thx for your time and help,
Original comment by: ceichler |
If you attach the graph, I can look into it. Offhand I'd agree that the likelihood of errors in (this part of) GROOVE is larger than for AGG. --Arend Original comment by: rensink |
Enclosed is the concerned graph, titled "example.gxl". By the way,to know groove's accepted syntax, I wanted to export something created in groove to gxl (see attachment, "attributedGrammar.gps"). While exporting the type graph works fine, trying to export the start graph raises the following error :
Original comment by: ceichler |
Forgot groove's grammar that fail to export Original comment by: ceichler |
Hello,
I constantly fail to import graph in GXL format. My initial aim was to import in groove graphs created and saved in gxl using AGG. The following error shows up :
As a first resolution attempt, I manually added the xml namespace "http://www.gupro.de/GXL/gxl-1.0.dtd" in the gxl file. When trying to import, the config dialog box pops, but nothing happens after acceptation.
To test on an example "guaranteed to be well formed" I tried to import the example provided in http://www.gupro.de/GXL/examples/schema/gxl/simpleExample/content.html. It throws :
[org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.]
groove.io.external.Importers.doImport(Importers.java:67)
groove.gui.action.ImportAction.execute(ImportAction.java:22)
groove.gui.action.SimulatorAction.actionPerformed(SimulatorAction.java:231)
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
javax.swing.AbstractButton.doClick(AbstractButton.java:357)
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:850)
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
java.awt.Component.processMouseEvent(Component.java:6288)
javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
java.awt.Component.processEvent(Component.java:6053)
java.awt.Container.processEvent(Container.java:2041)
java.awt.Component.dispatchEventImpl(Component.java:4651)
java.awt.Container.dispatchEventImpl(Container.java:2099)
java.awt.Component.dispatchEvent(Component.java:4481)
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
java.awt.Container.dispatchEventImpl(Container.java:2085)
java.awt.Window.dispatchEventImpl(Window.java:2478)
java.awt.Component.dispatchEvent(Component.java:4481)
java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
java.awt.EventQueue.access$000(EventQueue.java:84)
java.awt.EventQueue$1.run(EventQueue.java:602)
java.awt.EventQueue$1.run(EventQueue.java:600)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
java.awt.EventQueue$2.run(EventQueue.java:616)
java.awt.EventQueue$2.run(EventQueue.java:614)
java.security.AccessController.doPrivileged(Native Method)
java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Finally, I tried to export an instance graph created in groove to GXL in order to compare the xml files. I keep getting :
I'm unsure to post in the right place, but any help would be much welcomed. Is there in particular any user manual detailing the procedure to import/export (I couldn't find any details on these operations)?
Kind regards,
Cédric Eichler
Reported by: ceichler
The text was updated successfully, but these errors were encountered: