zhenlong dong created FLINK-31754: ------------------------------------- Summary: Build flink master error with Error in ASM processing class org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class: 19 Key: FLINK-31754 URL: https://issues.apache.org/jira/browse/FLINK-31754 Project: Flink Issue Type: Bug Components: Table SQL / Planner Reporter: zhenlong dong
maven 3.25 jdk 1.8 [E:\Project\flink\flink\flink-table\flink-table-planner]$ mvn package -DskipTests -e [INFO] Error stacktraces are turned on.[INFO] Scanning for projects...[WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.flink:flink-table-planner_2.12:jar:1.18-SNAPSHOT [WARNING] 'artifactId' contains an expression but should be a constant. @ org.apache.flink:flink-table-planner_${scala.binary.version}:[unknown-version], E:\Project\flink\flink\flink-table\flink-table-planner\pom.xml, line 29, column 14 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Flink : Table : Planner 1.18-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-checkstyle-plugin:3.1.2:check (validate) @ flink-table-planner_2.12 --- [WARNING] Old version of checkstyle detected. Consider updating to >= v8.30 [WARNING] For more information see: https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/upgrading-checkstyle.html [INFO] You have 0 Checkstyle violations. [INFO] [INFO] --- spotless-maven-plugin:2.27.1:check (spotless-check) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (enforce-maven-version) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (enforce-maven) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (ban-unsafe-snakeyaml) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (ban-unsafe-jackson) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (forbid-log4j-1) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (forbid-direct-akka-rpc-dependencies) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (forbid-direct-table-planner-dependencies) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-enforcer-plugin:3.1.0:enforce (enforce-versions) @ flink-table-planner_2.12 --- [INFO] [INFO] --- directory-maven-plugin:0.1:directory-of (directories) @ flink-table-planner_2.12 --- [INFO] Directory of org.apache.flink:flink-parent set to: E:\Project\flink\flink [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (process-resource-bundles) @ flink-table-planner_2.12 --- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ flink-table-planner_2.12 --- [INFO] Using 'UTF-8' encoding to copy filtered resources.[INFO] Copying 1 resource[INFO] Copying 3 resources[INFO] [INFO] --- scala-maven-plugin:3.2.2:add-source (scala-compile-first) @ flink-table-planner_2.12 --- [INFO] Add Source directory: E:\Project\flink\flink\flink-table\flink-table-planner\src\main\scala [INFO] Add Test Source directory: E:\Project\flink\flink\flink-table\flink-table-planner\src\test\scala [INFO] [INFO] --- scala-maven-plugin:3.2.2:compile (scala-compile-first) @ flink-table-planner_2.12 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ flink-table-planner_2.12 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ flink-table-planner_2.12 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 371 resources[INFO] Copying 3 resources[INFO] [INFO] --- scala-maven-plugin:3.2.2:testCompile (scala-test-compile) @ flink-table-planner_2.12 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ flink-table-planner_2.12 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ flink-table-planner_2.12 --- [INFO] Tests are skipped. [INFO] [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ flink-table-planner_2.12 --- [INFO] Building jar: E:\Project\flink\flink\flink-table\flink-table-planner\target\flink-table-planner_2.12-1.18-SNAPSHOT.jar[INFO] [INFO] --- maven-jar-plugin:2.4:test-jar (default) @ flink-table-planner_2.12 --- [INFO] Building jar: E:\Project\flink\flink\flink-table\flink-table-planner\target\flink-table-planner_2.12-1.18-SNAPSHOT-tests.jar [INFO] [INFO] --- maven-shade-plugin:3.4.1:shade (shade-flink) @ flink-table-planner_2.12 --- [INFO] Including com.google.guava:guava:jar:29.0-jre in the shaded jar. [INFO] Including com.google.guava:failureaccess:jar:1.0.1 in the shaded jar. [INFO] Including org.apache.flink:flink-sql-parser:jar:1.18-SNAPSHOT in the shaded jar. [INFO] Including org.checkerframework:checker-qual:jar:3.10.0 in the shaded jar. [INFO] Including org.apache.calcite:calcite-core:jar:1.29.0 in the shaded jar. [INFO] Including org.apache.calcite:calcite-linq4j:jar:1.29.0 in the shaded jar. [INFO] Including com.esri.geometry:esri-geometry-api:jar:2.2.0 in the shaded jar. [INFO] Including org.apache.calcite.avatica:avatica-core:jar:1.20.0 in the shaded jar. [INFO] Including commons-codec:commons-codec:jar:1.15 in the shaded jar. [INFO] Including commons-io:commons-io:jar:2.11.0 in the shaded jar. [INFO] Including org.apache.flink:flink-shaded-force-shading:jar:16.1 in the shaded jar. [INFO] Excluding com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava from the shaded jar. [INFO] Excluding com.google.errorprone:error_prone_annotations:jar:2.3.4 from the shaded jar. [INFO] Excluding com.google.j2objc:j2objc-annotations:jar:1.3 from the shaded jar. [INFO] Excluding org.immutables:value:jar:2.8.8 from the shaded jar. [INFO] Excluding org.immutables:value-annotations:jar:2.8.8 from the shaded jar. [INFO] Excluding org.codehaus.janino:commons-compiler:jar:3.1.9 from the shaded jar. [INFO] Excluding org.codehaus.janino:janino:jar:3.1.9 from the shaded jar. [INFO] Excluding org.apache.flink:flink-table-api-java-bridge:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-table-api-java:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-table-api-bridge-base:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-java:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding com.twitter:chill-java:jar:0.7.6 from the shaded jar. [INFO] Excluding org.apache.flink:flink-streaming-java:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-scala_2.12:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-core:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-shaded-asm-9:jar:9.3-16.1 from the shaded jar. [INFO] Excluding org.scala-lang:scala-reflect:jar:2.12.7 from the shaded jar. [INFO] Excluding org.scala-lang:scala-library:jar:2.12.7 from the shaded jar. [INFO] Excluding org.scala-lang:scala-compiler:jar:2.12.7 from the shaded jar. [INFO] Excluding org.scala-lang.modules:scala-xml_2.12:jar:1.0.6 from the shaded jar. [INFO] Excluding com.twitter:chill_2.12:jar:0.7.6 from the shaded jar. [INFO] Excluding org.apache.flink:flink-annotations:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apiguardian:apiguardian-api:jar:1.1.2 from the shaded jar. [INFO] Excluding org.apache.flink:flink-table-runtime:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-table-common:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-cep:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding com.fasterxml.jackson.core:jackson-annotations:jar:2.13.4 from the shaded jar. [INFO] Excluding com.fasterxml.jackson.core:jackson-core:jar:2.13.4 from the shaded jar. [INFO] Excluding com.fasterxml.jackson.core:jackson-databind:jar:2.13.4.2 from the shaded jar. [INFO] Excluding com.jayway.jsonpath:json-path:jar:2.4.0 from the shaded jar. [INFO] Excluding net.minidev:json-smart:jar:2.3 from the shaded jar. [INFO] Excluding net.minidev:accessors-smart:jar:1.2 from the shaded jar. [INFO] Excluding org.ow2.asm:asm:jar:5.0.4 from the shaded jar. [INFO] Excluding org.apache.flink:flink-runtime:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-rpc-core:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-rpc-akka-loader:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-queryable-state-client-java:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-hadoop-fs:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-shaded-netty:jar:4.1.82.Final-16.1 from the shaded jar. [INFO] Excluding org.apache.flink:flink-shaded-zookeeper-3:jar:3.7.1-16.1 from the shaded jar. [INFO] Excluding commons-cli:commons-cli:jar:1.5.0 from the shaded jar. [INFO] Excluding org.javassist:javassist:jar:3.24.0-GA from the shaded jar. [INFO] Excluding org.xerial.snappy:snappy-java:jar:1.1.8.3 from the shaded jar. [INFO] Excluding org.lz4:lz4-java:jar:1.8.0 from the shaded jar. [INFO] Excluding org.apache.flink:flink-metrics-core:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.flink:flink-shaded-jackson:jar:2.13.4-16.1 from the shaded jar. [INFO] Excluding org.apache.commons:commons-lang3:jar:3.12.0 from the shaded jar. [INFO] Excluding org.apache.commons:commons-text:jar:1.10.0 from the shaded jar. [INFO] Excluding com.esotericsoftware.kryo:kryo:jar:2.24.0 from the shaded jar. [INFO] Excluding com.esotericsoftware.minlog:minlog:jar:1.2 from the shaded jar. [INFO] Excluding commons-collections:commons-collections:jar:3.2.2 from the shaded jar. [INFO] Excluding org.apache.commons:commons-compress:jar:1.21 from the shaded jar. [INFO] Excluding org.apache.flink:flink-shaded-guava:jar:30.1.1-jre-16.1 from the shaded jar. [INFO] Excluding com.ibm.icu:icu4j:jar:67.1 from the shaded jar. [INFO] Excluding org.apache.flink:flink-file-sink-common:jar:1.18-SNAPSHOT from the shaded jar. [INFO] Excluding org.apache.commons:commons-math3:jar:3.6.1 from the shaded jar. [INFO] Excluding org.slf4j:slf4j-api:jar:1.7.36 from the shaded jar. [INFO] Excluding com.google.code.findbugs:jsr305:jar:1.3.9 from the shaded jar. [INFO] Excluding org.objenesis:objenesis:jar:2.1 from the shaded jar. [INFO] No artifact matching filter io.netty:netty [INFO] Dependency-reduced POM written at: E:\Project\flink\flink\flink-table\flink-table-planner\dependency-reduced-pom.xml [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:17 min [INFO] Finished at: 2023-04-07T19:32:35+08:00 [INFO] Final Memory: 59M/1517M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.4.1:shade (shade-flink) on project flink-table-planner_2.12: Error creating shaded jar: Problem shading JAR E:\Project\flink\flink\flink-table\flink-table-planner\target\flink-table-planner_2.12-1.18-SNAPSHOT.jar entry org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class: org.apache.maven.plugin.MojoExecutionException: Error in ASM processing class org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class: 19 -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:3.4.1:shade (shade-flink) on project flink-table-planner_2.12: Error creating shaded jar: Problem shading JAR E:\Project\flink\flink\flink-table\flink-table-planner\target\flink-table-planner_2.12-1.18-SNAPSHOT.jar entry org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class: org.apache.maven.plugin.MojoExecutionException: Error in ASM processing class org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:120) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216) at org.apache.maven.cli.MavenCli.main(MavenCli.java:160) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: Problem shading JAR E:\Project\flink\flink\flink-table\flink-table-planner\target\flink-table-planner_2.12-1.18-SNAPSHOT.jar entry org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class: org.apache.maven.plugin.MojoExecutionException: Error in ASM processing class org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:640) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 19 more Caused by: java.io.IOException: Problem shading JAR E:\Project\flink\flink\flink-table\flink-table-planner\target\flink-table-planner_2.12-1.18-SNAPSHOT.jar entry org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class: org.apache.maven.plugin.MojoExecutionException: Error in ASM processing class org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class at org.apache.maven.plugins.shade.DefaultShader.shadeJars(DefaultShader.java:277) at org.apache.maven.plugins.shade.DefaultShader.shade(DefaultShader.java:128) at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:500) ... 21 more Caused by: org.apache.maven.plugin.MojoExecutionException: Error in ASM processing class org/apache/calcite/sql/validate/SqlValidatorImpl$NavigationExpander.class at org.apache.maven.plugins.shade.DefaultShader.addRemappedClass(DefaultShader.java:564) at org.apache.maven.plugins.shade.DefaultShader.shadeJarEntry(DefaultShader.java:310) at org.apache.maven.plugins.shade.DefaultShader.shadeJars(DefaultShader.java:272) ... 23 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 19 at org.objectweb.asm.ClassReader.readLabel(ClassReader.java:2679) at org.objectweb.asm.ClassReader.createLabel(ClassReader.java:2695) at org.objectweb.asm.ClassReader.readTypeAnnotations(ClassReader.java:2760) at org.objectweb.asm.ClassReader.readCode(ClassReader.java:1928) at org.objectweb.asm.ClassReader.readMethod(ClassReader.java:1514) at org.objectweb.asm.ClassReader.accept(ClassReader.java:744) at org.objectweb.asm.ClassReader.accept(ClassReader.java:424) at org.apache.maven.plugins.shade.DefaultShader.addRemappedClass(DefaultShader.java:560) ... 25 more [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [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/MojoExecutionException -- This message was sent by Atlassian Jira (v8.20.10#820010)