在java中
class C{
public void d(){
...
E.f();
...
}
}
堆栈跟踪将是
at a.b.C.d(C.java:300)
at a.b.E.f(E.java:500)
但如果我看到这样的东西,我对'J9VMInternals'类
做了什么at a.b.E.f(E.java:500)
...
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at a.b.c.d(c.java:300)
原始堆栈跟踪我正在尝试调试
java.lang.NullPointerException
at java.lang.ClassLoader.initializeClassLoaderAssertStatus(ClassLoader.java:1215)
at java.lang.ClassLoader.<init>(ClassLoader.java:167)
at java.lang.ClassLoader.<init>(ClassLoader.java:126)
....
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at <J2EE_listner_contextInitializedMethod>
我在java 1.6.0_24 weblogic 11
答案 0 :(得分:-5)
您是否希望您的课程凭空实例化? JVM加载它并初始化它,你会看到这样的堆栈跟踪以及你的类