Plugin astah :java.lang.NoClassDefFoundError
I am developing a plugin for astah in java. I am using astah UML (with student license).
I have added the following dependency to pom.xml:
${astahPath}/astah-api.jar
${astahPath}/astah-uml.jar
${astahPath}/lib/slf4j-api-1.6.6.jar
${astahPath}/lib/logback-loader-1.0.9b.jar
In eclipse all works, I am able to build the project successfully (astah-build).When I start astah (astah-launch) it loads the extended view I created, however, when the code reaches:
IPresentation cp = conn.getPresentations()[0]; // conn is a IConnector
cp.setProperty(PresentationPropertyConstants.Key.LINE_COLOR, "#FF0000"); '
the console prints :
java.lang.NoClassDefFoundError:com/change_vision/jude/api/inf/presentation/IPresentation
with the following trace:
java.lang.NoClassDefFoundError: com/change_vision/jude/api/inf/presentation/IPresentation
at parser.Principal.valida(Principal.java:601) ~[classes/:na]
at ui.ValidaDialog$1.actionPerformed(ValidaDialog.java:58) ~[classes/:na]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [na:1.8.0_191]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) ~[na:1.8.0_191]
at java.awt.Component.processMouseEvent(Component.java:6539) [na:1.8.0_191]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [na:1.8.0_191]
at java.awt.Component.processEvent(Component.java:6304) [na:1.8.0_191]
at java.awt.Container.processEvent(Container.java:2239) [na:1.8.0_191]
at java.awt.Component.dispatchEventImpl(Component.java:4889) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2297) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) [na:1.8.0_191]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) [na:1.8.0_191]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2283) [na:1.8.0_191]
at java.awt.Window.dispatchEventImpl(Window.java:2746) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) [na:1.8.0_191]
at java.awt.EventQueue.access$500(EventQueue.java:97) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:709) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:703) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:733) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:731) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) [na:1.8.0_191]
at java.awt.Dialog.show(Dialog.java:1084) [na:1.8.0_191]
at java.awt.Component.show(Component.java:1671) [na:1.8.0_191]
at java.awt.Component.setVisible(Component.java:1623) [na:1.8.0_191]
at java.awt.Window.setVisible(Window.java:1014) [na:1.8.0_191]
at java.awt.Dialog.setVisible(Dialog.java:1005) [na:1.8.0_191]
at ui.ValidaDialog.<init>(ValidaDialog.java:41) [classes/:na]
at projeto.ValidaAction.run(ValidaAction.java:20) [classes/:na]
at com.change_vision.astah.extension.plugin.ui.PluginAction.actionPerformed(X:95) [astah-uml.jar:na]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [na:1.8.0_191]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.8.0_191]
at javax.swing.AbstractButton.doClick(AbstractButton.java:376) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886) [na:1.8.0_191]
at java.awt.Component.processMouseEvent(Component.java:6539) [na:1.8.0_191]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [na:1.8.0_191]
at java.awt.Component.processEvent(Component.java:6304) [na:1.8.0_191]
at java.awt.Container.processEvent(Container.java:2239) [na:1.8.0_191]
at java.awt.Component.dispatchEventImpl(Component.java:4889) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2297) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) [na:1.8.0_191]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) [na:1.8.0_191]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2283) [na:1.8.0_191]
at java.awt.Window.dispatchEventImpl(Window.java:2746) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) [na:1.8.0_191]
at java.awt.EventQueue.access$500(EventQueue.java:97) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:709) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:703) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:733) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:731) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_191]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_191]
Caused by: java.lang.ClassNotFoundException: com.change_vision.jude.api.inf.presentation.IPresentation not found by projeto01.projeto [2]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) ~[org.apache.felix.framework.jar:na]
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) ~[org.apache.felix.framework.jar:na]
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) ~[org.apache.felix.framework.jar:na]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_191]
... 86 common frames omitted
I used other classes from the ASTAH API without problems.
Could you help me pointing out what could be wrong here?
Thank you.
Flávia
java plugins astah
add a comment |
I am developing a plugin for astah in java. I am using astah UML (with student license).
I have added the following dependency to pom.xml:
${astahPath}/astah-api.jar
${astahPath}/astah-uml.jar
${astahPath}/lib/slf4j-api-1.6.6.jar
${astahPath}/lib/logback-loader-1.0.9b.jar
In eclipse all works, I am able to build the project successfully (astah-build).When I start astah (astah-launch) it loads the extended view I created, however, when the code reaches:
IPresentation cp = conn.getPresentations()[0]; // conn is a IConnector
cp.setProperty(PresentationPropertyConstants.Key.LINE_COLOR, "#FF0000"); '
the console prints :
java.lang.NoClassDefFoundError:com/change_vision/jude/api/inf/presentation/IPresentation
with the following trace:
java.lang.NoClassDefFoundError: com/change_vision/jude/api/inf/presentation/IPresentation
at parser.Principal.valida(Principal.java:601) ~[classes/:na]
at ui.ValidaDialog$1.actionPerformed(ValidaDialog.java:58) ~[classes/:na]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [na:1.8.0_191]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) ~[na:1.8.0_191]
at java.awt.Component.processMouseEvent(Component.java:6539) [na:1.8.0_191]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [na:1.8.0_191]
at java.awt.Component.processEvent(Component.java:6304) [na:1.8.0_191]
at java.awt.Container.processEvent(Container.java:2239) [na:1.8.0_191]
at java.awt.Component.dispatchEventImpl(Component.java:4889) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2297) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) [na:1.8.0_191]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) [na:1.8.0_191]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2283) [na:1.8.0_191]
at java.awt.Window.dispatchEventImpl(Window.java:2746) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) [na:1.8.0_191]
at java.awt.EventQueue.access$500(EventQueue.java:97) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:709) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:703) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:733) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:731) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) [na:1.8.0_191]
at java.awt.Dialog.show(Dialog.java:1084) [na:1.8.0_191]
at java.awt.Component.show(Component.java:1671) [na:1.8.0_191]
at java.awt.Component.setVisible(Component.java:1623) [na:1.8.0_191]
at java.awt.Window.setVisible(Window.java:1014) [na:1.8.0_191]
at java.awt.Dialog.setVisible(Dialog.java:1005) [na:1.8.0_191]
at ui.ValidaDialog.<init>(ValidaDialog.java:41) [classes/:na]
at projeto.ValidaAction.run(ValidaAction.java:20) [classes/:na]
at com.change_vision.astah.extension.plugin.ui.PluginAction.actionPerformed(X:95) [astah-uml.jar:na]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [na:1.8.0_191]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.8.0_191]
at javax.swing.AbstractButton.doClick(AbstractButton.java:376) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886) [na:1.8.0_191]
at java.awt.Component.processMouseEvent(Component.java:6539) [na:1.8.0_191]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [na:1.8.0_191]
at java.awt.Component.processEvent(Component.java:6304) [na:1.8.0_191]
at java.awt.Container.processEvent(Container.java:2239) [na:1.8.0_191]
at java.awt.Component.dispatchEventImpl(Component.java:4889) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2297) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) [na:1.8.0_191]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) [na:1.8.0_191]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2283) [na:1.8.0_191]
at java.awt.Window.dispatchEventImpl(Window.java:2746) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) [na:1.8.0_191]
at java.awt.EventQueue.access$500(EventQueue.java:97) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:709) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:703) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:733) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:731) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_191]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_191]
Caused by: java.lang.ClassNotFoundException: com.change_vision.jude.api.inf.presentation.IPresentation not found by projeto01.projeto [2]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) ~[org.apache.felix.framework.jar:na]
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) ~[org.apache.felix.framework.jar:na]
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) ~[org.apache.felix.framework.jar:na]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_191]
... 86 common frames omitted
I used other classes from the ASTAH API without problems.
Could you help me pointing out what could be wrong here?
Thank you.
Flávia
java plugins astah
add a comment |
I am developing a plugin for astah in java. I am using astah UML (with student license).
I have added the following dependency to pom.xml:
${astahPath}/astah-api.jar
${astahPath}/astah-uml.jar
${astahPath}/lib/slf4j-api-1.6.6.jar
${astahPath}/lib/logback-loader-1.0.9b.jar
In eclipse all works, I am able to build the project successfully (astah-build).When I start astah (astah-launch) it loads the extended view I created, however, when the code reaches:
IPresentation cp = conn.getPresentations()[0]; // conn is a IConnector
cp.setProperty(PresentationPropertyConstants.Key.LINE_COLOR, "#FF0000"); '
the console prints :
java.lang.NoClassDefFoundError:com/change_vision/jude/api/inf/presentation/IPresentation
with the following trace:
java.lang.NoClassDefFoundError: com/change_vision/jude/api/inf/presentation/IPresentation
at parser.Principal.valida(Principal.java:601) ~[classes/:na]
at ui.ValidaDialog$1.actionPerformed(ValidaDialog.java:58) ~[classes/:na]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [na:1.8.0_191]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) ~[na:1.8.0_191]
at java.awt.Component.processMouseEvent(Component.java:6539) [na:1.8.0_191]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [na:1.8.0_191]
at java.awt.Component.processEvent(Component.java:6304) [na:1.8.0_191]
at java.awt.Container.processEvent(Container.java:2239) [na:1.8.0_191]
at java.awt.Component.dispatchEventImpl(Component.java:4889) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2297) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) [na:1.8.0_191]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) [na:1.8.0_191]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2283) [na:1.8.0_191]
at java.awt.Window.dispatchEventImpl(Window.java:2746) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) [na:1.8.0_191]
at java.awt.EventQueue.access$500(EventQueue.java:97) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:709) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:703) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:733) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:731) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) [na:1.8.0_191]
at java.awt.Dialog.show(Dialog.java:1084) [na:1.8.0_191]
at java.awt.Component.show(Component.java:1671) [na:1.8.0_191]
at java.awt.Component.setVisible(Component.java:1623) [na:1.8.0_191]
at java.awt.Window.setVisible(Window.java:1014) [na:1.8.0_191]
at java.awt.Dialog.setVisible(Dialog.java:1005) [na:1.8.0_191]
at ui.ValidaDialog.<init>(ValidaDialog.java:41) [classes/:na]
at projeto.ValidaAction.run(ValidaAction.java:20) [classes/:na]
at com.change_vision.astah.extension.plugin.ui.PluginAction.actionPerformed(X:95) [astah-uml.jar:na]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [na:1.8.0_191]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.8.0_191]
at javax.swing.AbstractButton.doClick(AbstractButton.java:376) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886) [na:1.8.0_191]
at java.awt.Component.processMouseEvent(Component.java:6539) [na:1.8.0_191]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [na:1.8.0_191]
at java.awt.Component.processEvent(Component.java:6304) [na:1.8.0_191]
at java.awt.Container.processEvent(Container.java:2239) [na:1.8.0_191]
at java.awt.Component.dispatchEventImpl(Component.java:4889) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2297) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) [na:1.8.0_191]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) [na:1.8.0_191]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2283) [na:1.8.0_191]
at java.awt.Window.dispatchEventImpl(Window.java:2746) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) [na:1.8.0_191]
at java.awt.EventQueue.access$500(EventQueue.java:97) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:709) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:703) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:733) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:731) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_191]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_191]
Caused by: java.lang.ClassNotFoundException: com.change_vision.jude.api.inf.presentation.IPresentation not found by projeto01.projeto [2]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) ~[org.apache.felix.framework.jar:na]
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) ~[org.apache.felix.framework.jar:na]
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) ~[org.apache.felix.framework.jar:na]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_191]
... 86 common frames omitted
I used other classes from the ASTAH API without problems.
Could you help me pointing out what could be wrong here?
Thank you.
Flávia
java plugins astah
I am developing a plugin for astah in java. I am using astah UML (with student license).
I have added the following dependency to pom.xml:
${astahPath}/astah-api.jar
${astahPath}/astah-uml.jar
${astahPath}/lib/slf4j-api-1.6.6.jar
${astahPath}/lib/logback-loader-1.0.9b.jar
In eclipse all works, I am able to build the project successfully (astah-build).When I start astah (astah-launch) it loads the extended view I created, however, when the code reaches:
IPresentation cp = conn.getPresentations()[0]; // conn is a IConnector
cp.setProperty(PresentationPropertyConstants.Key.LINE_COLOR, "#FF0000"); '
the console prints :
java.lang.NoClassDefFoundError:com/change_vision/jude/api/inf/presentation/IPresentation
with the following trace:
java.lang.NoClassDefFoundError: com/change_vision/jude/api/inf/presentation/IPresentation
at parser.Principal.valida(Principal.java:601) ~[classes/:na]
at ui.ValidaDialog$1.actionPerformed(ValidaDialog.java:58) ~[classes/:na]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [na:1.8.0_191]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) ~[na:1.8.0_191]
at java.awt.Component.processMouseEvent(Component.java:6539) [na:1.8.0_191]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [na:1.8.0_191]
at java.awt.Component.processEvent(Component.java:6304) [na:1.8.0_191]
at java.awt.Container.processEvent(Container.java:2239) [na:1.8.0_191]
at java.awt.Component.dispatchEventImpl(Component.java:4889) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2297) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) [na:1.8.0_191]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) [na:1.8.0_191]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2283) [na:1.8.0_191]
at java.awt.Window.dispatchEventImpl(Window.java:2746) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) [na:1.8.0_191]
at java.awt.EventQueue.access$500(EventQueue.java:97) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:709) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:703) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:733) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:731) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:109) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:190) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:235) [na:1.8.0_191]
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:233) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:233) [na:1.8.0_191]
at java.awt.Dialog.show(Dialog.java:1084) [na:1.8.0_191]
at java.awt.Component.show(Component.java:1671) [na:1.8.0_191]
at java.awt.Component.setVisible(Component.java:1623) [na:1.8.0_191]
at java.awt.Window.setVisible(Window.java:1014) [na:1.8.0_191]
at java.awt.Dialog.setVisible(Dialog.java:1005) [na:1.8.0_191]
at ui.ValidaDialog.<init>(ValidaDialog.java:41) [classes/:na]
at projeto.ValidaAction.run(ValidaAction.java:20) [classes/:na]
at com.change_vision.astah.extension.plugin.ui.PluginAction.actionPerformed(X:95) [astah-uml.jar:na]
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) [na:1.8.0_191]
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.8.0_191]
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.8.0_191]
at javax.swing.AbstractButton.doClick(AbstractButton.java:376) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:842) [na:1.8.0_191]
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:886) [na:1.8.0_191]
at java.awt.Component.processMouseEvent(Component.java:6539) [na:1.8.0_191]
at javax.swing.JComponent.processMouseEvent(JComponent.java:3324) [na:1.8.0_191]
at java.awt.Component.processEvent(Component.java:6304) [na:1.8.0_191]
at java.awt.Container.processEvent(Container.java:2239) [na:1.8.0_191]
at java.awt.Component.dispatchEventImpl(Component.java:4889) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2297) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4904) [na:1.8.0_191]
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4535) [na:1.8.0_191]
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4476) [na:1.8.0_191]
at java.awt.Container.dispatchEventImpl(Container.java:2283) [na:1.8.0_191]
at java.awt.Window.dispatchEventImpl(Window.java:2746) [na:1.8.0_191]
at java.awt.Component.dispatchEvent(Component.java:4711) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760) [na:1.8.0_191]
at java.awt.EventQueue.access$500(EventQueue.java:97) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:709) [na:1.8.0_191]
at java.awt.EventQueue$3.run(EventQueue.java:703) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:84) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:733) [na:1.8.0_191]
at java.awt.EventQueue$4.run(EventQueue.java:731) [na:1.8.0_191]
at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_191]
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) [na:1.8.0_191]
at java.awt.EventQueue.dispatchEvent(EventQueue.java:730) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_191]
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_191]
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_191]
Caused by: java.lang.ClassNotFoundException: com.change_vision.jude.api.inf.presentation.IPresentation not found by projeto01.projeto [2]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460) ~[org.apache.felix.framework.jar:na]
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72) ~[org.apache.felix.framework.jar:na]
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843) ~[org.apache.felix.framework.jar:na]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_191]
... 86 common frames omitted
I used other classes from the ASTAH API without problems.
Could you help me pointing out what could be wrong here?
Thank you.
Flávia
java plugins astah
java plugins astah
asked Nov 22 '18 at 23:21
Flavia
11
11
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439013%2fplugin-astah-java-lang-noclassdeffounderror%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53439013%2fplugin-astah-java-lang-noclassdeffounderror%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown