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

man command leads to java.lang.reflect.InvocationTargetException

    XMLWordPrintableJSON

Details

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

    Description

      The man command isn't working In Karaf 4.2.8. The parameters do not matter.

      I have downloaded the current 4.2.8 Release and did no modification. Tried JDK 8 and JDK 11.

      karaf@root()> man --help
      Error executing command: java.lang.reflect.InvocationTargetException
      

      LOG

      07:10:08.999 ERROR [Karaf local console user karaf] Exception caught while executing command07:10:08.999 ERROR [Karaf local console user karaf] Exception caught while executing commandjava.lang.reflect.InvocationTargetException: null at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_222] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_222] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_222] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_222] 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_222] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_222] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_222] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_222]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
      

      Maybe a result from KARAF-6543

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              andreschlegel Andre Schlegel-Tylla
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: