MD Running Problem

Discussions about Java virtual machine, installation, and running

Moderator: Moderators

MD Running Problem

Postby Loup.Theron.stagiaire@prima-solutions.com » Fri Jul 31, 2015 2:16 am

Hi,

I try to launch MD 17.0 sp4 from a custom launcher for running and debugging a plugin we made years ago.

I have an error : "Unknown diagram type: Component Diagram"

Code: Select all
2015-07-31 10:05:37,017 [main] INFO PRIMA-IBCS.LICENSING - Add console appender.
java.lang.IllegalArgumentException: Unknown diagram type: Component Diagram.
   at com.nomagic.magicdraw.uml.DiagramType.registerDiagramType(DiagramType.java:407)
   at com.nomagic.magicdraw.core.Application.addNewDiagramType(Application.java:895)
2015-07-31 10:05:37,017 [main] FATAL PRIMA-IBCS.PLUGIN - MagicDraw initialization issue
java.lang.IllegalArgumentException: Unknown diagram type: Component Diagram.
   at com.nomagic.magicdraw.uml.DiagramType.registerDiagramType(DiagramType.java:407)
   at com.nomagic.magicdraw.core.Application.addNewDiagramType(Application.java:895)
   at com.nomagic.magicdraw.ui.diagrams.CustomizableDiagramsManager.registerDiagrams(CustomizableDiagramsManager.java:262)
   at com.nomagic.magicdraw.ui.diagrams.CustomizableDiagramsManager.init(CustomizableDiagramsManager.java:101)
   at com.nomagic.magicdraw.core.i.f(i.java:158)
   at com.nomagic.rcpf.product.o.a(o.java:248)
   at com.nomagic.rcpf.product.p.b(p.java:91)
   at com.nomagic.rcpf.product.p.a(p.java:80)
   at com.nomagic.magicdraw.core.Application.internalStart(Application.java:690)
   at com.nomagic.magicdraw.core.Application.start(Application.java:525)
   at com.nomagic.magicdraw.core.Application.start(Application.java:509)
   at primasolutions.magicdraw.integration.launcher.Launcher.main(Launcher.java:20)
   at com.nomagic.magicdraw.ui.diagrams.CustomizableDiagramsManager.registerDiagrams(CustomizableDiagramsManager.java:262)
   at com.nomagic.magicdraw.ui.diagrams.CustomizableDiagramsManager.init(CustomizableDiagramsManager.java:101)
   at com.nomagic.magicdraw.core.i.f(i.java:158)
   at com.nomagic.rcpf.product.o.a(o.java:248)
   at com.nomagic.rcpf.product.p.b(p.java:91)
   at com.nomagic.rcpf.product.p.a(p.java:80)
   at com.nomagic.magicdraw.core.Application.internalStart(Application.java:690)
   at com.nomagic.magicdraw.core.Application.start(Application.java:525)
   at com.nomagic.magicdraw.core.Application.start(Application.java:509)
   at primasolutions.magicdraw.integration.launcher.Launcher.main(Launcher.java:20)


Anyone know a way to find/solve this error ?

thank you,
Loup
Loup.Theron.stagiaire@prima-solutions.com
Forum Newbie
Forum Newbie
 
Posts: 6
Posts Rating:0
Joined: Tue Jul 21, 2015 4:44 am

Re: MD Running Problem

Postby mindaugas.genutis » Fri Jul 31, 2015 3:00 am

Dear Loup,

MagicDraw 17.0 did not have a component diagram yet. It seems your MagicDraw environment has a component diagram descriptor or a custom diagram descriptor which is derived from component diagram. Does your plugin have such custom diagram?

Could you double check for which MagicDraw version your plugin was developed? If it was developed for a higher version, you cannot use it with MD 17.0.

Yours Sincerely,

-- Mindaugas Genutis
User avatar
mindaugas.genutis
Customer Support
Customer Support
 
Posts: 510
Posts Rating:36
Joined: Thu Feb 04, 2010 1:57 am
Location: Kaunas

Re: MD Running Problem

Postby Loup.Theron.stagiaire@prima-solutions.com » Mon Aug 03, 2015 2:40 am

Hi,

Sorry for the late response.
I see no class overriding the DiagramDescriptor abstract class...

The plugin was developed for 16.5 sp4, 16.6 sp2 & 17.0 sp4.

Do you know how to remove this diagram type ?

Thank you,
Loup

EDIT: I have the same error when I execute the MD launcher outside of Eclipse. (The splash screen is freezing at "registering Diagram")
Loup.Theron.stagiaire@prima-solutions.com
Forum Newbie
Forum Newbie
 
Posts: 6
Posts Rating:0
Joined: Tue Jul 21, 2015 4:44 am

Re: MD Running Problem

Postby mindaugas.genutis » Tue Aug 25, 2015 2:53 am

Loup,

Diagram descriptors are derived not from Java code, but via descriptor.xml. Each diagram type has a separate descriptor.xml. They are located in <MD Install>\data\defaults\data\diagrams. Also, their copy exists in configuration directory which can be located from the MagicDraw About box dialog.

Look through all descriptors, maybe some of them derive from Component Diagram. Remove them and restart MagicDraw.

-- Mindaugas Genutis
User avatar
mindaugas.genutis
Customer Support
Customer Support
 
Posts: 510
Posts Rating:36
Joined: Thu Feb 04, 2010 1:57 am
Location: Kaunas

Re: MD Running Problem

Postby alangcreech@yahoo.com » Mon Jun 20, 2016 11:16 pm

I think you should reinstall it.
alangcreech@yahoo.com
Forum Newbie
Forum Newbie
 
Posts: 5
Posts Rating:0
Joined: Mon Jun 20, 2016 11:00 pm


Return to Installing and running

Who is online

Users browsing this forum: No registered users and 1 guest