org.glassfish.hk2.classmodel.reflect.impl.TypesImpl.getType中的java.lang.NullPointerException

时间:2013-03-14 00:47:37

标签: java-ee nullpointerexception glassfish glassfish-3

我的Web容器是GlassFish Server 3+,当我运行我的Java应用程序时,应用程序将正确运行但我在控制台中看到以下错误。

INFO: The Admin Console is already installed, but not yet loaded.
SEVERE: Exception while visiting java/lang/Object.class of size 1515
java.lang.NullPointerException
    at org.glassfish.hk2.classmodel.reflect.impl.TypesImpl.getType(TypesImpl.java:78)
    at org.glassfish.hk2.classmodel.reflect.impl.ModelClassVisitor.visit(ModelClassVisitor.java:119)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at org.objectweb.asm.ClassReader.accept(Unknown Source)
    at org.glassfish.hk2.classmodel.reflect.Parser$5.on(Parser.java:363)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.handleEntry(ReadableArchiveScannerAdapter.java:171)
    at com.sun.enterprise.v3.server.ReadableArchiveScannerAdapter.onSelectedEntries(ReadableArchiveScannerAdapter.java:133)
    at org.glassfish.hk2.classmodel.reflect.Parser.doJob(Parser.java:348)
    at org.glassfish.hk2.classmodel.reflect.Parser.access$300(Parser.java:70)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:307)
    at org.glassfish.hk2.classmodel.reflect.Parser$3.call(Parser.java:296)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)

1 个答案:

答案 0 :(得分:1)

在没有部署任务的情况下启动服务器时,是否会出现这些错误?

这些错误与内部glassfish服务器类有关。当我开始学习GF时,我的实习大师告诉我这些错误与错误有关,尤其是当你试图阻止gf服务器时出现的错误。

祝你好运。