allalizaki / guava-libraries

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

NullPointerException in MapMaker #252

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 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 9 years ago
We're unable to reproduce..

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

GoogleCodeExporter commented 9 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 9 years ago
MapMaker has been basically rewritten since this was reported. Please reopen if 
it (or something similar) is still occurring. :-)

Original comment by yrfselrahc@gmail.com on 13 Jan 2011 at 8:08

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:16

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:10