Skip to main content

NPE "while visiting" on startup

1 reply [Last post]
slominskir
Offline
Joined: 2010-11-15
Points: 0

When I start glassfish 3.1.2.2 I get a weird Null Pointer Exception in the log, but the server seems to work fine. I'm wondering if anyone knows what this is about:

[#|2012-09-07T14:15:54.159-0400|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=16;_ThreadName=Thread-2;|Exception while visiting com/sun/gjc/spi/base/datastructure/Cache.class of size 450
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 org.glassfish.hk2.classmodel.reflect.util.JarArchive.onSelectedEntries(JarArchive.java:125)
at org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive.parse(DirectoryArchive.java:111)
at org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive.onSelectedEntries(DirectoryArchive.java:92)
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:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
|#]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
emailnbw
Offline
Joined: 2008-05-28
Points: 0

I filed a bug similar to this. Please feel free to comment on it, vote it, watch it and join the fun.

http://java.net/jira/browse/GLASSFISH-18609

-Noah

On Sep 7, 2012, at 1:49 PM, forums@java.net wrote:

> When I start glassfish 3.1.2.2 I get a weird Null Pointer Exception in the
> log, but the server seems to work fine. I'm wondering if anyone knows what
> this is about:
> [#|2012-09-07T14:15:54.159-0400|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=16;_ThreadName=Thread-2;|Exception
> while visiting com/sun/gjc/spi/base/datastructure/Cache.class of size 450
> 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
> org.glassfish.hk2.classmodel.reflect.util.JarArchive.onSelectedEntries(JarArchive.java:125)
> at
> org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive.parse(DirectoryArchive.java:111)
> at
> org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive.onSelectedEntries(DirectoryArchive.java:92)
> 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:303) at
> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> at java.lang.Thread.run(Thread.java:662) |#]
>
> --
>
> [Message sent by forum member 'slominskir']
>
> View Post: http://forums.java.net/node/889960
>
>

mvatkina
Offline
Joined: 2005-04-04
Points: 0

There are these ones as well:

http://java.net/jira/browse/GLASSFISH-18702
http://java.net/jira/browse/GLASSFISH-18513
http://java.net/jira/browse/GLASSFISH-18868

:(

-marina

Noah White wrote:
> I filed a bug similar to this. Please feel free to comment on it, vote
> it, watch it and join the fun.
>
> http://java.net/jira/browse/GLASSFISH-18609
>
> -Noah
>
> On Sep 7, 2012, at 1:49 PM, forums@java.net
> wrote:
>
>> When I start glassfish 3.1.2.2 I get a weird Null Pointer Exception
>> in the
>> log, but the server seems to work fine. I'm wondering if anyone knows
>> what
>> this is about:
>> [#|2012-09-07T14:15:54.159-0400|SEVERE|glassfish3.1.2|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=16;_ThreadName=Thread-2;|Exception
>> while visiting com/sun/gjc/spi/base/datastructure/Cache.class of size 450
>> 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
>> org.glassfish.hk2.classmodel.reflect.util.JarArchive.onSelectedEntries(JarArchive.java:125)
>> at
>> org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive.parse(DirectoryArchive.java:111)
>> at
>> org.glassfish.hk2.classmodel.reflect.util.DirectoryArchive.onSelectedEntries(DirectoryArchive.java:92)
>> 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:303) at
>> java.util.concurrent.FutureTask.run(FutureTask.java:138) at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>> at java.lang.Thread.run(Thread.java:662) |#]
>>
>> --
>>
>> [Message sent by forum member 'slominskir']
>>
>> View Post: http://forums.java.net/node/889960
>>
>>
>