Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to launch player piano from Cameo Systems Modeler 2021x #6

Open
yeoleparesh opened this issue Nov 22, 2021 · 2 comments
Open

Comments

@yeoleparesh
Copy link

  MagicDraw cannot execute the Groovy macro, please make sure that the C:\Users\yeole.paresh\rapid-modeling-tools\player-piano\player-piano-script.groovy is correct. startup failed: C:\Users\yeole.paresh\rapid-modeling-tools\player-piano\player-piano-script.groovy: 142: unable to resolve class JsonSlurper @ line 142, column 18. jsonSlurper = new JsonSlurper(); ^ 1 error org.codehaus.groovy.control.MultipleCompilationErrorsException
@shaneconnelly23
Copy link
Collaborator

We were unable to recreate your error. Please try again with the updated main branch and provide instructions to recreate your error, should it persist.

@tbsgt
Copy link

tbsgt commented Mar 14, 2023

I was able to reproduce this. It impacts Cameo 2021xR2, but not Cameo 2021xR1 or 190sp4. The root cause is a change in the Groovy distribution that ships with Cameo. In 190sp4 and 2021xR1, I see

<library name="lib/engines/groovy-2.4.15/embeddable/groovy-all-2.4.15.jar"/>

but in 2021xR2 it's

<library name="lib/engines/groovy-3.0.7/lib/groovy-jsr223-3.0.7.jar"/>
<library name="lib/engines/groovy-3.0.7/lib/groovy-3.0.7.jar"/>

Groovy has taken a more modular approach since 2.0 according to the release notes so Cameo would need to reference either the groovy-all-*.jar distribution or specifically import groovy-json-*.jar.

I'm going to make a pull request to update the documentation with a fix:

Your Cameo configurations may differ from mine, but I hope the approach helps!

tbsgt pushed a commit to tbsgt/rapid-modeling-tools that referenced this issue Mar 16, 2023
shaneconnelly23 added a commit that referenced this issue Apr 21, 2023
ref #6 Update Player Piano docs with explanation and fix for JsonSlurper error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants