Bogus Title

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

Classpath errors with plugin after patching 9.0

Postby Faisal Waris » Sun May 07, 2006 5:29 am

I have a plugin that was running well until, I patched 9.0 to path 2 (Build
2006 02 28 15:160).

Now I am now getting classpath errors (both in Eclipse when debugging and in
MagicDraw when running standalone).

Specifically, when running from Eclipse, the plugin get the following
errror:

java.lang.NoClassDefFoundError: y/layout/LayoutGraph
at
com.nomagic.magicdraw.actions.ActionsCreator.createGeneralActions(ActionsCreator.java)
at
com.nomagic.magicdraw.actions.ActionsProvider.createGeneralActions(ActionsProvider.java)
at com.nomagic.magicdraw.core.n.i(n.java)
at com.nomagic.magicdraw.core.n.b(n.java)
at
com.nomagic.magicdraw.core.Application.getActionsManager(Application.java)
at com.nomagic.magicdraw.actions.MDAction.setGroup(MDAction.java)
at com.nomagic.actions.NMAction.<init>(NMAction.java)
at com.nomagic.magicdraw.actions.MDAction.<init>(MDAction.java)
at
com.nomagic.magicdraw.ui.actions.DefaultDiagramAction.<init>(DefaultDiagramAction.java)
at org.aiag.bcs.md.BCSPlugin$ValidationAction.<init>(BCSPlugin.java:140)
at org.aiag.bcs.md.BCSPlugin.init(BCSPlugin.java:68)
at com.nomagic.magicdraw.plugins.PluginsManager.a(PluginsManager.java)
at com.nomagic.magicdraw.plugins.PluginsManager.c(PluginsManager.java)
at com.nomagic.magicdraw.core.Application.internalStart(Application.java)
at com.nomagic.magicdraw.core.Application.start(Application.java)
at com.nomagic.magicdraw.core.Application.start(Application.java)
at com.nomagic.magicdraw.Main.main(Main.java)


And when running from MagicDraw only, the plugin gets a different classpath
error for a plugin supplied class.






Faisal Waris
 
Posts Rating:

Classpath errors with plugin after patching 9.0

Postby Faisal Waris » Sun May 07, 2006 5:30 am

I have a plugin that was running well until, I patched 9.0 to path 2 (Build
2006 02 28 15:160).

Now I am now getting classpath errors (both in Eclipse when debugging and in
MagicDraw when running standalone).

Specifically, when running from Eclipse, the plugin get the following
errror:

java.lang.NoClassDefFoundError: y/layout/LayoutGraph
at
com.nomagic.magicdraw.actions.ActionsCreator.createGeneralActions(ActionsCreator.java)
at
com.nomagic.magicdraw.actions.ActionsProvider.createGeneralActions(ActionsProvider.java)
at com.nomagic.magicdraw.core.n.i(n.java)
at com.nomagic.magicdraw.core.n.b(n.java)
at
com.nomagic.magicdraw.core.Application.getActionsManager(Application.java)
at com.nomagic.magicdraw.actions.MDAction.setGroup(MDAction.java)
at com.nomagic.actions.NMAction.<init>(NMAction.java)
at com.nomagic.magicdraw.actions.MDAction.<init>(MDAction.java)
at
com.nomagic.magicdraw.ui.actions.DefaultDiagramAction.<init>(DefaultDiagramAction.java)
at org.aiag.bcs.md.BCSPlugin$ValidationAction.<init>(BCSPlugin.java:140)
at org.aiag.bcs.md.BCSPlugin.init(BCSPlugin.java:68)
at com.nomagic.magicdraw.plugins.PluginsManager.a(PluginsManager.java)
at com.nomagic.magicdraw.plugins.PluginsManager.c(PluginsManager.java)
at com.nomagic.magicdraw.core.Application.internalStart(Application.java)
at com.nomagic.magicdraw.core.Application.start(Application.java)
at com.nomagic.magicdraw.core.Application.start(Application.java)
at com.nomagic.magicdraw.Main.main(Main.java)


And when running from MagicDraw only, the plugin gets a different classpath
error for a plugin supplied class.






Faisal Waris
 
Posts Rating:

Re: Classpath errors with plugin after patching 9.0

Postby Tomas Pugzlys » Mon May 08, 2006 11:55 pm

Hello,

Probably your Eclipse debug configuration uses unpatched MagicDraw classes.

When patch is downloaded patched classes are contained in patch.jar

Please add to your Eclipse debug configuration the following jar:
<MagicDraw install root>/lib/patch.jar

patch.jar should be above md.jar in jar order list.

Hope this helps.

Regards,
--
Tomas Pugzlys
Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363- IV, LT-49425, Kaunas
P.O. box 2166, LT-44011, Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
e-mail : tomasp
WWW: http://www.magicdraw.com
--
MagicDraw - UML Made Simple

Tomas Pugzlys
 
Posts Rating:

empty

Postby Guest » Fri Dec 18, 2009 1:22 am

Guest
 
Posts Rating:


Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 3 guests

cron