The screenshot contains a heapdump, not a thread dump.
I think the NPE is a consequence, so we have to find the cause. A thread dump should help to see locked or parked threads. Regards JB On 02/04/2016 10:49 PM, Charles Moulliard wrote:
Yes I can do that with jmap. Here is a screenshot - https://www.dropbox.com/s/9nns0coyue9j6zt/Screenshot%202016-02-04%2022.48.56.png?dl=0 On Thu, Feb 4, 2016 at 9:31 PM, Jean-Baptiste Onofré <j...@nanthrax.net <mailto:j...@nanthrax.net>> wrote: Can you take a thread dump ? Regards JB On 02/04/2016 09:00 PM, Charles Moulliard wrote: Hi, My Karaf 2.4.4 container stays blocked when it shutdowns and reports this error Exception in thread "Karaf Shell Console Thread" java.lang.NullPointerException at java.io.Writer.write(Writer.java:157) at java.io.BufferedWriter.newLine(BufferedWriter.java:243) at java.io.PrintStream.newLine(PrintStream.java:544) at java.io.PrintStream.println(PrintStream.java:824) at jline.console.history.FileHistory.flush(FileHistory.java:90) at org.apache.karaf.shell.console.jline.KarafFileHistory.flush(KarafFileHistory.java:65) at org.apache.karaf.shell.console.jline.Console.close(Console.java:163) at org.apache.karaf.shell.console.jline.Console.run(Console.java:216) at org.apache.karaf.shell.console.jline.DelayedStarted.run(DelayedStarted.java:79) How can I investigate why the thread is blocked and that I must kill the process to restart it Regards, -- Charles Moulliard Apache Committer & PMC / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io <http://cmoulliard.github.io> -- Jean-Baptiste Onofré jbono...@apache.org <mailto:jbono...@apache.org> http://blog.nanthrax.net Talend - http://www.talend.com -- Charles Moulliard Apache Committer & PMC / Architect @RedHat Twitter : @cmoulliard | Blog : http://cmoulliard.github.io <http://cmoulliard.github.io>
-- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com