NullPointerException while getting thread dump using jstack

亡梦爱人 提交于 2019-12-11 09:07:27

问题


I'm trying to debug a CPU spike issue. For fetching thread dump, I'm using Jstack which is giving below mentioned error:

Thread 1780: (state = IN_JAVA)
Error occurred during stack walking:
java.lang.NullPointerException
    at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:78)
    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:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.tools.jstack.JStack.runJStackTool(JStack.java:136)
    at sun.tools.jstack.JStack.main(JStack.java:102)

Has anyone seen this issue before ?

JDK version: 1.7

来源:https://stackoverflow.com/questions/27865858/nullpointerexception-while-getting-thread-dump-using-jstack

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!