Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12010

command shell:history does not work on Fuse 7.4.0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.5-CR1
    • fuse-7.4-GA
    • Karaf
    • None
    • % %
    • Hide

      No workaround found

      Show
      No workaround found
    • Hide

      1. Unzip Fuse 7.4 and start
      2. Execute shell:history command
      3. You could repeat command, after executing some commands, and output will be the same

      Note: My Java version used to reproduce:

      $ java -version
      java version "1.8.0_221"
      Java(TM) SE Runtime Environment (build 1.8.0_221-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)

      Show
      1. Unzip Fuse 7.4 and start 2. Execute shell:history command 3. You could repeat command, after executing some commands, and output will be the same Note: My Java version used to reproduce: $ java -version java version "1.8.0_221" Java(TM) SE Runtime Environment (build 1.8.0_221-b11) Java HotSpot(TM) 64-Bit Server VM (build 25.221-b11, mixed mode)
    • Fuse 7.5 Sprint 53 - Blockers

    Description

      When executing command "shell:history" on Karaf console, appears

      Error executing command: java.lang.NullPointerException

      This is full stack trace

      karaf@root()> log:display-exception
      java.lang.NullPointerException: null
      at org.jline.builtins.Commands.history(Commands.java:204) ~[?:?]
      at org.apache.felix.gogo.jline.Builtin.history(Builtin.java:643) ~[?:?]
      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:1149) ~[?:?]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:?]
      at java.lang.Thread.run(Thread.java:748) [?:?]

      Attachments

        Issue Links

          Activity

            People

              yfang@redhat.com Freeman(Yue) Fang
              rhn-support-anarvaez Alfredo Narvaez
              Vratislav Hais Vratislav Hais (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: