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

jansi dependency causes issues starting knox shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.13.0
    • ClientDSL
    • None
    • windows 7

    Description

      Using knox .9.1 downloaded today. i unzipped it in windows and attemped to run java -jar bin\shell.jar from the extracted directory. it errored with:

      FATAL: java.lang.NoSuchMethodError: org.fusesource.jansi.internal.Kernel32.GetConsoleOutputCP()I
      java.lang.NoSuchMethodError: org.fusesource.jansi.internal.Kernel32.GetConsoleOutputCP()I
      at jline.WindowsTerminal.getConsoleOutputCodepage(WindowsTerminal.java:295)
      at jline.WindowsTerminal.getOutputEncoding(WindowsTerminal.java:185)
      at jline.console.ConsoleReader.<init>(ConsoleReader.java:242)
      at jline.console.ConsoleReader.<init>(ConsoleReader.java:232)
      at jline.console.ConsoleReader.<init>(ConsoleReader.java:224)
      at org.codehaus.groovy.tools.shell.PatchedConsoleReader.<init>(PatchedConsoleReader.groovy:32)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
      at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:255)
      at org.codehaus.groovy.tools.shell.InteractiveShellRunner.<init>(InteractiveShellRunner.groovy:50)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
      at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
      at org.codehaus.groovy.runtime.callsite.ConstructorSite.callConstructor(ConstructorSite.java:45)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:255)
      at org.codehaus.groovy.tools.shell.Groovysh.run(Groovysh.groovy:574)
      at org.apache.hadoop.gateway.shell.Shell.main(Shell.java:62)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      if you replace the jansi-1.6.jar file that is in the dep folder with the 1.12 version from:
      http://fusesource.github.io/jansi/download.html

      the shell starts as expected.

      I didn't test any of the intermediate jar levels.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            coleferrier Cole Ferrier
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: