openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Francesco Chicchiriccò (Jira) <j...@apache.org>
Subject [jira] [Resolved] (OPENJPA-2846) Enhancement does not work with JDK 16
Date Tue, 22 Dec 2020 15:45:00 GMT

     [ https://issues.apache.org/jira/browse/OPENJPA-2846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Francesco Chicchiriccò resolved OPENJPA-2846.
---------------------------------------------
      Assignee: Romain Manni-Bucau
    Resolution: Fixed

This problem was fixed by [~romain.manni-bucau] in commit https://github.com/apache/openjpa/commit/910a812a1550382d2bafd9a001a66c5e7425ccf5
which upgrades ASM to version 9.0

> Enhancement does not work with JDK 16
> -------------------------------------
>
>                 Key: OPENJPA-2846
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2846
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 3.1.2
>            Reporter: Francesco Chicchiriccò
>            Assignee: Romain Manni-Bucau
>            Priority: Major
>             Fix For: 3.1.3
>
>
> {code}
> Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.1.2:enhance failed:
Unsupported class file major version 60 -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.openjpa:openjpa-maven-plugin:3.1.2:enhance
(enhancer) on project syncope-core-persistence-jpa: Execution enhancer of goal org.apache.openjpa:openjpa-maven-plugin:3.1.2:enhance
failed: Unsupported class file major version 60
>     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.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:78)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:567)
>     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.1.2:enhance failed: Unsupported class file major
version 60
>     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.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:78)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:567)
>     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 60
>     at org.apache.xbean.asm8.ClassReader.<init> (ClassReader.java:196)
>     at org.apache.xbean.asm8.ClassReader.<init> (ClassReader.java:177)
>     at org.apache.xbean.asm8.ClassReader.<init> (ClassReader.java:163)
>     at org.apache.xbean.asm8.ClassReader.<init> (ClassReader.java:284)
>     at org.apache.openjpa.enhance.AsmAdaptor.toJava7ByteArray (AsmAdaptor.java:101)
>     at org.apache.openjpa.enhance.AsmAdaptor.writeJava7 (AsmAdaptor.java:92)
>     at org.apache.openjpa.enhance.AsmAdaptor.write (AsmAdaptor.java:62)
>     at org.apache.openjpa.enhance.PCEnhancer.record (PCEnhancer.java:639)
>     at org.apache.openjpa.enhance.PCEnhancer.record (PCEnhancer.java:625)
>     at org.apache.openjpa.enhance.PCEnhancer.run (PCEnhancer.java:4911)
>     at org.apache.openjpa.enhance.PCEnhancer.run (PCEnhancer.java:4841)
>     at org.apache.openjpa.enhance.PCEnhancer$1.run (PCEnhancer.java:4811)
>     at org.apache.openjpa.lib.conf.Configurations.launchRunnable (Configurations.java:761)
>     at org.apache.openjpa.lib.conf.Configurations.runAgainstAllAnchors (Configurations.java:746)
>     at org.apache.openjpa.enhance.PCEnhancer.run (PCEnhancer.java:4805)
>     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.NativeMethodAccessorImpl.invoke0 (Native Method)
>     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:78)
>     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
>     at java.lang.reflect.Method.invoke (Method.java:567)
>     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)
> {code}
> This seems (only?) due to ASM.
> While ASM 9 claims to be ready for JDK 16, I did report troubles elsewhere: https://gitlab.ow2.org/asm/asm/-/issues/317926



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message