protegeproject / sparql-query-plugin

Protege Desktop plug-in that provides support for writing and executing SPARQL queries.
12 stars 11 forks source link

SPARQL Query view fails to load (Protege 5.5.0-beta-9) #20

Open woutermont opened 5 years ago

woutermont commented 5 years ago

When trying to open the SPARQL Query view in Protege Desktop 5.5.0 (beta 9), only empty space appears and the log lists the following error. This only happens when working with a non-empty active ontology (i.e. as soon as I added a single class/individual to a new project, I was able to recreate the issue). First loading the view, then adding a class/individual, immediately leads to the same issue.

ERROR  10:56:42  Uncaught Exception in thread 'AWT-EventQueue-0'
java.lang.NoSuchMethodError: org.semanticweb.owlapi.rdf.model.AbstractTranslator.<init>(Lorg/semanticweb/owlapi/model/OWLOntologyManager;Lorg/semanticweb/owlapi/model/OWLOntology;ZLorg/semanticweb/owlapi/util/IndividualAppearance;Lorg/semanticweb/owlapi/util/AxiomAppearance;Ljava/util/concurrent/atomic/AtomicInteger;)V
    at org.protege.owl.rdf.impl.RDFTranslator.<init>(RDFTranslator.java:93) ~[na:na]
    at org.protege.owl.rdf.impl.RDFTranslator.translate(RDFTranslator.java:55) ~[na:na]
    at org.protege.owl.rdf.impl.OwlTripleStoreImpl.addAxiom(OwlTripleStoreImpl.java:99) ~[na:na]
    at org.protege.owl.rdf.Utilities.loadOwlTripleStore(Utilities.java:48) ~[na:na]
    at org.protege.owl.rdf.Utilities.getOwlTripleStore(Utilities.java:32) ~[na:na]
    at org.protege.editor.owl.rdf.repository.BasicSparqlReasoner.precalculate(BasicSparqlReasoner.java:54) ~[na:na]
    at org.protege.editor.owl.rdf.SparqlQueryView.initializeReasoner(SparqlQueryView.java:36) ~[na:na]
    at org.protege.editor.owl.rdf.SparqlQueryView.initialiseOWLView(SparqlQueryView.java:26) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLViewComponent.initialise(AbstractOWLViewComponent.java:43) ~[na:na]
    at org.protege.editor.core.ui.view.View.createContent(View.java:413) ~[na:na]
    at org.protege.editor.core.ui.view.View.createUI(View.java:220) ~[na:na]
    at org.protege.editor.core.ui.view.View$1.hierarchyChanged(View.java:124) ~[na:na]
    at java.desktop/java.awt.Component.processHierarchyEvent(Component.java:6799) ~[na:na]
    at java.desktop/java.awt.Component.processEvent(Component.java:6418) ~[na:na]
    at java.desktop/java.awt.Container.processEvent(Container.java:2263) ~[na:na]
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008) ~[na:na]
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) ~[na:na]
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840) ~[na:na]
    at java.desktop/java.awt.Component.addNotify(Component.java:7103) ~[na:na]
    at java.desktop/java.awt.Container.addNotify(Container.java:2789) ~[na:na]
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783) ~[na:na]
    at java.desktop/java.awt.Container.addNotify(Container.java:2800) ~[na:na]
    at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4783) ~[na:na]
    at java.desktop/java.awt.Container.addImpl(Container.java:1146) ~[na:na]
    at java.desktop/java.awt.Container.add(Container.java:436) ~[na:na]
    at org.coode.mdock.NodePanel.addNode(NodePanel.java:71) ~[na:na]
    at org.coode.mdock.NodePanel.addNode(NodePanel.java:77) ~[na:na]
    at org.coode.mdock.NodePanel.rebuild(NodePanel.java:61) ~[na:na]
    at org.coode.mdock.DynamicConfigPanel.handleMouseClicked(DynamicConfigPanel.java:91) ~[na:na]
    at org.coode.mdock.DynamicConfigPanel.access$100(DynamicConfigPanel.java:45) ~[na:na]
    at org.coode.mdock.DynamicConfigPanel$2.mouseClicked(DynamicConfigPanel.java:72) ~[na:na]
    at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635) ~[na:na]
    at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342) ~[na:na]
    at java.desktop/java.awt.Component.processEvent(Component.java:6397) ~[na:na]
    at java.desktop/java.awt.Container.processEvent(Container.java:2263) ~[na:na]
    at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5008) ~[na:na]
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) ~[na:na]
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840) ~[na:na]
    at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918) ~[na:na]
    at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4556) ~[na:na]
    at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488) ~[na:na]
    at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307) ~[na:na]
    at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772) ~[na:na]
    at java.desktop/java.awt.Component.dispatchEvent(Component.java:4840) ~[na:na]
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) ~[na:na]
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) ~[na:na]
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) ~[na:na]
    at java.base/java.security.AccessController.doPrivileged(Native Method) ~[na:na]
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) ~[na:na]
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) ~[na:na]
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) ~[na:na]
    at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) ~[na:na]
    at java.base/java.security.AccessController.doPrivileged(Native Method) ~[na:na]
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) ~[na:na]
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) ~[na:na]
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) ~[na:na]
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) ~[na:na]
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) ~[na:na]
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) ~[na:na]
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) ~[na:na]
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ~[na:na]