What version of Guice (and Guava) are you using in your project?

Guava stopped using the FinalizableReferenceQueue for its 
CustomConcurrentHashMap in v10, and Guice picked up this fix in 4.0-beta

If you’re still seeing those warnings with recent versions of Guice and Guava 
then something else is using FinalizableReferenceQueue  

On Wednesday, 4 March 2015 at 01:57, Igor Ganapolsky wrote:

> Umm, it's 2015, and these warning are not removed.  In fact they happen when 
> using Dagger too.
>  
> On Tuesday, September 13, 2011 at 3:22:19 PM UTC-4, Sam Berlin wrote:
> > All of those logging statements are just warnings, and are harmless.  They 
> > will be removed once Guice changes to use the Guava release (r10.. I'm not 
> > entirely sure if r09 had the fix).
> >  
> > My earlier response was directed at the ERROR messages printed out at the 
> > bottom of the initial post.  
> >  
> > sam
> >  
> > On Tue, Sep 13, 2011 at 3:12 PM, Martin Dobmeier <[email protected] 
> > (javascript:)> wrote:
> > > Hi,
> > >  
> > > I'm also seeing this stacktrace on Android with guice-3.0_no-aop.jar.
> > > Furthermore, I'm having guava-r09.jar and javax.inject.jar on the
> > > classpath.
> > >  
> > > Do you have any idea what is causing the exception? As you can see the
> > > exception is logged on level WARN. Can I therefore ignore it?
> > >  
> > > Thanks
> > > Martin
> > >  
> > > P.S.: Here's the stacktrace I'm seeing:
> > >  
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186): Could not load
> > > Finalizer in its own class loader. Loading Finalizer in the current
> > > class loader instead. As a result, you will not be able to garbage
> > > collect this class loader. To support reclaiming this class loader,
> > > either resolve the underlying issue, or move Google Collections to
> > > your system class path.
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):
> > > java.io.FileNotFoundException: com/google/inject/internal/util/
> > > $Finalizer.class
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.$FinalizableReferenceQueue
> > > $DecoupledLoader.getBaseUrl(FinalizableReferenceQueue.java:269)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.$FinalizableReferenceQueue
> > > $DecoupledLoader.loadFinalizer(FinalizableReferenceQueue.java:253)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.
> > > $FinalizableReferenceQueue.loadFinalizer(FinalizableReferenceQueue.java:
> > > 175)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.
> > > $FinalizableReferenceQueue.<clinit>(FinalizableReferenceQueue.java:
> > > 100)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.$MapMaker
> > > $QueueHolder.<clinit>(MapMaker.java:787)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.$MapMaker
> > > $WeakEntry.<init>(MapMaker.java:946)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.$MapMaker$Strength
> > > $1.newEntry(MapMaker.java:312)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.$MapMaker
> > > $StrategyImpl.newEntry(MapMaker.java:498)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.$MapMaker
> > > $StrategyImpl.newEntry(MapMaker.java:419)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.util.$CustomConcurrentHashMap
> > > $ComputingImpl.get(CustomConcurrentHashMap.java:2029)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.Annotations
> > > $AnnotationChecker.hasAnnotations(Annotations.java:116)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.Annotations.isBindingAnnotation(Annotations.java:
> > > 180)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.Key.ensureIsBindingAnnotation(Key.java:366)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.Key.strategyFor(Key.java:353)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.Key.get(Key.java:264)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.AbstractBindingBuilder.annotatedWithInternal(AbstractBindingBuilder.java:
> > > 74)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.BindingBuilder.annotatedWith(BindingBuilder.java:
> > > 49)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.BindingBuilder.annotatedWith(BindingBuilder.java:
> > > 41)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > de.bmwgroup.xfcd.guice.BaseModule.configureDriveManagerCommunication(BaseModule.java:
> > > 56)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > de.bmwgroup.xfcd.guice.ProductionModule.configure(ProductionModule.java:
> > > 39)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.AbstractModule.configure(AbstractModule.java:59)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
> > > 223)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.spi.Elements.getElements(Elements.java:101)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.spi.Elements.getElements(Elements.java:92)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.util.Modules$RealOverriddenModuleBuilder
> > > $1.configure(Modules.java:152)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.AbstractModule.configure(AbstractModule.java:59)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:
> > > 223)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.spi.Elements.getElements(Elements.java:101)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.InjectorShell
> > > $Builder.build(InjectorShell.java:133)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:
> > > 103)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.Guice.createInjector(Guice.java:95)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.Guice.createInjector(Guice.java:72)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > com.google.inject.Guice.createInjector(Guice.java:62)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at ...
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at ...
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at ...
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > android.os.AsyncTask$2.call(AsyncTask.java:185)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > java.util.concurrent.FutureTask.run(FutureTask.java:137)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:
> > > 1068)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > java.util.concurrent.ThreadPoolExecutor
> > > $Worker.run(ThreadPoolExecutor.java:561)
> > > 09-13 20:20:26.469: WARN/nalizableReferenceQueue(2186):     at
> > > java.lang.Thread.run(Thread.java:1096)
> > >  
> > >  
> > > On Sep 9, 5:29 pm, Sam Berlin <[email protected]> wrote:
> > > > Is it possible you may also have the normal Guice 3.0 on your classpath 
> > > > also
> > > > (perhaps leaked onto the classpath as a dependency of assisted inject)? 
> > > >  The
> > > > error is appearing from something that is not included in the no_aop
> > > > version.
> > > >
> > > > sam
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Wed, Sep 7, 2011 at 6:47 PM, Efi Merdler <[email protected]> 
> > > > wrote:
> > > > > Hi Guys,
> > > >
> > > > > I'm using Guice no_aop v 3.0 with assisted inject extension in my
> > > > > project.
> > > >
> > > > > The moment I'm calling the createInjector method I'm receiving a nasty
> > > > > error:
> > > >
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451): Could not load
> > > > > Finalizer in its own class loader. Loading Finalizer in the current
> > > > > class loader instead. As a result, you will not be able to garbage
> > > > > collect this class loader. To support reclaiming this class loader,
> > > > > either resolve the underlying issue, or move Google Collections to
> > > > > your system class path.
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451):
> > > > > java.io.FileNotFoundException: com/google/inject/internal/util/
> > > > > $Finalizer.class
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451):     at
> > > > > com.google.inject.internal.util.$FinalizableReferenceQueue
> > > > > $DecoupledLoader.getBaseUrl(FinalizableReferenceQueue.java:269)
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451):     at
> > > > > com.google.inject.internal.util.$FinalizableReferenceQueue
> > > > > $DecoupledLoader.loadFinalizer(FinalizableReferenceQueue.java:253)
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451):     at
> > > > > com.google.inject.internal.util.
> > > > > $FinalizableReferenceQueue.loadFinalizer(FinalizableReferenceQueue.java:
> > > > > 175)
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451):     at
> > > > > com.google.inject.internal.util.
> > > > > $FinalizableReferenceQueue.<clinit>(FinalizableReferenceQueue.java:
> > > > > 100)
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451):     at
> > > > > com.google.inject.internal.util.$MapMaker
> > > > > $QueueHolder.<clinit>(MapMaker.java:787)
> > > > > ...
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451):     at
> > > > > com.blinx.widget.Module.configure(Module.java:29)
> > > > > 09-08 01:18:29.778: WARN/nalizableReferenceQueue(7451):     at
> > > > > com.google.inject.AbstractModule.configure(AbstractModule.java:59)
> > > >
> > > > > ...
> > > > > 09-08 01:18:29.988: ERROR/AndroidRuntime(7451): FATAL EXCEPTION: main
> > > > > 09-08 01:18:29.988: ERROR/AndroidRuntime(7451):
> > > > > java.lang.RuntimeException: Unable to start receiver
> > > > > com.blinx.widget.view.BlinxWidget: com.google.inject.internal.util.
> > > > > $ComputationException: java.lang.VerifyError:
> > > > > com.google.inject.internal.cglib.core.$ReflectUtils
> > > > > ...
> > > > > 09-08 01:18:29.988: ERROR/AndroidRuntime(7451): Caused by:
> > > > > com.google.inject.internal.util.$ComputationException:
> > > > > java.lang.VerifyError: com.google.inject.internal.cglib.core.
> > > > > $ReflectUtils
> > > >
> > > > > When removing the following line from my Module:
> > > > > install(new FactoryModuleBuilder()
> > > > >             .build(ChannelFactory.class));
> > > >
> > > > > It seems to work.
> > > >
> > > > > What am I missing ?
> > > >
> > > > > Thanks,
> > > > > Efi
> > > >
> > > > > --
> > > > > You received this message because you are subscribed to the Google 
> > > > > Groups
> > > > > "google-guice" group.
> > > > > To post to this group, send email to [email protected] 
> > > > > (javascript:).
> > > > > To unsubscribe from this group, send email to
> > > > > [email protected] (javascript:).
> > > > > For more options, visit this group at
> > > > >http://groups.google.com/group/google-guice?hl=en.
> > >  
> > > --
> > > You received this message because you are subscribed to the Google Groups 
> > > "google-guice" group.
> > > To post to this group, send email to [email protected] 
> > > (javascript:).
> > > To unsubscribe from this group, send email to 
> > > [email protected] (javascript:).
> > > For more options, visit this group at 
> > > http://groups.google.com/group/google-guice?hl=en.
> > >  
> >  
> --  
> You received this message because you are subscribed to the Google Groups 
> "google-guice" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> (mailto:[email protected]).
> To post to this group, send email to [email protected] 
> (mailto:[email protected]).
> Visit this group at http://groups.google.com/group/google-guice.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-guice/aaf7316f-a811-4d01-bc83-6c4bf1888d02%40googlegroups.com
>  
> (https://groups.google.com/d/msgid/google-guice/aaf7316f-a811-4d01-bc83-6c4bf1888d02%40googlegroups.com?utm_medium=email&utm_source=footer).
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-guice/75E7469C5F4C43058BD280167EC5649A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to