Status: New
Owner: ----

New issue 785 by [email protected]: Deadlock on "waitForValue"
http://code.google.com/p/google-guice/issues/detail?id=785

This is using Guice 3.0. When we have multiple injections of the same class happening at the same time, I'm encountering a deadlock here:

   java.lang.Thread.State: WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
        at java.lang.Object.wait(Object.java:503)
at com.google.inject.internal.util.$MapMaker$StrategyImpl.waitForValue(MapMaker.java:529) - locked <0x00000000ea6f4248> (a com.google.inject.internal.util.$MapMaker$LinkedStrongEntry) at com.google.inject.internal.util.$MapMaker$StrategyImpl$FutureValueReference.waitForValue(MapMaker.java:619) at com.google.inject.internal.util.$MapMaker$StrategyImpl.waitForValue(MapMaker.java:533) at com.google.inject.internal.util.$MapMaker$StrategyImpl.waitForValue(MapMaker.java:419) at com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2061) at com.google.inject.internal.FailableCache.get(FailableCache.java:50) at com.google.inject.internal.MembersInjectorStore.get(MembersInjectorStore.java:65) at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:950) at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorImpl.java:957) at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.java:943)

If there's any more information that I can provide to you, let me know.

I'm going to try updating to 4.0-beta to see if that solves the problem.

I did a cursory look of the open issues, and didn't see the bug. If it's a duplicate, please just let me know what the duplicated issue is.

Thanks!

(BTW, love Guice. Makes DI not suck, which is always a nice touch.)

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" 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-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to