Uploaded image for project: 'Guacamole'
  1. Guacamole
  2. GUACAMOLE-1317

guacamole-client build fails against newer versions of JDK

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: guacamole-client
    • Labels:
      None

      Description

      The guacamole-client build currently succeeds against JDK 8 through 11, as well as JDK 14, but fails against all others with the following error:

      [WARNING] Error injecting: org.codehaus.plexus.archiver.jar.JarArchiver
      java.lang.ExceptionInInitializerError
          at org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$180e749b.newInstance (<generated>)
          at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance (FastConstructor.java:40)
          ...
      Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
          at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit> (AbstractZipArchiver.java:113)
          at org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$180e749b.newInstance (<generated>)
          at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance (FastConstructor.java:40)
          ...
      [WARNING] Error injecting: org.apache.maven.plugin.source.SourceJarMojo
      java.lang.ExceptionInInitializerError
          at org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$180e749b.newInstance (<generated>)
          at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance (FastConstructor.java:40)
          ...
      Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 1
          at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.<clinit> (AbstractZipArchiver.java:113)
          at org.codehaus.plexus.archiver.jar.JarArchiver$$FastClassByGuice$$180e749b.newInstance (<generated>)
          at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance (FastConstructor.java:40)
          ...
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary for guacamole-client 1.3.0:
      [INFO] 
      [INFO] guacamole-client ................................... SUCCESS [ 12.616 s]
      [INFO] guacamole-common ................................... FAILURE [  8.298 s]
      ...
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time:  21.333 s
      [INFO] Finished at: 2021-04-02T03:54:34Z
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-source-plugin:2.4:jar (attach-sources) on project guacamole-common: Execution attach-sources of goal org.apache.maven.plugins:maven-source-plugin:2.4:jar failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-source-plugin:2.4:jar: java.lang.ExceptionInInitializerError: null
      ...
      

      This is due to several of the build plugins being out-of-date. The newer versions of the JDK behave differently and cause errors with older versions of these plugins. Affected plugins have since been updated to be compatible.

      We should probably go through the various pom.xml and update any plugins to the latest.

        Attachments

          Activity

            People

            • Assignee:
              mjumper Mike Jumper
              Reporter:
              mjumper Mike Jumper
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: