本文介绍了org.glassfish.hk2.classmodel.reflect.impl.TypesImpl.getType 处的 java.lang.NullPointerException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次部署应用程序时都会收到此错误/警告.我使用 netbeans 7.2.1 IDE、Glassfish 服务器 3.1.2 和 primefaces 3.3.1.部署成功,但我很好奇出现这种情况的原因.

I get this error/warning each time I do a deploy of the application. I use netbeans 7.2.1 IDE, Glassfish server 3.1.2 and primefaces 3.3.1. The deploy is successful but I'm curious about the reason why this appears.

SEVERE: Exception while visiting java/lang/Object.class of size 1475
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:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

推荐答案

我认为您的问题与已知的相同 错误 - Glassfish 18513.前几天我实际上正在寻找这个.

I think your issue is the same as this known bug - Glassfish 18513. I was actually looking this up the other day.

据我所知,它不会引起任何问题,但令人不安.它确实有 26 票,所以希望它很快得到修复.

From what I can tell it doesn't cause any issues, but it is unsettling. It does have 26 votes so hopefully it's fixed soon.

这篇关于org.glassfish.hk2.classmodel.reflect.impl.TypesImpl.getType 处的 java.lang.NullPointerException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 18:44