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

shutdown command return null pointer exception

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • fuse-7.0
    • fuse-7.0
    • None
    • None
    • % %
    • Hide

      Recorded bash session:

      11:45:56 (..-7.0.0.fuse-000119)$ bin/start
      11:46:03 (..-7.0.0.fuse-000119)$ bin/client 
      Logging in as admin
      
            _ ____                  ______              
           | |  _ \                |  ____|             
           | | |_) | ___  ___ ___  | |__ _   _ ___  ___ 
       _   | |  _ < / _ \/ __/ __| |  __| | | / __|/ _ \ 
      | |__| | |_) | (_) \__ \__ \ | |  | |_| \__ \  __/
       \____/|____/ \___/|___/___/ |_|   \__,_|___/\___|
      
        JBoss Fuse (7.0.0.fuse-000119)
        http://www.redhat.com/products/jbossenterprisemiddleware/fuse/
      
      Hit '<tab>' for a list of available commands
      and '[cmd] --help' for help on a specific command.
      
      Open a browser to http://localhost:8181/hawtio to access the management console
      
      Hit '<ctrl-d>' or 'shutdown' to shutdown JBoss Fuse.
      
      admin@root()> shutdown 
      Error executing command: java.lang.NullPointerException
      admin@root()> 11:46:36 (..-7.0.0.fuse-000119)$ bin/stop
      11:46:40 (..-7.0.0.fuse-000119)$ bin/fuse 
      JBoss Fuse starting up. Press Enter to open the shell now...
      100% [========================================================================]
      
      Karaf started in 2s. Bundle stats: 224 active, 224 total
      
            _ ____                  ______              
           | |  _ \                |  ____|             
           | | |_) | ___  ___ ___  | |__ _   _ ___  ___ 
       _   | |  _ < / _ \/ __/ __| |  __| | | / __|/ _ \ 
      | |__| | |_) | (_) \__ \__ \ | |  | |_| \__ \  __/
       \____/|____/ \___/|___/___/ |_|   \__,_|___/\___|
      
        JBoss Fuse (7.0.0.fuse-000119)
        http://www.redhat.com/products/jbossenterprisemiddleware/fuse/
      
      Hit '<tab>' for a list of available commands
      and '[cmd] --help' for help on a specific command.
      
      Open a browser to http://localhost:8181/hawtio to access the management console
      
      Hit '<ctrl-d>' or 'shutdown' to shutdown JBoss Fuse.
      
      karaf@root()> shutdown 
      Error executing command: java.lang.NullPointerException
      karaf@root()> 
      

      stacktrace from logs:

      2018-01-05 11:46:50,782 | ERROR | l console user karaf | o.a.k.s.s.ShellUtil              | 147 - org.apache.karaf.shell.core - 4.2.0.700_fuse-000002 | Exception caught while executing command
      java.lang.NullPointerException: null
      	at org.jline.reader.impl.history.DefaultHistory.getPath(DefaultHistory.java:60) ~[?:?]
      	at org.jline.reader.impl.history.DefaultHistory.load(DefaultHistory.java:84) ~[?:?]
      	at org.jline.reader.impl.history.DefaultHistory.attach(DefaultHistory.java:79) ~[?:?]
      	at org.jline.reader.impl.LineReaderImpl.setHistory(LineReaderImpl.java:117) ~[?:?]
      	at org.jline.reader.LineReaderBuilder.build(LineReaderBuilder.java:97) ~[?:?]
      	at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.readLine(ConsoleSessionImpl.java:531) ~[?:?]
      	at org.apache.karaf.system.commands.Shutdown.execute(Shutdown.java:84) ~[?:?]
      	at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?]
      	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:571) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?]
      	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?]
      	at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?]
      	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) [?:?]
      
      

      related bundle versions:

      145 │ Active      │  30 │ 4.2.0.700_fuse-000002 │ Apache Karaf :: Shell :: AEsh JLine
      146 │ Active      │  30 │ 4.2.0.700_fuse-000002 │ Apache Karaf :: Shell :: Various Commands
      147 │ Active      │  30 │ 4.2.0.700_fuse-000002 │ Apache Karaf :: Shell :: Core
      148 │ Active      │  30 │ 4.2.0.700_fuse-000002 │ Apache Karaf :: Shell :: SSH
      195 │ Active      │  30 │ 3.5.2                              │ JLine Builtins
      196 │ Active      │  30 │ 3.5.2                              │ JLine Terminal, Fragments: 197
      197 │ Resolved │  30 │ 3.5.2                              │ JLine JANSI Terminal, Hosts: 196
      
      Show
      Recorded bash session: 11:45:56 (..-7.0.0.fuse-000119)$ bin/start 11:46:03 (..-7.0.0.fuse-000119)$ bin/client Logging in as admin _ ____ ______ | | _ \ | ____| | | |_) | ___ ___ ___ | |__ _ _ ___ ___ _ | | _ < / _ \/ __/ __| | __| | | / __|/ _ \ | |__| | |_) | (_) \__ \__ \ | | | |_| \__ \ __/ \____/|____/ \___/|___/___/ |_| \__,_|___/\___| JBoss Fuse (7.0.0.fuse-000119) http://www.redhat.com/products/jbossenterprisemiddleware/fuse/ Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Open a browser to http://localhost:8181/hawtio to access the management console Hit '<ctrl-d>' or 'shutdown' to shutdown JBoss Fuse. admin@root()> shutdown Error executing command: java.lang.NullPointerException admin@root()> 11:46:36 (..-7.0.0.fuse-000119)$ bin/stop 11:46:40 (..-7.0.0.fuse-000119)$ bin/fuse JBoss Fuse starting up. Press Enter to open the shell now... 100% [========================================================================] Karaf started in 2s. Bundle stats: 224 active, 224 total _ ____ ______ | | _ \ | ____| | | |_) | ___ ___ ___ | |__ _ _ ___ ___ _ | | _ < / _ \/ __/ __| | __| | | / __|/ _ \ | |__| | |_) | (_) \__ \__ \ | | | |_| \__ \ __/ \____/|____/ \___/|___/___/ |_| \__,_|___/\___| JBoss Fuse (7.0.0.fuse-000119) http://www.redhat.com/products/jbossenterprisemiddleware/fuse/ Hit '<tab>' for a list of available commands and '[cmd] --help' for help on a specific command. Open a browser to http://localhost:8181/hawtio to access the management console Hit '<ctrl-d>' or 'shutdown' to shutdown JBoss Fuse. karaf@root()> shutdown Error executing command: java.lang.NullPointerException karaf@root()> stacktrace from logs: 2018-01-05 11:46:50,782 | ERROR | l console user karaf | o.a.k.s.s.ShellUtil | 147 - org.apache.karaf.shell.core - 4.2.0.700_fuse-000002 | Exception caught while executing command java.lang.NullPointerException: null at org.jline.reader.impl.history.DefaultHistory.getPath(DefaultHistory.java:60) ~[?:?] at org.jline.reader.impl.history.DefaultHistory.load(DefaultHistory.java:84) ~[?:?] at org.jline.reader.impl.history.DefaultHistory.attach(DefaultHistory.java:79) ~[?:?] at org.jline.reader.impl.LineReaderImpl.setHistory(LineReaderImpl.java:117) ~[?:?] at org.jline.reader.LineReaderBuilder.build(LineReaderBuilder.java:97) ~[?:?] at org.apache.karaf.shell.impl.console.ConsoleSessionImpl.readLine(ConsoleSessionImpl.java:531) ~[?:?] at org.apache.karaf.system.commands.Shutdown.execute(Shutdown.java:84) ~[?:?] at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(ActionCommand.java:84) ~[?:?] 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:571) ~[?:?] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:497) ~[?:?] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) ~[?:?] at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) ~[?:?] 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) [?:?] related bundle versions: 145 │ Active │ 30 │ 4.2.0.700_fuse-000002 │ Apache Karaf :: Shell :: AEsh JLine 146 │ Active │ 30 │ 4.2.0.700_fuse-000002 │ Apache Karaf :: Shell :: Various Commands 147 │ Active │ 30 │ 4.2.0.700_fuse-000002 │ Apache Karaf :: Shell :: Core 148 │ Active │ 30 │ 4.2.0.700_fuse-000002 │ Apache Karaf :: Shell :: SSH 195 │ Active │ 30 │ 3.5.2 │ JLine Builtins 196 │ Active │ 30 │ 3.5.2 │ JLine Terminal, Fragments: 197 197 │ Resolved │ 30 │ 3.5.2 │ JLine JANSI Terminal, Hosts: 196

    Description

      shutdown command result in null pointer exception, both when started as bin/fuse and bin/start then bin/client to connect.

      Attachments

        Activity

          People

            g_nodet Guillaume Nodet (Inactive)
            atarocch@redhat.com Andrea Tarocchi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: