Cole Ferrier created KNOX-759:
---------------------------------

             Summary: jansi dependency causes issues starting knox shell
                 Key: KNOX-759
                 URL: https://issues.apache.org/jira/browse/KNOX-759
             Project: Apache Knox
          Issue Type: Bug
          Components: ClientDSL
    Affects Versions: 0.9.1
         Environment: windows 7
            Reporter: Cole Ferrier


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.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to