Thread Deadlock on groovy script in SOA-P

Solution Verified - Updated -

Issue

  • Deadlock is detected while running groovy scripts in SOA-P.
"pool-258-thread-1"   prio=10 tid=0x00007f123002b000 nid=0x5f43 waiting for monitor entry [0x00007f1171d77000] 
   java.lang.Thread.State: BLOCKED (on object monitor)      
 at org.codehaus.groovy.reflection.CachedClass.getCachedSuperClass(CachedClass.java:131)      
- waiting to lock <0x000000074158f4f8> (a org.codehaus.groovy.reflection.CachedClass)      
at org.codehaus.groovy.reflection.CachedClass.<init>(CachedClass.java:125)      
at org.codehaus.groovy.reflection.ReflectionCache.getCachedClass(ReflectionCache.java:213)      
- locked <0x00000007414d9468> (a java.util.WeakHashMap)      
at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:106)      
at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:114)      
at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:102) at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:92)      
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getGlobalMetaClass(MetaClassRegistryImpl.java:247)      
- locked <0x00000006fbb2de20> (a java.lang.Class for Script1)      
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.access$100(MetaClassRegistryImpl.java:45) at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$LocallyKnownClasses.getFromGlobal(MetaClassRegistryImpl.java:112)      
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$LocallyKnownClasses.getMetaClass(MetaClassRegistryImpl.java:88)      
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl$MyThreadLocal.getMetaClass(MetaClassRegistryImpl.java:356)      
at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:260)at org.codehaus.groovy.runtime.InvokerHelper.getMetaClass(InvokerHelper.java:728)      
at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:32)      
at groovy.lang.Script.<init>(Script.java:40)      
at groovy.lang.Script.<init>(Script.java:37)      
at Script1.<init>(Script1.groovy)

Environment

  • JBoss SOA-P
    • 5.2
    • 5.3.1

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