You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Ryan Miller (Jira)" <ji...@apache.org> on 2023/06/16 07:15:00 UTC

[jira] [Resolved] (NIFI-11704) Unsupported class file major version 61

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

Ryan Miller resolved NIFI-11704.
--------------------------------
    Resolution: Invalid

> Unsupported class file major version 61
> ---------------------------------------
>
>                 Key: NIFI-11704
>                 URL: https://issues.apache.org/jira/browse/NIFI-11704
>             Project: Apache NiFi
>          Issue Type: Wish
>            Reporter: Ryan Miller
>            Priority: Minor
>
> Maven Compiler Plugin does not support classes created by JDK 17 (major version 61). If classes created by JDK 17 are present in your classpath when using Maven Compiler, the following error occurs: (Building Apache NiFi [1])
>  
>  
> {code:java}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project nifi-registry-test: Compilation failure: Compilation failure: 
> [ERROR] /<path>/<to>/nifi-registry/nifi-registry-core/nifi-registry-test/src/main/java/org/apache/nifi/registry/db/MariaDB10_3DataSourceFactory.java:[19,45] error: cannot access Configuration
> [ERROR]   bad class file: /home/<user>/.m2/repository/org/springframework/spring-context/6.0.10/spring-context-6.0.10.jar(/org/springframework/context/annotation/Configuration.class)
> [ERROR]     class file has wrong version 61.0, should be 55.0
> [ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
> {code}
>  
>  
> This error occurred when building NiFi after upgrading Spring Framework to version 6.0.10 [2]. Spring Framework 6.0.10 contains version 61 classes.
>  
> See Upgrade Spring Framework to version 6 in NiFi [2] for reproduction
> See past related ticket: Unsupported class file major version 55 [3]
>  
> [1] [https://nifi.apache.org/]
> [2] https://issues.apache.org/jira/browse/NIFI-11703
> [3] https://issues.apache.org/jira/browse/MCOMPILER-342



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