You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Francois Papon (Jira)" <ji...@apache.org> on 2020/01/17 21:02:00 UTC
[jira] [Commented] (KARAF-6602) History shell command is broken
[ https://issues.apache.org/jira/browse/KARAF-6602?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17018311#comment-17018311 ]
Francois Papon commented on KARAF-6602:
---------------------------------------
The signature of the method Commands.history from JLine 3.13.x have a new parameter:
[https://github.com/jline/jline3/blob/fd153e3468673782f65319ff776380d94ad00864/builtins/src/main/java/org/jline/builtins/Commands.java#L174]
And the felix gogo jline used the 3.7.0:
[https://github.com/apache/felix/blob/a13ea8ea177933e2911b14e1de55fff4e5196927/gogo/jline/src/main/java/org/apache/felix/gogo/jline/Builtin.java#L643]
The range import from felix gogo jline is
{code:java}
org.jline*;version="[3.0,4)"{code}
> History shell command is broken
> -------------------------------
>
> Key: KARAF-6602
> URL: https://issues.apache.org/jira/browse/KARAF-6602
> Project: Karaf
> Issue Type: Bug
> Components: karaf
> Affects Versions: 4.2.8
> Reporter: Francois Papon
> Assignee: Francois Papon
> Priority: Major
> Fix For: 4.3.0, 4.2.8
>
>
> {{The history shell command throw an exception since JLine 3.13.x upgrade:}}
> {code:java}
> karaf@root()> history
> [Karaf local console user karaf] ERROR org.apache.karaf.shell.support.ShellUtil - Exception caught while executing command
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> 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)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.NoSuchMethodError: org.jline.builtins.Commands.history(Lorg/jline/reader/LineReader;Ljava/io/PrintStream;Ljava/io/PrintStream;[Ljava/lang/String;)V
> at org.apache.felix.gogo.jline.Builtin.history(Builtin.java:643)
> ... 19 more
> Error executing command: java.lang.reflect.InvocationTargetException{code}
>
> Link to the JLine dependency update:
> [https://issues.apache.org/jira/browse/KARAF-6543]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)