cllanjim / google-collections

Automatically exported from code.google.com/p/google-collections
Apache License 2.0
0 stars 0 forks source link

NullPointerException in MapMaker #252

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I ran code attached and got the following exception while monitoring it 
under jvisualvm (jdk1.6.0_14, google-collections:1.0-rc2)

28.09.2009 21:41:34 com.google.common.base.internal.Finalizer cleanUp
SEVERE: Error cleaning up after reference.
java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor47.invoke(Unknown Source)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp
l.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at 
com.google.common.base.internal.Finalizer.cleanUp(Finalizer.java:154)
    at 
com.google.common.base.internal.Finalizer.run(Finalizer.java:127)
Caused by: java.lang.NullPointerException
    at 
com.google.common.collect.MapMaker$SoftEntry.finalizeReferent(MapMaker.java
:954)
    ... 5 more

Original issue reported on code.google.com by Andrey.A...@gmail.com on 28 Sep 2009 at 5:46

Attachments:

GoogleCodeExporter commented 8 years ago
We're unable to reproduce..

Original comment by kevin...@gmail.com on 14 Oct 2009 at 4:19

GoogleCodeExporter commented 8 years ago
Well, this bug is rather hard to reproduce, but the following sequence does 
reproduce 
it regularly on my machine:

"D:\Program Files (x86)\Java\jdk1.6.0_16\bin\java" -cp 
D:\workspace\test\bin;D:\workspace\test\lib\google-collect-1.0-rc3.jar Test

Open monitor tab in Java Visual VM for the process.

Invoke heap dump, wait for it to complete and switch back to monitor tab.

I'm attaching my sysinfo.

Original comment by Andrey.A...@gmail.com on 2 Nov 2009 at 8:48

Attachments:

GoogleCodeExporter commented 8 years ago
This issue has been moved to the Guava project (keeping the same id number). 
Simply replace 'google-collections' with 'guava-libraries' in your address 
bar and it should take you there.

Original comment by kevinb@google.com on 5 Jan 2010 at 11:09