Support Q & A

Tag Filter: Filter
Viewing Page 1 of 1 (3 questions out of 3)

Plugin tutorial page out

2
replies

Hi guys,

I am building a plugin for Astah and I was using the tutorial available in http://astah.net/tutorials/plug-ins/plugin_tutorial_en/html/index.html. However, this link is going to a 404 Error page now. Is it just some random error or the plugin development support is being discontinued? Hope the latter not to be true.

Thank you.

Product: Astah Professional

.jar not loaded in classpath

1
replies

I am developing a plugin for astah that uses the FDR3 library (fdr.jar). I have added the following dependency to pom.xml:

FDR3 fdr3 1.0 system ${fdr.install}/fdr.jar

where ${fdr.install} is the folder where the .jar is located. 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 any class of fdr.jar the console prints a java.lang.NoClassDefFoundError: uk/ac/ox/cs/fdr/fdr with the following trace:

2016-05-29 12:43:25,065 [AWT-EventQueue-0] JP.co.esm.caddies.jomt.jview.eN - error has occurred. java.lang.NoClassDefFoundError: uk/ac/ox/cs/fdr/fdr at com.ref.RefinementController.executeRefinement(RefinementController.java:55) ~[na:na] at com.ref.RefinementController.checkRefinement(RefinementController.java:27) ~[na:na] at com.ref.RefinementView$1.actionPerformed(RefinementView.java:115) ~[na:na] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) ~[na:1.8.0_20] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346) ~[na:1.8.0_20] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) ~[na:1.8.0_20] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) ~[na:1.8.0_20] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) ~[na:1.8.0_20] at java.awt.Component.processMouseEvent(Component.java:6525) ~[na:1.8.0_20] at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) ~[na:1.8.0_20] at java.awt.Component.processEvent(Component.java:6290) ~[na:1.8.0_20] at java.awt.Container.processEvent(Container.java:2234) ~[na:1.8.0_20] at java.awt.Component.dispatchEventImpl(Component.java:4881) ~[na:1.8.0_20] at java.awt.Container.dispatchEventImpl(Container.java:2292) ~[na:1.8.0_20] at java.awt.Component.dispatchEvent(Component.java:4703) ~[na:1.8.0_20] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4898) ~[na:1.8.0_20] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4533) ~[na:1.8.0_20] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4462) ~[na:1.8.0_20] at java.awt.Container.dispatchEventImpl(Container.java:2278) ~[na:1.8.0_20] at java.awt.Window.dispatchEventImpl(Window.java:2739) ~[na:1.8.0_20] at java.awt.Component.dispatchEvent(Component.java:4703) ~[na:1.8.0_20] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:746) ~[na:1.8.0_20] at java.awt.EventQueue.access$400(EventQueue.java:97) ~[na:1.8.0_20] at java.awt.EventQueue$3.run(EventQueue.java:697) ~[na:1.8.0_20] at java.awt.EventQueue$3.run(EventQueue.java:691) ~[na:1.8.0_20] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_20] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) ~[na:1.8.0_20] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:86) ~[na:1.8.0_20] at java.awt.EventQueue$4.run(EventQueue.java:719) ~[na:1.8.0_20] at java.awt.EventQueue$4.run(EventQueue.java:717) ~[na:1.8.0_20] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_20] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) ~[na:1.8.0_20] at java.awt.EventQueue.dispatchEvent(EventQueue.java:716) ~[na:1.8.0_20] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) [na:1.8.0_20] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) [na:1.8.0_20] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) [na:1.8.0_20] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) [na:1.8.0_20] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [na:1.8.0_20] at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) [na:1.8.0_20] Caused by: java.lang.ClassNotFoundException: uk.ac.ox.cs.fdr.fdr not found by com.ref.ref [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_20] ... 39 common frames omitted

I have no idea why a ClassNotFoundException is being thrown if the project is built successfully, that is, I am assuming that the jar was added to the classpath as expected. Could you help me pointing out what could be wrong here? Is there any way of viewing the complete trace?

I get the feeling that this issue has something to do with several .dylib files that this library requires in order to run properly. I have copied these files to /src/main/resources folder but still no success. Can I use the fdr.jar from the FDR installation folder without bundling it to the plugin?

Product: Astah Professional

Easy Code Reverse Plugin on Astah

3
replies

Hi everyone, I'm using astah version 7.0.0/846701 and installed Easy Code Reverse Plugin version 1.0.3. But when I drag and drop URL directly into an Astah class diagram, an error alert appearanced:"Error when parsing the code". I tried to reverse .java file.

Product: Astah Professional

Page: 1