Unable to debug plugin code inside Eclipse application

Discussions about Java virtual machine, installation, and running

Moderator: Moderators

Unable to debug plugin code inside Eclipse application

Postby lalitha_shankar@hotmail.com » Wed Jul 01, 2020 5:01 pm

Trying to debug a plugin developed inside eclipse.
Have a java project with its own package and a simple Debug class. attached my development plugin directory and exeucting the debug main from inside eclipse.
I am receiving
java.lang.IllegalStateException: Application has to be started inside OSGI Framework
lalitha_shankar@hotmail.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Wed Jul 01, 2020 10:55 am

Re: Unable to debug plugin code inside Eclipse application

Postby ogirdor » Mon Jul 20, 2020 2:32 am

Hello Lalitha,

I would recommend that you follow closely the instructions in https://docs.nomagic.com/display/MD190S ... in+Eclipse and take a look at the example provided with your MagicDraw installation (this is also mentioned in the documentation under the link above). You can use the example provided and modify it to suit your needs.
ogirdor
Forum Newbie
Forum Newbie
 
Posts: 15
Posts Rating:3
Joined: Wed Jun 03, 2020 4:41 am

Re: Unable to debug plugin code inside Eclipse application

Postby lalitha_shankar@hotmail.com » Tue Jul 21, 2020 4:11 pm

Hi,
Thanks for the response. I created a new workspace and followed the link and installed Magic_Draw. Created my plugin , launched using " MAGIC DRAW all plugins.launch" configuration. App starts up fine and i get my plugin loaded confirmation msg :: 2020.07.21::14:53:28]. [LSRestAPIClient Plugin] Loading OK

When I open a project file from teamcloud server magic draw right away throws an internal error : Can you let me know which lucene jar file I need to add in my path. When I checked Magic_Draw_install_dir/libs
I am able to find lucene-analyzers-common-7.5.0.jar, lucene-misc-7.5.0.jar, lucene-core-7.5.0.jar and is added to my build path.

Status: not submitted
Tue Jul 21 14:53:42 PDT 2020
Error count: 1
java.lang.NoClassDefFoundError: org/apache/lucene/store/RAFDirectory
at com.nomagic.magicdraw.esi.project.c.h.a(h.java:110)
at com.nomagic.magicdraw.esi.project.c.h.<init>(h.java:92)
at com.nomagic.magicdraw.esi.project.project.n.a(n.java:263)
at com.nomagic.magicdraw.esi.project.project.n.<init>(n.java:218)
at com.nomagic.magicdraw.esi.project.project.af$d.c(af$d.java:748)
at com.nomagic.magicdraw.esi.project.project.af$d.w(af$d.java:682)
at com.nomagic.magicdraw.esi.project.project.af.b(af.java:401)
at com.nomagic.magicdraw.esi.project.project.af.a(af.java:157)
at com.nomagic.magicdraw.esi.project.project.ag.a(ag.java:122)
at com.nomagic.magicdraw.esi.project.project.ag.openProject(ag.java:109)
at com.nomagic.magicdraw.persistence.ProjectLoadService.loadStorage(ProjectLoadService.java:661)
at com.nomagic.magicdraw.persistence.ProjectLoadService.lambda$doLoad$0(ProjectLoadService.java:413)
at com.nomagic.magicdraw.persistence.ProjectLoadService.loadWithLoader(ProjectLoadService.java:449)
at com.nomagic.magicdraw.persistence.ProjectLoadService.doLoad(ProjectLoadService.java:412)
at com.nomagic.magicdraw.persistence.ProjectLoadService.load(ProjectLoadService.java:405)
at com.nomagic.magicdraw.teamwork2.esi.EsiServerActionsExecuter$4.execute(EsiServerActionsExecuter.java:978)
at com.nomagic.task.Task.construct(Task.java:192)
at com.nomagic.task.SwingWorker$2.call(SwingWorker.java:209)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.nomagic.task.SwingWorker$SwingWorkerFuture.run(SwingWorker.java:596)
at com.nomagic.task.BackportedThreadPoolExecutor$Worker.runTask(BackportedThreadPoolExecutor.java:1593)
at com.nomagic.task.BackportedThreadPoolExecutor$Worker.run(BackportedThreadPoolExecutor.java:1624)
at com.nomagic.task.PooledThread.run(PooledThread.java:64)
lalitha_shankar@hotmail.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Wed Jul 01, 2020 10:55 am


Return to Installing and running

Who is online

Users browsing this forum: No registered users and 1 guest

cron