A @Factory method keeps other methods waiting in EAP 5.1.2

Solution Verified - Updated -

Issue

A @Factory method keeps other @Factory methods waiting.

In thread dumps, the method was locking in getInstanceFromFactory method.

at org.jboss.seam.Component.getInstanceFromFactory(Component.java:2093)
- locked <0x00000006f32a7e48> (a java.lang.Class for org.jboss.seam.Component)

So other threads waitng for release the lock.

java.lang.Thread.State: BLOCKED (on object monitor)
 at org.jboss.seam.Component.getInstanceFromFactory(Component.java:2056)
 - waiting to lock <0x00000006f32a7e48> (a java.lang.Class for org.jboss.seam.Component)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 5.1.2
    • Seam 2.2.5.EAP5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.