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

Test result failed when running /gradlew build #21

Closed
Ein-nor opened this issue Jun 20, 2021 · 1 comment
Closed

Test result failed when running /gradlew build #21

Ein-nor opened this issue Jun 20, 2021 · 1 comment

Comments

@Ein-nor
Copy link

Ein-nor commented Jun 20, 2021

Hello,

I am not a developer, but I need a small change in this plugin (as described here: #7).

When running "./gradlew build" on my Mac, I get the following message:
java.lang.ClassCastException: class [B cannot be cast to class [C ([B and [C are in module java.base of loader 'bootstrap') at groovy.json.internal.FastStringUtils$StringImplementation$1.toCharArray(FastStringUtils.java:88) at groovy.json.internal.FastStringUtils.toCharArray(FastStringUtils.java:175) at groovy.json.internal.CharBuf.addJsonFieldName(CharBuf.java:543) at groovy.json.JsonOutput.writeMap(JsonOutput.java:424) at groovy.json.JsonOutput.writeObject(JsonOutput.java:270) at groovy.json.JsonOutput.writeIterator(JsonOutput.java:442) at groovy.json.JsonOutput.writeObject(JsonOutput.java:272) at groovy.json.JsonOutput.toJson(JsonOutput.java:190) at com.rundeck.plugins.azure.plugin.AzureVmListPlugin.executeStep(AzureVmListPlugin.groovy:134) at com.rundeck.plugins.azure.plugin.AzureVmListPluginSpec.retrieve resource success(AzureVmListPluginSpec.groovy:55)

I'm using Java 11:
❯ java --version openjdk 11.0.11 2021-04-20 OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9) OpenJDK 64-Bit Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mode)

How can I fix this problem?

@Ein-nor
Copy link
Author

Ein-nor commented Jun 20, 2021

Problem solved, I've swichted to AdoptOpenJDK8.

@Ein-nor Ein-nor closed this as completed Jul 8, 2021
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

1 participant