Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.12.0
    • Component/s: None
    • Labels:
      None

      Description

      I notice that Travis now offers JDK9. Let's get Calcite building & running on JDK9.

        Issue Links

          Activity

          Hide
          julianhyde Julian Hyde added a comment -

          Resolved in release 1.12.0 (2017-03-24).

          Show
          julianhyde Julian Hyde added a comment - Resolved in release 1.12.0 (2017-03-24).
          Hide
          julianhyde Julian Hyde added a comment -

          Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/446c2b76.

          Note that it requires JDK build 150 or higher (i.e. jdk9-ea+150). Build 151 was released a couple of days ago.

          Show
          julianhyde Julian Hyde added a comment - Fixed in http://git-wip-us.apache.org/repos/asf/calcite/commit/446c2b76 . Note that it requires JDK build 150 or higher (i.e. jdk9-ea+150). Build 151 was released a couple of days ago.
          Hide
          julianhyde Julian Hyde added a comment - - edited

          The Java dev team just fixed https://bugs.openjdk.java.net/browse/JDK-8075793 in http://hg.openjdk.java.net/jdk9/dev/langtools/rev/49170d831308. It isn't yet in the latest build (149): see http://download.java.net/java/jdk9/changes/jdk-9+149.html. But when we have that JDK, fix we won't need to modify our code or change source=1.7 to source=1.9.

          Show
          julianhyde Julian Hyde added a comment - - edited The Java dev team just fixed https://bugs.openjdk.java.net/browse/JDK-8075793 in http://hg.openjdk.java.net/jdk9/dev/langtools/rev/49170d831308 . It isn't yet in the latest build (149): see http://download.java.net/java/jdk9/changes/jdk-9+149.html . But when we have that JDK, fix we won't need to modify our code or change source=1.7 to source=1.9.
          Hide
          julianhyde Julian Hyde added a comment -

          That worked, thanks.

          Show
          julianhyde Julian Hyde added a comment - That worked, thanks.
          Hide
          julianhyde Julian Hyde added a comment -

          I've now pushed a version that builds on 1.9 (provided you specify -Djavac.source=1.9 -Djavac.target=1.9) and continues to build on 1.7 and 1.8.

          It looks as if there are janino problems when I run the tests.

          Show
          julianhyde Julian Hyde added a comment - I've now pushed a version that builds on 1.9 (provided you specify -Djavac.source=1.9 -Djavac.target=1.9 ) and continues to build on 1.7 and 1.8. It looks as if there are janino problems when I run the tests.
          Show
          vladimirsitnikov Vladimir Sitnikov added a comment - For jmh, just upgrade to new version was sufficient: https://github.com/pgjdbc/pgjdbc/commit/bbb0d3521378d8c4515c844cd9bb3d656f95a739#diff-69610471700c4c1525608a7262215ab8R70
          Hide
          julianhyde Julian Hyde added a comment - - edited

          Wow, there are a lot of these "incompatible types" errors.

          I don't see how the OpenJDK folks can justify making source=1.7 stricter than JDK 1.7's javac, even if javac had a bug and didn't comply with the 1.7 language specification. Who cares about compatibility with the 1.7 JLS? I care about compatibility with the 1.7 JDK.

          As a workaround, I'm setting source=1.9 target=1.9. Obviously we can't commit this to master, because we will support 1.7 for a while.

          Show
          julianhyde Julian Hyde added a comment - - edited Wow, there are a lot of these "incompatible types" errors. I don't see how the OpenJDK folks can justify making source=1.7 stricter than JDK 1.7's javac, even if javac had a bug and didn't comply with the 1.7 language specification. Who cares about compatibility with the 1.7 JLS? I care about compatibility with the 1.7 JDK. As a workaround, I'm setting source=1.9 target=1.9 . Obviously we can't commit this to master, because we will support 1.7 for a while.
          Hide
          julianhyde Julian Hyde added a comment -

          I had to disable the ubenchmark module due to https://bugs.openjdk.java.net/browse/JDK-8152842.

          Show
          julianhyde Julian Hyde added a comment - I had to disable the ubenchmark module due to https://bugs.openjdk.java.net/browse/JDK-8152842 .
          Hide
          julianhyde Julian Hyde added a comment -

          Thanks Vladimir Sitnikov, that helped. I've committed and pushed to my dev branch.

          Now I'm bumping into "incompatible types" compilation errors, apparently https://bugs.openjdk.java.net/browse/JDK-8075793. Per that issue, we need to fix the code:

          $ mvn -Pjdk9-workarounds clean package
          ...
          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project calcite-linq4j: Compilation failure: Compilation failure:
          [ERROR] /home/jhyde/open1/calcite.2/linq4j/src/main/java/org/apache/calcite/linq4j/Linq4j.java:[116,12] incompatible types: org.apache.calcite.linq4j.Linq4j.IterableEnumerator<capture#1 of ? extends T> cannot be converted to org.apache.calcite.linq4j.Enumerator<T>
          [ERROR] /home/jhyde/open1/calcite.2/linq4j/src/main/java/org/apache/calcite/linq4j/Linq4j.java:[194,30] incompatible types: org.apache.calcite.linq4j.Enumerator<capture#2 of ? extends V> cannot be converted to org.apache.calcite.linq4j.Enumerator<V>
          ...
          
          Show
          julianhyde Julian Hyde added a comment - Thanks Vladimir Sitnikov , that helped. I've committed and pushed to my dev branch. Now I'm bumping into "incompatible types" compilation errors, apparently https://bugs.openjdk.java.net/browse/JDK-8075793 . Per that issue, we need to fix the code: $ mvn -Pjdk9-workarounds clean package ... [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project calcite-linq4j: Compilation failure: Compilation failure: [ERROR] /home/jhyde/open1/calcite.2/linq4j/src/main/java/org/apache/calcite/linq4j/Linq4j.java:[116,12] incompatible types: org.apache.calcite.linq4j.Linq4j.IterableEnumerator<capture#1 of ? extends T> cannot be converted to org.apache.calcite.linq4j.Enumerator<T> [ERROR] /home/jhyde/open1/calcite.2/linq4j/src/main/java/org/apache/calcite/linq4j/Linq4j.java:[194,30] incompatible types: org.apache.calcite.linq4j.Enumerator<capture#2 of ? extends V> cannot be converted to org.apache.calcite.linq4j.Enumerator<V> ...
          Hide
          vladimirsitnikov Vladimir Sitnikov added a comment -
          Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
          	at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:113)

          This one can be worked around by downgrading plexus-archiver like in https://github.com/pgjdbc/pgjdbc/commit/bbb0d3521378d8c4515c844cd9bb3d656f95a739#diff-a5f7928a522b31a6cf69b1366423b9adR201

          Show
          vladimirsitnikov Vladimir Sitnikov added a comment - Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:113) This one can be worked around by downgrading plexus-archiver like in https://github.com/pgjdbc/pgjdbc/commit/bbb0d3521378d8c4515c844cd9bb3d656f95a739#diff-a5f7928a522b31a6cf69b1366423b9adR201
          Hide
          julianhyde Julian Hyde added a comment -

          Here are the errors I get trying to build the current master on JDK9.

          mvn install 2>&1 | tee /tmp/mvn.log
          [INFO] Scanning for projects...
          [INFO] ------------------------------------------------------------------------
          [INFO] Reactor Build Order:
          [INFO] 
          [INFO] Calcite
          [INFO] Calcite Linq4j
          [INFO] Calcite Core
          [INFO] Calcite Cassandra
          [INFO] Calcite Druid
          [INFO] Calcite Elasticsearch
          [INFO] Calcite Examples
          [INFO] Calcite Example CSV
          [INFO] Calcite Example Function
          [INFO] Calcite MongoDB
          [INFO] Calcite Piglet
          [INFO] Calcite Plus
          [INFO] Calcite Spark
          [INFO] Calcite Splunk
          [INFO] Calcite Ubenchmark
          [INFO] 
          [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
          [INFO]                                                                         
          [INFO] ------------------------------------------------------------------------
          [INFO] Building Calcite 1.9.0-SNAPSHOT
          [INFO] ------------------------------------------------------------------------
          [INFO] 
          [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @ calcite ---
          [INFO] Starting audit...
          Audit done.
          
          [INFO] 
          [INFO] --- build-helper-maven-plugin:1.9:add-resource (add-resource) @ calcite ---
          [INFO] 
          [INFO] --- build-helper-maven-plugin:1.9:add-test-resource (add-resource) @ calcite ---
          [INFO] 
          [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ calcite ---
          [INFO] 
          [INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ calcite ---
          [INFO] 
          [INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ calcite ---
          [WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
          java.lang.ExceptionInInitializerError
          	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@9-ea/Native Method)
          	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@9-ea/NativeConstructorAccessorImpl.java:62)
          	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@9-ea/DelegatingConstructorAccessorImpl.java:45)
          	at java.lang.reflect.Constructor.newInstance(java.base@9-ea/Constructor.java:453)
          	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
          	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:109)
          	at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
          	at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116)
          	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
          	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
          	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
          	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054)
          	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
          	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
          	at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
          	at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
          	at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
          	at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116)
          	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
          	at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
          	at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
          	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054)
          	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
          	at com.google.inject.Scopes$1$1.get(Scopes.java:59)
          	at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
          	at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
          	at org.eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:250)
          	at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48)
          	at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52)
          	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128)
          	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:118)
          	at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
          	at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116)
          	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
          	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
          	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
          	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054)
          	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
          	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
          	at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
          	at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
          	at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
          	at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
          	at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
          	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
          	at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
          	at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
          	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
          	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
          	at com.google.inject.Scopes$1$1.get(Scopes.java:59)
          	at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
          	at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
          	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260)
          	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:252)
          	at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:462)
          	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:120)
          	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
          	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:108)
          	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
          	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
          	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
          	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
          	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:213)
          	at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
          	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
          	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
          	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531)
          	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: java.lang.ArrayIndexOutOfBoundsException: 1
          	at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:113)
          	... 88 more
          [WARNING] Error injecting: org.apache.maven.plugin.source.SourceJarNoForkMojo
          java.lang.ExceptionInInitializerError
          	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@9-ea/Native Method)
          	at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@9-ea/NativeConstructorAccessorImpl.java:62)
          	at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@9-ea/DelegatingConstructorAccessorImpl.java:45)
          	at java.lang.reflect.Constructor.newInstance(java.base@9-ea/Constructor.java:453)
          	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86)
          	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:109)
          	at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
          	at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116)
          	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
          	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
          	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
          	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054)
          	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
          	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
          	at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
          	at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
          	at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
          	at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116)
          	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
          	at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
          	at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
          	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054)
          	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
          	at com.google.inject.Scopes$1$1.get(Scopes.java:59)
          	at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
          	at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
          	at org.eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:250)
          	at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48)
          	at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52)
          	at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128)
          	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:118)
          	at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32)
          	at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116)
          	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
          	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90)
          	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
          	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054)
          	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
          	at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032)
          	at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48)
          	at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86)
          	at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55)
          	at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100)
          	at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133)
          	at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109)
          	at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55)
          	at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68)
          	at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47)
          	at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047)
          	at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993)
          	at com.google.inject.Scopes$1$1.get(Scopes.java:59)
          	at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82)
          	at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51)
          	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260)
          	at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:252)
          	at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:462)
          	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:120)
          	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
          	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:108)
          	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76)
          	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
          	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116)
          	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361)
          	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:213)
          	at org.apache.maven.cli.MavenCli.main(MavenCli.java:157)
          	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
          	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
          	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531)
          	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: java.lang.ArrayIndexOutOfBoundsException: 1
          	at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:113)
          	... 88 more
          [INFO] ------------------------------------------------------------------------
          [INFO] Reactor Summary:
          [INFO] 
          [INFO] Calcite ........................................... FAILURE [  2.133 s]
          [INFO] Calcite Linq4j .................................... SKIPPED
          [INFO] Calcite Core ...................................... SKIPPED
          [INFO] Calcite Cassandra ................................. SKIPPED
          [INFO] Calcite Druid ..................................... SKIPPED
          [INFO] Calcite Elasticsearch ............................. SKIPPED
          [INFO] Calcite Examples .................................. SKIPPED
          [INFO] Calcite Example CSV ............................... SKIPPED
          [INFO] Calcite Example Function .......................... SKIPPED
          [INFO] Calcite MongoDB ................................... SKIPPED
          [INFO] Calcite Piglet .................................... SKIPPED
          [INFO] Calcite Plus ...................................... SKIPPED
          [INFO] Calcite Spark ..................................... SKIPPED
          [INFO] Calcite Splunk .................................... SKIPPED
          [INFO] Calcite Ubenchmark ................................ SKIPPED
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 2.529 s
          [INFO] Finished at: 2016-06-16T17:26:28-08:00
          [INFO] Final Memory: 23M/76M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:2.4:jar-no-fork (attach-sources) on project calcite: Execution attach-sources of goal org.apache.maven.plugins:maven-source-plugin:2.4:jar-no-fork failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-source-plugin:2.4:jar-no-fork: java.lang.ExceptionInInitializerError: null
          [ERROR] -----------------------------------------------------
          [ERROR] realm =    plugin>org.apache.maven.plugins:maven-source-plugin:2.4
          [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
          [ERROR] urls[0] = file:/home/jhyde/.m2/repository/org/apache/maven/plugins/maven-source-plugin/2.4/maven-source-plugin-2.4.jar
          [ERROR] urls[1] = file:/home/jhyde/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar
          [ERROR] urls[2] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar
          [ERROR] urls[3] = file:/home/jhyde/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
          [ERROR] urls[4] = file:/home/jhyde/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar
          [ERROR] urls[5] = file:/home/jhyde/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar
          [ERROR] urls[6] = file:/home/jhyde/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar
          [ERROR] urls[7] = file:/home/jhyde/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
          [ERROR] urls[8] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
          [ERROR] urls[9] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-archiver/2.6.3/plexus-archiver-2.6.3.jar
          [ERROR] urls[10] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-io/2.1.3/plexus-io-2.1.3.jar
          [ERROR] urls[11] = file:/home/jhyde/.m2/repository/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar
          [ERROR] urls[12] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.18/plexus-utils-3.0.18.jar
          [ERROR] Number of foreign imports: 1
          [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
          [ERROR] 
          [ERROR] -----------------------------------------------------
          [ERROR] -> [Help 1]
          [ERROR] 
          [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
          [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/PluginContainerException
          
          Show
          julianhyde Julian Hyde added a comment - Here are the errors I get trying to build the current master on JDK9. mvn install 2>&1 | tee /tmp/mvn.log [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Calcite [INFO] Calcite Linq4j [INFO] Calcite Core [INFO] Calcite Cassandra [INFO] Calcite Druid [INFO] Calcite Elasticsearch [INFO] Calcite Examples [INFO] Calcite Example CSV [INFO] Calcite Example Function [INFO] Calcite MongoDB [INFO] Calcite Piglet [INFO] Calcite Plus [INFO] Calcite Spark [INFO] Calcite Splunk [INFO] Calcite Ubenchmark [INFO] [INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1 [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Calcite 1.9.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-checkstyle-plugin:2.12.1:check (validate) @ calcite --- [INFO] Starting audit... Audit done. [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-resource (add-resource) @ calcite --- [INFO] [INFO] --- build-helper-maven-plugin:1.9:add-test-resource (add-resource) @ calcite --- [INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ calcite --- [INFO] [INFO] --- maven-site-plugin:3.4:attach-descriptor (attach-descriptor) @ calcite --- [INFO] [INFO] --- maven-source-plugin:2.4:jar-no-fork (attach-sources) @ calcite --- [WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver java.lang.ExceptionInInitializerError at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@9-ea/NativeConstructorAccessorImpl.java:62) at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@9-ea/DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(java.base@9-ea/Constructor.java:453) at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:109) at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32) at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:250) at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48) at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52) at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:118) at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32) at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:252) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:462) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:120) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 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:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) 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:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) 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: java.lang.ArrayIndexOutOfBoundsException: 1 at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:113) ... 88 more [WARNING] Error injecting: org.apache.maven.plugin.source.SourceJarNoForkMojo java.lang.ExceptionInInitializerError at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(java.base@9-ea/NativeConstructorAccessorImpl.java:62) at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(java.base@9-ea/DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(java.base@9-ea/Constructor.java:453) at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:86) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:109) at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32) at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.eclipse.sisu.plexus.PlexusRequirements$RequirementProvider.get(PlexusRequirements.java:250) at org.eclipse.sisu.plexus.ProvidedPropertyBinding.injectProperty(ProvidedPropertyBinding.java:48) at org.eclipse.sisu.bean.BeanInjector.injectMembers(BeanInjector.java:52) at com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:128) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:118) at com.google.inject.internal.ConstructorInjector.access$000(ConstructorInjector.java:32) at com.google.inject.internal.ConstructorInjector$1.call(ConstructorInjector.java:92) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:116) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:90) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1054) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1032) at org.eclipse.sisu.space.AbstractDeferredClass.get(AbstractDeferredClass.java:48) at com.google.inject.internal.ProviderInternalFactory.provision(ProviderInternalFactory.java:86) at com.google.inject.internal.InternalFactoryToInitializableAdapter.provision(InternalFactoryToInitializableAdapter.java:55) at com.google.inject.internal.ProviderInternalFactory$1.call(ProviderInternalFactory.java:70) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:100) at org.eclipse.sisu.plexus.PlexusLifecycleManager.onProvision(PlexusLifecycleManager.java:133) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:109) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:55) at com.google.inject.internal.ProviderInternalFactory.circularGet(ProviderInternalFactory.java:68) at com.google.inject.internal.InternalFactoryToInitializableAdapter.get(InternalFactoryToInitializableAdapter.java:47) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:997) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1047) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:993) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at org.eclipse.sisu.inject.LazyBeanEntry.getValue(LazyBeanEntry.java:82) at org.eclipse.sisu.plexus.LazyPlexusBean.getValue(LazyPlexusBean.java:51) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:260) at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:252) at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getConfiguredMojo(DefaultMavenPluginManager.java:462) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:120) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) 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:108) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:76) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:116) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:361) 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:213) at org.apache.maven.cli.MavenCli.main(MavenCli.java:157) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method) at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62) at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531) 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: java.lang.ArrayIndexOutOfBoundsException: 1 at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit>(AbstractZipArchiver.java:113) ... 88 more [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Calcite ........................................... FAILURE [ 2.133 s] [INFO] Calcite Linq4j .................................... SKIPPED [INFO] Calcite Core ...................................... SKIPPED [INFO] Calcite Cassandra ................................. SKIPPED [INFO] Calcite Druid ..................................... SKIPPED [INFO] Calcite Elasticsearch ............................. SKIPPED [INFO] Calcite Examples .................................. SKIPPED [INFO] Calcite Example CSV ............................... SKIPPED [INFO] Calcite Example Function .......................... SKIPPED [INFO] Calcite MongoDB ................................... SKIPPED [INFO] Calcite Piglet .................................... SKIPPED [INFO] Calcite Plus ...................................... SKIPPED [INFO] Calcite Spark ..................................... SKIPPED [INFO] Calcite Splunk .................................... SKIPPED [INFO] Calcite Ubenchmark ................................ SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.529 s [INFO] Finished at: 2016-06-16T17:26:28-08:00 [INFO] Final Memory: 23M/76M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:2.4:jar-no-fork (attach-sources) on project calcite: Execution attach-sources of goal org.apache.maven.plugins:maven-source-plugin:2.4:jar-no-fork failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-source-plugin:2.4:jar-no-fork: java.lang.ExceptionInInitializerError: null [ERROR] ----------------------------------------------------- [ERROR] realm = plugin>org.apache.maven.plugins:maven-source-plugin:2.4 [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy [ERROR] urls[0] = file:/home/jhyde/.m2/repository/org/apache/maven/plugins/maven-source-plugin/2.4/maven-source-plugin-2.4.jar [ERROR] urls[1] = file:/home/jhyde/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar [ERROR] urls[2] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar [ERROR] urls[3] = file:/home/jhyde/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar [ERROR] urls[4] = file:/home/jhyde/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar [ERROR] urls[5] = file:/home/jhyde/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.6/maven-reporting-api-2.0.6.jar [ERROR] urls[6] = file:/home/jhyde/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-7/doxia-sink-api-1.0-alpha-7.jar [ERROR] urls[7] = file:/home/jhyde/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar [ERROR] urls[8] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar [ERROR] urls[9] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-archiver/2.6.3/plexus-archiver-2.6.3.jar [ERROR] urls[10] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-io/2.1.3/plexus-io-2.1.3.jar [ERROR] urls[11] = file:/home/jhyde/.m2/repository/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar [ERROR] urls[12] = file:/home/jhyde/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.18/plexus-utils-3.0.18.jar [ERROR] Number of foreign imports: 1 [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]] [ERROR] [ERROR] ----------------------------------------------------- [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [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/PluginContainerException
          Hide
          julianhyde Julian Hyde added a comment -

          No, but feel free to rebase.

          Show
          julianhyde Julian Hyde added a comment - No, but feel free to rebase.
          Hide
          elserj Josh Elser added a comment -

          I couldn't figure out what maven plugins to use.

          I can try to help out with this. Your branch up to date with your latest?

          Show
          elserj Josh Elser added a comment - I couldn't figure out what maven plugins to use. I can try to help out with this. Your branch up to date with your latest?
          Hide
          julianhyde Julian Hyde added a comment -

          I like the matrix approach. We've been getting a lot of spurious errors from Travis recently and I think it's just that the build takes too long and uses too much memory. Separating javadoc from tests would help.

          That said, I'm nowhere near getting Calcite working on JDK9, even on my local Linux box. I couldn't figure out what maven plugins to use.

          Show
          julianhyde Julian Hyde added a comment - I like the matrix approach. We've been getting a lot of spurious errors from Travis recently and I think it's just that the build takes too long and uses too much memory. Separating javadoc from tests would help. That said, I'm nowhere near getting Calcite working on JDK9, even on my local Linux box. I couldn't figure out what maven plugins to use.
          Hide
          vladimirsitnikov Vladimir Sitnikov added a comment -

          Julian Hyde, I've succeeded with jdk9-ea at Travis.
          This approach works fine (even with sudo:false): https://github.com/travis-ci/travis-ci/issues/4178#issuecomment-119321586.

          I suggest using `matrix - include` configuration with explicit separation of checkstyle, javadoc, and test jobs.
          Here's what I mean: https://travis-ci.org/pgjdbc/pgjdbc/builds/134757943

          Any objections?

          Show
          vladimirsitnikov Vladimir Sitnikov added a comment - Julian Hyde , I've succeeded with jdk9-ea at Travis. This approach works fine (even with sudo:false ): https://github.com/travis-ci/travis-ci/issues/4178#issuecomment-119321586 . I suggest using `matrix - include` configuration with explicit separation of checkstyle, javadoc, and test jobs. Here's what I mean: https://travis-ci.org/pgjdbc/pgjdbc/builds/134757943 Any objections?
          Hide
          julianhyde Julian Hyde added a comment -

          Yeah, I ran into problems with plexus-archiver. I tried setting the version to 3.0.3, but maven couldn't find that version (despite it being in maven central). And based on your experience, it looks as if travis isn't ready just yet.

          Show
          julianhyde Julian Hyde added a comment - Yeah, I ran into problems with plexus-archiver. I tried setting the version to 3.0.3, but maven couldn't find that version (despite it being in maven central). And based on your experience, it looks as if travis isn't ready just yet.
          Hide
          vladimirsitnikov Vladimir Sitnikov added a comment -

          Julian Hyde, I've tried to setup Travis test job for pgjdbc (see https://github.com/pgjdbc/pgjdbc/pull/565). It seems that jdk: oraclejdk9 is available only for group: edge image, and that group: edge image often fails to boot (i.e. takes 30 minutes, then it timeouts).

          Other than that, figuring out "proper" plexus-archiver version seems to be enough for most cases.

          Show
          vladimirsitnikov Vladimir Sitnikov added a comment - Julian Hyde , I've tried to setup Travis test job for pgjdbc (see https://github.com/pgjdbc/pgjdbc/pull/565 ). It seems that jdk: oraclejdk9 is available only for group: edge image, and that group: edge image often fails to boot (i.e. takes 30 minutes, then it timeouts). Other than that, figuring out "proper" plexus-archiver version seems to be enough for most cases.
          Hide
          julianhyde Julian Hyde added a comment -

          I installed jdk9-ea+120 and started work on this; no success yet, but work in progress at https://github.com/julianhyde/calcite/tree/1258-jdk9.

          Vladimir Sitnikov, I saw you're doing some stuff with jdk9. Any wisdom here?

          Show
          julianhyde Julian Hyde added a comment - I installed jdk9-ea+120 and started work on this; no success yet, but work in progress at https://github.com/julianhyde/calcite/tree/1258-jdk9 . Vladimir Sitnikov , I saw you're doing some stuff with jdk9. Any wisdom here?

            People

            • Assignee:
              julianhyde Julian Hyde
              Reporter:
              julianhyde Julian Hyde
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development