Page 1 of 1

loading specificdiagram example in the openapi

PostPosted: Fri May 18, 2007 11:20 am
by KH
Hi,

I am having some issues when I am trying to load the specificdiagram
example. If I just copy the diagram.jar, plugin.xml, and the icons folders
to the plugins directory, I get the error listed below. However, if I
package everything inside one jar file, then the specificdiagram text will
appear in the diagram toolbar but the icon associated with the
specificdiagram does not. Does anyone know what the cause may be?

Thanks.

2007-05-17 15:01:38,820 [main] ERROR PLUGINS - can not start pluginSpecific
Diagram
java.lang.NullPointerException
at
com.nomagic.magicdraw.ui.ResizableIconHelper.createSVGIcon(ResizableIconHelper.java:35)
at
com.nomagic.magicdraw.plugins.impl.examples.specificdiagram.SpecificDiagramDescriptor.getSVGIcon(Unknown
Source)
at
com.nomagic.magicdraw.core.Application.addNewDiagramType(Application.java:1088)
at
com.nomagic.magicdraw.plugins.impl.examples.specificdiagram.SpecificDiagramPlugin.init(Unknown
Source)
at com.nomagic.magicdraw.plugins.PluginsManager.a(PluginsManager.java:289)
at com.nomagic.magicdraw.plugins.PluginsManager.b(PluginsManager.java:242)
at
com.nomagic.magicdraw.core.Application.internalStart(Application.java:604)
at com.nomagic.magicdraw.core.Application.start(Application.java:477)
at com.nomagic.magicdraw.core.Application.start(Application.java:457)
at com.nomagic.magicdraw.Main.main(Main.java:16)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.nomagic.launcher.Launcher.startMainClass(Launcher.java:425)
at com.nomagic.launcher.Launcher.start(Launcher.java:169)
at com.nomagic.launcher.Launcher.main(Launcher.java:122)



Re: loading specificdiagram example in the openapi

PostPosted: Mon May 21, 2007 2:54 am
by Martynas Lelevicius
Hi,

What MagicDraw version are you using?

Regards,
--
Martynas Lelevicius
Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT-49425, Kaunas
P.O. box 2166, LT-44011, Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
E-mail : marte
WWW: http://www.magicdraw.com


Re: loading specificdiagram example in the openapi

PostPosted: Tue May 22, 2007 11:23 am
by KH
Hi,

I'm using version 11.6.

Thanks.

"Martynas Lelevicius" <marte> wrote in message
news:4632245.1179744170764.JavaMail.tadjar@peleda...
> Hi,
>
> What MagicDraw version are you using?
>
> Regards,
> --
> Martynas Lelevicius
> Programmer
> No Magic Lithuanian Development Center
> Savanoriu pr. 363, LT-49425, Kaunas
> P.O. box 2166, LT-44011, Kaunas
> Phone: +370 37 324032 Fax: +370 37 320670
> E-mail : marte
> WWW: http://www.magicdraw.com
>



Re: loading specificdiagram example in the openapi

PostPosted: Sun May 27, 2007 10:59 pm
by Martynas Lelevicius
Hi,

Indeed it is wrong sample.
The right sample (source and correct plugin diagram.jar) is attached.

Sorry for the inconveniences.

Regards,
--
Martynas Lelevicius
Programmer
No Magic Lithuanian Development Center
Savanoriu pr. 363, LT-49425, Kaunas
P.O. box 2166, LT-44011, Kaunas
Phone: +370 37 324032 Fax: +370 37 320670
E-mail : marte
WWW: http://www.magicdraw.com