Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-2957

Upgrade Groovy version >= 3.0.8 to support knoxshell on JDK17 cluster

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Server
    • None

    Description

      Execution on knoxshell.sh fails on jdk17 with below error

      Caught: BUG! exception in phase 'semantic analysis' in source unit '/tmp/tokenShell/webHdfsLs.groovy' Unsupported class file major version 61
      BUG! exception in phase 'semantic analysis' in source unit '/tmp/tokenShell/webHdfsLs.groovy' Unsupported class file major version 61
          at org.apache.knox.gateway.shell.Shell.main(Shell.java:70)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:68)
          at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39)
          at org.apache.knox.gateway.launcher.Command.run(Command.java:99)
          at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:75)
          at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:52)
      Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 61
          at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:189)
          at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:170)
          at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:156)
          at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:277)
          ... 9 more 
      

      Attachments

        Issue Links

          Activity

            People

              smore Sandeep More
              smore Sandeep More
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m