Griffon
  1. Griffon
  2. GRIFFON-642

Plugin resolution fails if using JDK8

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.4.0
    • Component/s: cli
    • Labels:
      None
    • Environment:
    • Number of attachments :
      0

      Description

      Running any command that requires plugin resolution results in an exception

      java.lang.reflect.InvocationTargetException
              at org.codehaus.griffon.cli.support.GriffonStarter.rootLoader(GriffonStarter.java:198)
              at org.codehaus.griffon.cli.support.GriffonStarter.main(GriffonStarter.java:223)
      Caused by: java.lang.NullPointerException: Cannot invoke method getAt() on null object
              at griffon.util.ArtifactSettings.isValidVersion(ArtifactSettings.groovy:467)
              at griffon.util.ArtifactSettings$isValidVersion.callStatic(Unknown Source)
              at org.codehaus.griffon.artifacts.ArtifactInstallEngine.inspectArtifactRelease(ArtifactInstallEngine.groovy:798)
              at org.codehaus.griffon.artifacts.ArtifactInstallEngine.this$2$inspectArtifactRelease(ArtifactInstallEngine.groovy)
              at org.codehaus.griffon.artifacts.ArtifactInstallEngine$this$2$inspectArtifactRelease.callCurrent(Unknown Source)
              at org.codehaus.griffon.artifacts.ArtifactInstallEngine.installFromFile(ArtifactInstallEngine.groovy:521)
              at org.codehaus.griffon.artifacts.ArtifactInstallEngine$installFromFile.call(Unknown Source)
              at org.codehaus.griffon.cli.GriffonSetup.installArchetypes(GriffonSetup.groovy:153)
              at org.codehaus.griffon.cli.GriffonSetup.uploadBundles(GriffonSetup.groovy:93)
              at org.codehaus.griffon.cli.GriffonSetup.run(GriffonSetup.groovy:53)
              at org.codehaus.griffon.cli.GriffonScriptRunner.main(GriffonScriptRunner.java:129)
      

      Tested with latest JDK8 beta

      $ java -version
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b99)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b41, mixed mode)
      

        Activity

        Show
        Andres Almiray added a comment - Fixed with https://github.com/griffon/griffon/commit/5dda2dd2afa10a95a1979cb04755700c7ad7d4aa

          People

          • Assignee:
            Andres Almiray
            Reporter:
            Andres Almiray
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: