You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Markus Rathgeb <ma...@gmail.com> on 2020/03/02 14:23:44 UTC

Karaf 4.2.8: shell help broken

Hi,

if I call "help" on the Karaf 4.2.8 shell I get an error message
"Error executing command:
java.lang.reflect.InvocationTargetException".

The log contains some more details:

15:22:33.279 ERROR [Karaf local console user karaf] Exception caught
while executing command
java.lang.reflect.InvocationTargetException: null
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_202]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_202]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_202]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
        at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:143)
~[?:?]
        at org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:218)
~[?:?]
        at org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:264)
~[?:?]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
~[?:?]
        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
~[?:?]
        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599)
~[?:?]
        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526)
~[?:?]
        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415)
~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
~[?:1.8.0_202]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
~[?:1.8.0_202]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
~[?:1.8.0_202]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
Caused by: java.lang.NoSuchMethodError:
org.jline.builtins.Less.<init>(Lorg/jline/terminal/Terminal;)V
        at org.apache.felix.gogo.jline.Posix.less(Posix.java:960) ~[?:?]
        at org.apache.felix.gogo.jline.Posix.run(Posix.java:207) ~[?:?]
        at org.apache.felix.gogo.jline.Posix._main(Posix.java:145) ~[?:?]
        ... 19 more

Is this already known?

Re: Karaf 4.2.8: shell help broken

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Markus,

Yes, that due to jline update that introduced a breaking change. Some commands (from gogo) are impacted.

I’m working on a fix. It will be included in Karaf 4.2.9 (that I will submit to vote very soon).

Sorry for the inconvenience (let me find the Jira).

Regards
JB

> Le 2 mars 2020 à 15:23, Markus Rathgeb <ma...@gmail.com> a écrit :
> 
> Hi,
> 
> if I call "help" on the Karaf 4.2.8 shell I get an error message
> "Error executing command:
> java.lang.reflect.InvocationTargetException".
> 
> The log contains some more details:
> 
> 15:22:33.279 ERROR [Karaf local console user karaf] Exception caught
> while executing command
> java.lang.reflect.InvocationTargetException: null
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> ~[?:1.8.0_202]
>        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> ~[?:1.8.0_202]
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> ~[?:1.8.0_202]
>        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
>        at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:143)
> ~[?:?]
>        at org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.lambda$wrap$0(SessionFactoryImpl.java:218)
> ~[?:?]
>        at org.apache.karaf.shell.impl.console.SessionFactoryImpl$ShellCommand.execute(SessionFactoryImpl.java:264)
> ~[?:?]
>        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:68)
> ~[?:?]
>        at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.execute(SecuredCommand.java:86)
> ~[?:?]
>        at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:599)
> ~[?:?]
>        at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:526)
> ~[?:?]
>        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:415)
> ~[?:?]
>        at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:416) ~[?:?]
>        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) ~[?:?]
>        at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) ~[?:?]
>        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> ~[?:1.8.0_202]
>        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> ~[?:1.8.0_202]
>        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> ~[?:1.8.0_202]
>        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
> Caused by: java.lang.NoSuchMethodError:
> org.jline.builtins.Less.<init>(Lorg/jline/terminal/Terminal;)V
>        at org.apache.felix.gogo.jline.Posix.less(Posix.java:960) ~[?:?]
>        at org.apache.felix.gogo.jline.Posix.run(Posix.java:207) ~[?:?]
>        at org.apache.felix.gogo.jline.Posix._main(Posix.java:145) ~[?:?]
>        ... 19 more
> 
> Is this already known?