Error Occurred During Stack Walking Java.lang.nullpointerexception
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getting a thread dump from a frozen Java app without using JStack up vote 1 down vote favorite When I am trying to use JStack to get the thread dump of my frozen application, one of the threads gives me this result: Thread 27560: (state = IN_NATIVE) - org.eclipse.swt.internal.gtk.OS._gtk_adjustment_changed(int) @bci=0 (Compiled frame; information may be imprecise) Error occurred during stack walking: java.lang.NullPointerException at sun.jvm.hotspot.runtime.Frame.addressOfStackSlot(Frame.java:224) at sun.jvm.hotspot.runtime.x86.X86Frame.senderForCompiledFrame(X86Frame.java:342) at sun.jvm.hotspot.runtime.x86.X86Frame.sender(X86Frame.java:283) at sun.jvm.hotspot.runtime.Frame.sender(Frame.java:194) at sun.jvm.hotspot.runtime.Frame.realSender(Frame.java:199) at sun.jvm.hotspot.runtime.VFrame.sender(VFrame.java:119) at sun.jvm.hotspot.runtime.CompiledVFrame.sender(CompiledVFrame.java:178) at sun.jvm.hotspot.runtime.VFrame.javaSender(VFrame.java:146) at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:76) at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:45) at sun.jvm.hotspot.tools.JStack.run(JStack.java:60) at sun.jvm.hotspot.tools.Tool.start(Tool.java:221) at sun.jvm.hotspot.tools.JStack.main(JStack.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.tools.jstack.JStack.runJStackTool(JStack.java:118) at sun.tools.jstack.JStack.main(JStack.java:84) Of course, it is the one I am most interested in :( Ctrl+Break doesn't work either. Are there other ways to get a thread dump? I am using Linux and Sun VM 1.6.0_20. java debugging thread-dump share|improve this question asked Aug 31 '10 at 14:34 Alexey Romanov 70.6k14163287 3 CTRL-\ (CTRL-Break is Windows). –Tom Hawtin - tackline Aug 31 '10 at 14:38 Than
ExportXMLWordPrintable Details Type: Bug Status: Closed Priority: P4 Resolution: Duplicate Affects Version/s: 5.0 Fix Version/s: None Component/s: core-svc Labels: webbug Subcomponent: tools CPU: x86 OS: linux Description FULL PRODUCT VERSION : JVMs were on: > java -version java version "1.5.0_04" Java(TM) 2 Runtime Environment, http://stackoverflow.com/questions/3610022/getting-a-thread-dump-from-a-frozen-java-app-without-using-jstack Standard Edition (build 1.5.0_04-b05) Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing) jstack itself was from 1.5.0_05 ADDITIONAL OS VERSION INFORMATION : > uname -a Linux sentrion.demo.sendmail.com 2.6.12.5 #1 SMP Wed Oct 5 02:50:11 https://bugs.openjdk.java.net/browse/JDK-6357598 UTC 2005 i686 pentium4 i386 GNU/Linux A DESCRIPTION OF THE PROBLEM : When I run jstack against a Tomcat application it works fine, i.e., I get a stack trace with no issues or errors. Against another one of our applications (standalone java application not in Tomcat) I get numerous errors like: Thread 3131: (state = BLOCKED) - java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise) - com.sendmail.iocaine.servers.mail.smtp.jilter.ProcessorQueue.getNextItem(long) @bci=89, line=106 (Compiled frame) - com.sendmail.iocaine.servers.mail.smtp.jilter.JilterProcessor.runThread() @bci=40, line=64 (Compiled frame) Error occurred during stack walking: java.lang.NullPointerException at sun.jvm.hotspot.runtime.Frame.addressOfStackSlot(Frame.java:214) at sun.jvm.hotspot.runtime.x86.X86Frame.addressOfInterpreterFrameMethod(X86Frame.java:442) at sun.jvm.hotspot.runtime.Frame.getInterpreterFrameMethod(Frame.java:354) at sun.jvm.hotspot.runtime.InterpretedVFrame.getMethod(InterpretedVFrame.java:19) at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:51) at sun.jvm.hotspot.tools.JStack.run(JStack.java:41) at sun.jvm.hotspot.tools.Tool.start(Tool.java:204) at sun.jvm.hotspot.tools.JStack.main(JStack.java:58) I think maybe the key her
Sessions" on Subject: Re: Instance spontaneously turning "Refuse New Sessions" on From: Paul Hoadley