[ 
https://issues.apache.org/jira/browse/OPENJPA-2918?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17792151#comment-17792151
 ] 

Benoit Tellier commented on OPENJPA-2918:
-----------------------------------------

> Just upgrade to OpenJPA 4.0.0-SNAPSHOT and it should work flawlessly.

Cool. FYI tested with success. Thanks.

> Check the full exception trace.

Full stack trace:

{code:java}
[ERROR] Failed to execute goal 
org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance (enhancer) on project 
james-server-data-jpa: Execution enhancer of goal 
org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance failed: Unsupported class 
file major version 65 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance (enhancer) on project 
james-server-data-jpa: Execution enhancer of goal 
org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance failed: Unsupported class 
file major version 65
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:215)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke 
(DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution enhancer 
of goal org.apache.openjpa:openjpa-maven-plugin:3.2.0:enhance failed: 
Unsupported class file major version 65
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:148)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke 
(DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major 
version 65
    at org.apache.xbean.asm9.ClassReader.<init> (ClassReader.java:196)
    at org.apache.xbean.asm9.ClassReader.<init> (ClassReader.java:177)
    at org.apache.xbean.asm9.ClassReader.<init> (ClassReader.java:163)
    at org.apache.xbean.asm9.ClassReader.<init> (ClassReader.java:284)
    at org.apache.openjpa.enhance.asm.AsmSpi9.toJava7ByteArray 
(AsmSpi9.java:112)
    at org.apache.openjpa.enhance.asm.AsmSpi9.writeJava7 (AsmSpi9.java:103)
    at org.apache.openjpa.enhance.asm.AsmSpi9.write (AsmSpi9.java:56)
    at org.apache.openjpa.enhance.AsmAdaptor.write (AsmAdaptor.java:60)
    at org.apache.openjpa.enhance.PCEnhancer.record (PCEnhancer.java:641)
    at org.apache.openjpa.enhance.PCEnhancer.record (PCEnhancer.java:626)
    at org.apache.openjpa.enhance.PCEnhancer.run (PCEnhancer.java:4918)
    at org.apache.openjpa.enhance.PCEnhancer.run (PCEnhancer.java:4845)
    at org.apache.openjpa.enhance.PCEnhancer$1.run (PCEnhancer.java:4815)
    at org.apache.openjpa.lib.conf.Configurations.launchRunnable 
(Configurations.java:760)
    at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors 
(Configurations.java:745)
    at org.apache.openjpa.enhance.PCEnhancer.run (PCEnhancer.java:4809)
    at org.apache.openjpa.tools.maven.AbstractOpenJpaEnhancerMojo.enhance 
(AbstractOpenJpaEnhancerMojo.java:132)
    at org.apache.openjpa.tools.maven.AbstractOpenJpaEnhancerMojo.execute 
(AbstractOpenJpaEnhancerMojo.java:93)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo 
(DefaultBuildPluginManager.java:137)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:210)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:156)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute 
(MojoExecutor.java:148)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject 
(LifecycleModuleBuilder.java:81)
    at 
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build
 (SingleThreadedBuilder.java:56)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute 
(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
    at jdk.internal.reflect.DirectMethodHandleAccessor.invoke 
(DirectMethodHandleAccessor.java:103)
    at java.lang.reflect.Method.invoke (Method.java:580)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced 
(Launcher.java:282)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch 
(Launcher.java:225)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode 
(Launcher.java:406)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main 
(Launcher.java:347)
[ERROR] 
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
{code}


> Support for Java 21
> -------------------
>
>                 Key: OPENJPA-2918
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2918
>             Project: OpenJPA
>          Issue Type: Bug
>            Reporter: Benoit Tellier
>            Priority: Major
>
> While trying to add Java 21 support in Apache James, the OpenJPA maven plugin 
> (version 3.2.2)  throw the following exception:
> {code:java}
> [ERROR] Failed to execute goal 
> org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance (enhancer) on project 
> james-server-data-jpa: Execution enhancer of goal 
> org.apache.openjpa:openjpa-maven-plugin:3.2.2:enhance failed: Unsupported 
> class file major version 65 -> [Help 1]
> {code}
> Maybe this could be as easy as updating the maven-plugin-plugin version? 
> Updating it aggressively solved a similar issue wit Apache James mailet 
> documentation maven plugin...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to