Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6602

History shell command is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.8
    • 4.3.0, 4.2.9
    • karaf
    • None

    Description

      The history shell command throw an exception since JLine 3.13.x upgrade:

      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

       

      Link to the JLine dependency update:

      https://issues.apache.org/jira/browse/KARAF-6543

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              fpapon Francois Papon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: