Eclipse Plugin Development with Cameo EA

MagicDraw OpenAPI, scripting related questions and discussions

Moderator: Moderators

Eclipse Plugin Development with Cameo EA

Postby Chris Geiger » Thu Sep 15, 2016 6:51 pm

I have been trying to get the Eclipse IDE samples working from within Eclipse for Cameo EA. When I use the Debug Configuration "MagicDraw with all plugins" it launches the program as MagicDraw not Cameo EA. It then proceeds to attempt a request for a license from the FlexLM license manager and fails out with a message like:

Code: Select all
Current FLEXnet License Server does not store any license key for MagicDraw version 18.2.
Please enter the new license key in the FLEXnet License Server.

To get a key, ...


What do I need to modify to launch Cameo EA and have it request a Cameo EA 18.2 license?

Thanks,
Chris
You do not have the required permissions to view the files attached to this post.
Chris Geiger
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:1
Joined: Wed Sep 14, 2016 4:05 pm

Re: Eclipse Plugin Development with Cameo EA

Postby marlel » Fri Sep 16, 2016 4:24 am

Hello,

Please try the same instructions (http://docs.nomagic.com/display/MD182/D ... in+Eclipse), but import projects from the attached eclipse.zip archive.
You do not have the required permissions to view the files attached to this post.
Best regards,
Martynas
marlel
No Magic
No Magic
 
Posts: 384
Posts Rating:29
Joined: Wed Jul 11, 2012 2:31 am

Re: Eclipse Plugin Development with Cameo EA

Postby Chris Geiger » Fri Sep 16, 2016 1:13 pm

Thank you. For others' reference the changes from the eclipse.zip sample you provided versus the sample shipped with the product included:
  • In MagicDraw/.classpath: adding in brand.jar and brand_api.jar
  • In MagicDraw/.classpath: updating version numbers of many libraries
  • In MagicDraw/.classpath: adding in com.nomagic.annotation-1.0.jar
  • In MagicDraw/.classpath: removing org.eclipse.ocl.ecore_3.1.0.v20110510-2118.jar
  • Removal of the CommandLine project
Chris Geiger
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:1
Joined: Wed Sep 14, 2016 4:05 pm

Re: Eclipse Plugin Development with Cameo EA

Postby dang-hung.nguyen@sivantos.com » Wed Jun 28, 2017 5:44 am

Hello,
i've got the same problem like the previous user, but even substituting the eclipse.zip file with the new one doesnt solve it.
dang-hung.nguyen@sivantos.com
Forum Newbie
Forum Newbie
 
Posts: 18
Posts Rating:0
Joined: Wed Jun 28, 2017 3:01 am

Re: Eclipse Plugin Development with Cameo EA

Postby Andrei.Voinikonis@xplm.com » Wed Jul 05, 2017 4:28 am

Hi,

I have the same problem with eclipse/mars, flex license and 18.4 version.

Urgent help needed!

The eclipse output is:

2017-07-05 12:21:04,082 [main] INFO FLOATING - Creating floating client: 1101@localhost
2017-07-05 12:21:17,085 [AWT-EventQueue-0] INFO FLOATING - FLManager. Login dialog. onOK action fired
2017-07-05 12:21:17,158 [pool-MagicDraw-thread-1:FLEXnet License Server Connection] INFO FLOATING - FLManager. Stopping active client...
2017-07-05 12:21:17,158 [pool-MagicDraw-thread-1:FLEXnet License Server Connection] INFO FLOATING - Client: Stop the timer.
2017-07-05 12:21:17,158 [pool-MagicDraw-thread-1:FLEXnet License Server Connection] INFO FLOATING - FLManager. Active client stopped - OK.
2017-07-05 12:21:17,169 [main] INFO FLOATING - FLManager. Connecting to the server: <ourserver> 1101
2017-07-05 12:21:17,169 [main] INFO FLOATING - Creating floating client: 1101@<ourserver>
2017-07-05 12:21:20,987 [main] ERROR FLOATING - FLManager. Server does not provide licenses for current version.
2017-07-05 12:21:20,987 [main] INFO GENERAL - Current FLEXnet License Server does not store any license key for MagicDraw version 18.4.
Please enter the new license key in the FLEXnet License Server.

To get a key, request it from license owner account at http://www.nomagic.com/products/magicdraw.html, sales@magicdraw.com or your sales representative.


The license server logs at the time:

12:21:18 (cameo) UNSUPPORTED: "MagicDrawFFF" (PORT_AT_HOST_PLUS ) Andrei.Voinikonis@xplm-voi-nb3 (License server system does not support this feature. (-18,327))
:(
Andrei.Voinikonis@xplm.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Wed Jul 05, 2017 1:57 am

Re: Eclipse Plugin Development with Cameo EA

Postby Andrei.Voinikonis@xplm.com » Wed Jul 05, 2017 7:30 am

Analysing the license server logs I have found that the license client sends
"MagicDrawFFF"-key in request, if it startet from the eclipse.
The server supports "CameoSystemsModelerEnterprise" or "CameoSystemsModelerArchitect" keys only.

How can we adapt the license client to send the correct one?
Last edited by Andrei.Voinikonis@xplm.com on Thu Jul 06, 2017 1:55 am, edited 1 time in total.
Andrei.Voinikonis@xplm.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Wed Jul 05, 2017 1:57 am

Re: Eclipse Plugin Development with Cameo EA

Postby dang-hung.nguyen@sivantos.com » Wed Jul 05, 2017 7:34 am

You have to rewrite the MAGIC_DRAW_INSTALL_DIRECTORY to your Cameo Systems Modeller installation directory. In case, you already did that, check it, if the installation folder's name contains any spaces.

For example: "C:\Program Files\Cameo Systems Modeller\" won't be accepted as valid path.
dang-hung.nguyen@sivantos.com
Forum Newbie
Forum Newbie
 
Posts: 18
Posts Rating:0
Joined: Wed Jun 28, 2017 3:01 am

Re: Eclipse Plugin Development with Cameo EA

Postby Andrei.Voinikonis@xplm.com » Wed Jul 05, 2017 8:56 am

It was accepted but I have reinstalled the application and set it to
"C:\CameoDev\CameoSysModeller\V184"
But it does not solve the issue - the license still cannot be got. :(
Andrei.Voinikonis@xplm.com
Forum Newbie
Forum Newbie
 
Posts: 3
Posts Rating:0
Joined: Wed Jul 05, 2017 1:57 am

Re: Eclipse Plugin Development with Cameo EA

Postby Olivier CASSE - France » Fri Dec 15, 2017 7:04 pm

Hello,

did you succeed in fixing the issue ?

same problem here

Olivier
User avatar
Olivier CASSE - France
Forum Beginner
Forum Beginner
 
Posts: 40
Posts Rating:1
Joined: Wed Jan 11, 2017 6:42 am
Location: France
Full name: Olivier CASSE

Re: Eclipse Plugin Development with Cameo EA

Postby Olivier CASSE - France » Mon Dec 18, 2017 3:36 am

found a fix by using the attached .classpath, under the MagicDraw folder in the Workspace directory

hope this helps,
Olivier
You do not have the required permissions to view the files attached to this post.
User avatar
Olivier CASSE - France
Forum Beginner
Forum Beginner
 
Posts: 40
Posts Rating:1
Joined: Wed Jan 11, 2017 6:42 am
Location: France
Full name: Olivier CASSE

Next

Return to Programmatic Extendibility

Who is online

Users browsing this forum: No registered users and 0 guests

cron