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

Runtime compatibility issue #415

Open
leelalagudu opened this issue Feb 27, 2023 · 1 comment
Open

Runtime compatibility issue #415

leelalagudu opened this issue Feb 27, 2023 · 1 comment

Comments

@leelalagudu
Copy link

Summary

Cannot get mvn package to succeed as it fails running tests with the below runtime incompatiblity error.

Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 63 at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.<init>(ClassReader.java:195) at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.<init>(ClassReader.java:176) at org.jacoco.agent.rt.internal_035b120.asm.ClassReader.<init>(ClassReader.java:162) at org.jacoco.agent.rt.internal_035b120.core.internal.instr.InstrSupport.classReaderFor(InstrSupport.java:279) at org.jacoco.agent.rt.internal_035b120.core.instr.Instrumenter.instrument(Instrumenter.java:74) at org.jacoco.agent.rt.internal_035b120.core.instr.Instrumenter.instrument(Instrumenter.java:106) ... 65 more

My intelliJ IDE uses Oracle Open JDK 19.0.2 JDK for the project. My pom.xml has the below source and target compiler definitions

image

I specified the runtime in .rpdk-config as "java19". I am using protocolVersion 2.0.0

I had also tried skipping the tests and generating the package. However, my sam local tests were then failing , again due to the runtime incompatibility error.

What are the recommended versions to set in each of these configs for this to work?

@mrinaudo-aws
Copy link
Contributor

HI @leelalagudu - the values currently supported are those for Java 8 and Java 11 runtimes, that you can reference accordingly in the POM file and in the .rpdk-config file.

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

2 participants