tgoprince / ontouml-lightweight-editor

Automatically exported from code.google.com/p/ontouml-lightweight-editor
0 stars 0 forks source link

Cannot open any project #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Run the command:

java -jar oled0.9.31.jar &

and this is the output:

 Adding to classpath: rsrc:swt-linux-x64.jar
SWT loaded from org.eclipse.swt.widgets.Display in rsrc:swt-linux-x64.jar
Reading from: libswt-atk-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-atk-gtk-4332-x64.so
Reading from: libswt-awt-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-awt-gtk-4332-x64.so
Reading from: libswt-cairo-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-cairo-gtk-4332-x64.so
Reading from: libswt-glx-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-glx-gtk-4332-x64.so
Reading from: libswt-gnome-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-gnome-gtk-4332-x64.so
Reading from: libswt-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-gtk-4332-x64.so
Reading from: libswt-mozilla-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-mozilla-gtk-4332-x64.so
Reading from: libswt-pi-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-pi-gtk-4332-x64.so
Reading from: libswt-pi3-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-pi3-gtk-4332-x64.so
Reading from: libswt-webkit-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-webkit-gtk-4332-x64.so
Reading from: libswt-xpcominit-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-xpcominit-gtk-4332-x64.so
Reading from: libswt-xulrunner-fix-x64.so
Extracted: /tmp/oled_bin/libswt-xulrunner-fix-x64.so
Reading from: libswt-xulrunner-gtk-4332-x64.so
Extracted: /tmp/oled_bin/libswt-xulrunner-gtk-4332-x64.so

2. try to open the attached project 04.oled (attached).

I see the screenshot attached (OLED-cannot-open-projects.png) and on the 
console I have:

java.lang.NullPointerException
    at br.ufes.inf.nemo.common.ontoumlparser.OntoUMLParser.getAlias(OntoUMLParser.java:406)
    at br.ufes.inf.nemo.oled.explorer.ProjectTree.drawModel(ProjectTree.java:394)
    at br.ufes.inf.nemo.oled.explorer.ProjectTree.drawModel(ProjectTree.java:450)
    at br.ufes.inf.nemo.oled.explorer.ProjectTree.drawModel(ProjectTree.java:357)
    at br.ufes.inf.nemo.oled.explorer.ProjectTree.<init>(ProjectTree.java:103)
    at br.ufes.inf.nemo.oled.explorer.ProjectBrowser.setProject(ProjectBrowser.java:92)
    at br.ufes.inf.nemo.oled.DiagramManager.openProject(DiagramManager.java:1091)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at br.ufes.inf.nemo.oled.util.MethodCall.call(MethodCall.java:63)
    at br.ufes.inf.nemo.oled.AppFrame.handleCommand(AppFrame.java:299)
    at br.ufes.inf.nemo.oled.AppToolbar.actionPerformed(AppToolbar.java:175)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
    at java.awt.Component.processMouseEvent(Component.java:6505)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Please note that this happens with *all* the projects I have.

Original issue reported on code.google.com by giulio.p...@gmail.com on 15 Jul 2014 at 3:19

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Giulio,

I just solved this. It should be available on the new version of the tool 
(perhaps v.9.32). 

Note: You should be able to open this project using the SVN version while we 
don't release the new version.

Thanks a lot,
John

Original comment by johnguer...@gmail.com on 16 Jul 2014 at 2:41