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

Lexical error on cyrilic label with space #17

Open
anton-z-s opened this issue Oct 24, 2016 · 0 comments
Open

Lexical error on cyrilic label with space #17

anton-z-s opened this issue Oct 24, 2016 · 0 comments

Comments

@anton-z-s
Copy link

In Protege 5.0.0 and 5.1.0 (owlviz 5.0.3) when trying to display entity with label that contains both cyrillic letters and space symbol (like "пример примерыч") the error occurs. However, when trying cyrillic without spaces or english with spaces there is no error. This is strange to see in unicode.
Protege 4.3 with owlviz 4.1.2 handles such label perfectly.

2016-10-24 20:08:48.355 [AWT-EventQueue-0] ERROR ProtegeApplication    Uncaught Exception in thread 'AWT-EventQueue-0'
org.coode.owlviz.util.graph.layout.dotlayoutengine.dotparser.TokenMgrError: Lexical error at line 1, column 295.  Encountered: "\u044b" (1099), after : "\"\'testing 123 "
    at org.coode.owlviz.util.graph.layout.dotlayoutengine.dotparser.DotParserTokenManager.getNextToken(DotParserTokenManager.java:687) ~[na:na]
    at org.coode.owlviz.util.graph.layout.dotlayoutengine.dotparser.DotParser.jj_ntk(DotParser.java:532) ~[na:na]
    at org.coode.owlviz.util.graph.layout.dotlayoutengine.dotparser.DotParser.stmt(DotParser.java:225) ~[na:na]
    at org.coode.owlviz.util.graph.layout.dotlayoutengine.dotparser.DotParser.graph(DotParser.java:188) ~[na:na]
    at org.coode.owlviz.util.graph.layout.dotlayoutengine.dotparser.DotParser.start(DotParser.java:153) ~[na:na]
    at org.coode.owlviz.util.graph.layout.dotlayoutengine.dotparser.DotParser.parse(DotParser.java:112) ~[na:na]
    at org.coode.owlviz.util.graph.layout.dotlayoutengine.DotGraphLayoutEngine.layoutGraph(DotGraphLayoutEngine.java:91) ~[na:na]
    at org.coode.owlviz.util.graph.ui.GraphView.revalidateGraph(GraphView.java:301) ~[na:na]
    at org.coode.owlviz.util.graph.ui.GraphView$3.graphChanged(GraphView.java:134) ~[na:na]
    at org.coode.owlviz.util.graph.controller.impl.DefaultGraphGenerator.fireGraphChangedEvent(DefaultGraphGenerator.java:573) ~[na:na]
    at org.coode.owlviz.util.graph.controller.impl.DefaultGraphGenerator$1.objectsAdded(DefaultGraphGenerator.java:163) ~[na:na]
    at org.coode.owlviz.util.graph.controller.impl.DefaultVisualisedObjectManager.fireObjectAddedEvent(DefaultVisualisedObjectManager.java:671) ~[na:na]
    at org.coode.owlviz.util.graph.controller.impl.DefaultVisualisedObjectManager.showObject(DefaultVisualisedObjectManager.java:284) ~[na:na]
    at org.coode.owlviz.ui.OWLVizGraphPanel$3.selectionChanged(OWLVizGraphPanel.java:153) ~[na:na]
    at org.coode.owlviz.ui.OWLVizSelectionModel.fireSelectionChanged(OWLVizSelectionModel.java:69) ~[na:na]
    at org.coode.owlviz.ui.OWLVizSelectionModel.setSelectedClass(OWLVizSelectionModel.java:54) ~[na:na]
    at org.coode.owlviz.ui.OWLVizView.updateView(OWLVizView.java:89) ~[na:na]
    at org.protege.editor.owl.ui.view.cls.AbstractOWLClassViewComponent.updateView(AbstractOWLClassViewComponent.java:36) ~[na:na]
    at org.protege.editor.owl.ui.view.cls.AbstractOWLClassViewComponent.updateView(AbstractOWLClassViewComponent.java:19) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLSelectionViewComponent.updateViewContentAndHeader(AbstractOWLSelectionViewComponent.java:203) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLSelectionViewComponent.lambda$initialiseOWLView$25(AbstractOWLSelectionViewComponent.java:72) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLSelectionViewComponent$$Lambda$100/854318047.selectionChanged(Unknown Source) ~[na:na]
    at org.protege.editor.owl.model.selection.OWLSelectionModelImpl.fireSelectionChanged(OWLSelectionModelImpl.java:196) ~[na:na]
    at org.protege.editor.owl.model.selection.OWLSelectionModelImpl.updateSelectedObject(OWLSelectionModelImpl.java:183) ~[na:na]
    at org.protege.editor.owl.model.selection.OWLSelectionModelImpl.setSelectedObject(OWLSelectionModelImpl.java:173) ~[na:na]
    at org.protege.editor.owl.model.selection.SelectionPlaneImpl.transmitSelection(SelectionPlaneImpl.java:57) ~[na:na]
    at org.protege.editor.owl.ui.OWLWorkspaceViewsTab.transmitSelection(OWLWorkspaceViewsTab.java:101) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLSelectionViewComponent.lambda$setGlobalSelection$30(AbstractOWLSelectionViewComponent.java:132) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLSelectionViewComponent$$Lambda$128/1765220806.accept(Unknown Source) ~[na:na]
    at java.util.Optional.ifPresent(Optional.java:159) ~[na:1.8.0_40]
    at org.protege.editor.owl.ui.view.AbstractOWLSelectionViewComponent.setGlobalSelection(AbstractOWLSelectionViewComponent.java:132) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLEntityHierarchyViewComponent.transmitSelection(AbstractOWLEntityHierarchyViewComponent.java:253) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLEntityHierarchyViewComponent.lambda$initialiseView$32(AbstractOWLEntityHierarchyViewComponent.java:133) ~[na:na]
    at org.protege.editor.owl.ui.view.AbstractOWLEntityHierarchyViewComponent$$Lambda$123/525347577.valueChanged(Unknown Source) ~[na:na]
    at javax.swing.JTree.fireValueChanged(JTree.java:2926) ~[na:1.8.0_40]
    at javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3387) ~[na:1.8.0_40]
    at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:635) ~[na:1.8.0_40]
    at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1093) ~[na:1.8.0_40]
    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:294) ~[na:1.8.0_40]
    at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:188) ~[na:1.8.0_40]
    at javax.swing.JTree.setSelectionPath(JTree.java:1633) ~[na:1.8.0_40]
    at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2393) ~[na:1.8.0_40]
    at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3609) ~[na:1.8.0_40]
    at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3548) ~[na:1.8.0_40]
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) ~[na:1.8.0_40]
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) ~[na:1.8.0_40]
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) ~[na:1.8.0_40]
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) ~[na:1.8.0_40]
    at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279) ~[na:1.8.0_40]
    at java.awt.Component.processMouseEvent(Component.java:6522) ~[na:1.8.0_40]
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) ~[na:1.8.0_40]
    at java.awt.Component.processEvent(Component.java:6290) ~[na:1.8.0_40]
    at java.awt.Container.processEvent(Container.java:2234) ~[na:1.8.0_40]
    at java.awt.Component.dispatchEventImpl(Component.java:4881) ~[na:1.8.0_40]
    at java.awt.Container.dispatchEventImpl(Container.java:2292) ~[na:1.8.0_40]
    at java.awt.Component.dispatchEvent(Component.java:4703) ~[na:1.8.0_40]
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898) ~[na:1.8.0_40]
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4530) ~[na:1.8.0_40]
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462) ~[na:1.8.0_40]
    at java.awt.Container.dispatchEventImpl(Container.java:2278) ~[na:1.8.0_40]
    at java.awt.Window.dispatchEventImpl(Window.java:2750) ~[na:1.8.0_40]
    at java.awt.Component.dispatchEvent(Component.java:4703) ~[na:1.8.0_40]
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:751) ~[na:1.8.0_40]
    at java.awt.EventQueue.access$500(EventQueue.java:97) ~[na:1.8.0_40]
    at java.awt.EventQueue$3.run(EventQueue.java:702) ~[na:1.8.0_40]
    at java.awt.EventQueue$3.run(EventQueue.java:696) ~[na:1.8.0_40]
    at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_40]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) ~[na:1.8.0_40]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86) ~[na:1.8.0_40]
    at java.awt.EventQueue$4.run(EventQueue.java:724) ~[na:1.8.0_40]
    at java.awt.EventQueue$4.run(EventQueue.java:722) ~[na:1.8.0_40]
    at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_40]
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) ~[na:1.8.0_40]
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:721) ~[na:1.8.0_40]
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [na:1.8.0_40]
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_40]
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_40]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_40]
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_40]
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_40]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant