View Question

Error

Im currently making an Astah plug-in. I wanted a new JFrame to show up when I clicked on the JmenuItem. In Intellij my java codes workes, but when I run it in Astah it gives me the following exception:

2017-10-17 14:16:49,776 [AWT-EventQueue-0] JP.co.esm.caddies.jomt.jview.eN - error has occurred. java.lang.NullPointerException: null at augusoft.PresentationLayer.AuguSoftView$2.actionPerformed(AuguSoftView.java:186) ~[na:na] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) ~[na:1.8.0_144] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) ~[na:1.8.0_144] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) ~[na:1.8.0_144] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) ~[na:1.8.0_144] at javax.swing.AbstractButton.doClick(AbstractButton.java:376) ~[na:1.8.0_144] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) ~[na:1.8.0_144] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) ~[na:1.8.0_144] at java.awt.Component.processMouseEvent(Component.java:6533) ~[na:1.8.0_144] at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) ~[na:1.8.0_144] at java.awt.Component.processEvent(Component.java:6298) ~[na:1.8.0_144] at java.awt.Container.processEvent(Container.java:2236) ~[na:1.8.0_144] at java.awt.Component.dispatchEventImpl(Component.java:4889) ~[na:1.8.0_144] at java.awt.Container.dispatchEventImpl(Container.java:2294) ~[na:1.8.0_144] at java.awt.Component.dispatchEvent(Component.java:4711) ~[na:1.8.0_144] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888) ~[na:1.8.0_144] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525) ~[na:1.8.0_144] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466) ~[na:1.8.0_144] at java.awt.Container.dispatchEventImpl(Container.java:2280) ~[na:1.8.0_144] at java.awt.Window.dispatchEventImpl(Window.java:2746) ~[na:1.8.0_144] at java.awt.Component.dispatchEvent(Component.java:4711) ~[na:1.8.0_144] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) ~[na:1.8.0_144] at java.awt.EventQueue.access$500(EventQueue.java:97) ~[na:1.8.0_144] at java.awt.EventQueue$3.run(EventQueue.java:709) ~[na:1.8.0_144] at java.awt.EventQueue$3.run(EventQueue.java:703) ~[na:1.8.0_144] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) ~[na:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90) ~[na:1.8.0_144] at java.awt.EventQueue$4.run(EventQueue.java:731) ~[na:1.8.0_144] at java.awt.EventQueue$4.run(EventQueue.java:729) ~[na:1.8.0_144] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_144] at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) ~[na:1.8.0_144] at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) ~[na:1.8.0_144] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [na:1.8.0_144] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_144] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_144] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_144] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_144] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_144] I looked in my Intellij and this path is available. How can I fix this problem?

Thanks in advance

Product: Astah Professional

Hi Jason,

I'm sorry that you are experiencing the error.

Did you follow the Astah Plug-in Development tutorial to create your plugin and were you able to run without any problems with the samples on there?

Seems that AuguSoftView is throwing an error but we cannot figure out the cause only with this stack trace. Could you please send us the project of your plugin to support@astah.net for us to take a look?

Thanks!

SJ

Answer Question

This content has the following tags: