I'm trying to run the tests with Java 11 using the mvn clean install command. After various dependency updates and some workarounds, the tests are green, but the output is littered with warnings about swallowed IllegalAccessExceptions caused by CleanUtil. One example of many indentical ones:
2019-03-2615:07:34WARNCleanUtil - CleanfailedforbufferDirectByteBufferjava.lang.IllegalAccessException: classorg.apache.parquet.hadoop.codec.CleanUtilcannotaccessclassjdk.internal.ref.Cleaner (inmodulejava.base) becausemodulejava.basedoesnotexportjdk.internal.reftounnamedmodule@413f69ccatjava.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:361)
atjava.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:591)
atjava.base/java.lang.reflect.Method.invoke(Method.java:558)
atorg.apache.parquet.hadoop.codec.CleanUtil.clean(CleanUtil.java:64)
atorg.apache.parquet.hadoop.codec.SnappyDecompressor.setInput(SnappyDecompressor.java:109)
atorg.apache.parquet.hadoop.codec.NonBlockedDecompressorStream.read(NonBlockedDecompressorStream.java:46)
atjava.base/java.io.DataInputStream.readFully(DataInputStream.java:200)
atjava.base/java.io.DataInputStream.readFully(DataInputStream.java:170)
atorg.apache.parquet.bytes.BytesInput$StreamBytesInput.toByteArray(BytesInput.java:279)
atorg.apache.parquet.hadoop.TestDirectCodecFactory.test(TestDirectCodecFactory.java:114)
atorg.apache.parquet.hadoop.TestDirectCodecFactory.compressionCodecs(TestDirectCodecFactory.java:168)
atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
atjava.base/java.lang.reflect.Method.invoke(Method.java:566)
atorg.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
atorg.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
atorg.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
atorg.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
atorg.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
atorg.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
atorg.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
atorg.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
atorg.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
atorg.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
atorg.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
atorg.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
atorg.junit.runners.ParentRunner.run(ParentRunner.java:363)
atorg.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
atorg.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
atorg.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethod)
atjava.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
atjava.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
atjava.base/java.lang.reflect.Method.invoke(Method.java:566)
atorg.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
atorg.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
atorg.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)
atorg.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)
atorg.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)
Reporter: Zoltan Ivanfi / @zivanfi
Assignee: Fokko Driesprong / @Fokko
Related issues:
PRs and other links:
Note: This issue was originally created as PARQUET-1550. Please see the migration documentation for further details.
I'm trying to run the tests with Java 11 using the
mvn clean installcommand. After various dependency updates and some workarounds, the tests are green, but the output is littered with warnings about swallowed IllegalAccessExceptions caused by CleanUtil. One example of many indentical ones:Reporter: Zoltan Ivanfi / @zivanfi
Assignee: Fokko Driesprong / @Fokko
Related issues:
PRs and other links:
Note: This issue was originally created as PARQUET-1550. Please see the migration documentation for further details.