Bugs item #897978, was opened at 2004-02-16 14:02
Message generated for change (Comment added) made by rafciom
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=897978&group_id=22866

Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Rafal Kedziorski (rafciom)
Assigned to: Alexey Loubyansky (loubyansky)
Summary: Deadlock problem

Initial Comment:
Hi,

since today I have problems with the actual JBoss
version from cvs (3.2.4RC1):

13:51:55,218 ERROR [LogInterceptor]
TransactionRolledbackLocalException in method: public
abstract java.lang.Integer net
.magix.ejb.setting.sessionbeans.SettingBeanLocal.getSettingValueAsIntegerBySystemGroupIdAndSettingName(java.lang.Integer
,java.lang.String) throws
net.magix.exception.ParameterException, causedBy:
org.jboss.util.deadlock.ApplicationDeadlockException:
Application deadlock detected,
resource=org.jboss.ejb.plugins.lock
[EMAIL PROTECTED],
bean=Setting_2_System_GroupBean, id=104, refs=2,
tx=TransactionImpl:XidImpl [FormatId
=257, GlobalId=prog-01//41, BranchQual=],
synched=Thread[TP-Processor2,5,jboss], timeout=5000,
queue=[], holder=Transact
ionImpl:XidImpl [FormatId=257, GlobalId=prog-01//36,
BranchQual=],
waitingResource=org.jboss.ejb.plugins.lock.QueuedPess
[EMAIL PROTECTED],
bean=Setting_2_System_GroupBean, id=105, refs=1,
tx=TransactionImpl:XidImpl [FormatId=257, Globa
lId=prog-01//36, BranchQual=], synched=null,
timeout=5000, queue=[],
waitingResourceHolder=TransactionImpl:XidImpl [Form
atId=257, GlobalId=prog-01//36, BranchQual=]
        at
org.jboss.util.deadlock.DeadlockDetector.deadlockDetection(DeadlockDetector.java:48)
        at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.waitForTx(QueuedPessimisticEJBLock.java:301)
        at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.doSchedule(QueuedPessimisticEJBLock.java:236)
        at
org.jboss.ejb.plugins.lock.QueuedPessimisticEJBLock.schedule(QueuedPessimisticEJBLock.java:183)
        at
org.jboss.ejb.plugins.EntityLockInterceptor.invoke(EntityLockInterceptor.java:85)
        at
org.jboss.ejb.plugins.EntityCreationInterceptor.invoke(EntityCreationInterceptor.java:54)
        at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:395)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:147)
        at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
        at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
        at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at
org.jboss.ejb.EntityContainer.internalInvoke(EntityContainer.java:489)
        at
org.jboss.ejb.Container.invoke(Container.java:700)
        at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
        at
org.jboss.ejb.plugins.local.EntityProxy.invoke(EntityProxy.java:38)
        at $Proxy224.getValue(Unknown Source)
        at
net.magix.ejb.setting.sessionbeans.SettingBean.getSettingValueAsObjectBySystemGroupIdAndSettingName(SettingBe
an.java:790)
        at
net.magix.ejb.setting.sessionbeans.SettingBean.getSettingValueAsIntegerBySystemGroupIdAndSettingName(SettingB
ean.java:579)
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
        at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)

        at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)

        at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:395)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:147)
        at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
        at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
        at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
        at
org.jboss.ejb.Container.invoke(Container.java:700)
        at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
        at
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
        at
$Proxy226.getSettingValueAsIntegerBySystemGroupIdAndSettingName(Unknown
Source)
        at
net.magix.ejb.register.sessionbeans.RegisterFacadeBean.registerUser(RegisterFacadeBean.java:435)
        at
net.magix.ejb.register.sessionbeans.RegisterFacadeBean.registerDemoUser(RegisterFacadeBean.java:367)
        at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:683)
        at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)

        at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72)

        at
org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:313)
        at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:147)
        at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:118)
        at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
        at
org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
        at
org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:331)
        at
org.jboss.ejb.Container.invoke(Container.java:700)
        at
org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:375)
        at
org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:83)
        at $Proxy251.registerDemoUser(Unknown Source)
        at
net.magix.web.DemoAccountServlet.processRequest(DemoAccountServlet.java:231)
        at
net.magix.web.DemoAccountServlet.doGet(DemoAccountServlet.java:149)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:257)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:66)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:184)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:578)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:567)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:206)
        at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:339)
        at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:415)
        at
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:716)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:650)
        at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:829)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:688)
        at java.lang.Thread.run(Thread.java:534)

We didn't have change our code. Entity Beans used in
this part, have row-locking = false. I think, this is a
JBoss Bug.


Regards,
Rafal

----------------------------------------------------------------------

>Comment By: Rafal Kedziorski (rafciom)
Date: 2004-03-17 23:56

Message:
Logged In: YES 
user_id=201737

but the same code was running without any problem on JBoss
3.2.2 and the JBoss 3.2.4RC1 bevore the deadlock problem
without any problem. I get the exception on one machine
onder load. We are using commit option C for the most of our
beans with row-locking.

This lines:

net.magix.ejb.setting.sessionbeans.SettingBean.getSettingValueAsObjectBySystemGroupIdAndSettingName(SettingBean.java:790)
at
net.magix.ejb.setting.sessionbeans.SettingBean.getSettingValueAsIntegerBySystemGroupIdAndSettingName(SettingBean.java:579)
at 

are getting an setting for an system group. under load (i.e.
creating much demo account on our system) we have to get
this setting which could'n be caches. therefore commit option C.

I would now try to develop with the current cvs version. If
I get the same exception, I will attach new comment to this bug.


Regards,
Rafal

----------------------------------------------------------------------

Comment By: Alexey Loubyansky (loubyansky)
Date: 2004-03-17 18:58

Message:
Logged In: YES 
user_id=543482

No. At least not intentionally. Usually, it is an
application problem  if this exception is thrown.
I can see some threading issues therefore this report is
still open.

----------------------------------------------------------------------

Comment By: Rafal Kedziorski (rafciom)
Date: 2004-03-17 18:46

Message:
Logged In: YES 
user_id=201737

I'm testing now the current JBoss 3.2.4RC2 version from cvs
and it seems to work. have you fix it?

----------------------------------------------------------------------

Comment By: Rafal Kedziorski (rafciom)
Date: 2004-03-07 01:16

Message:
Logged In: YES 
user_id=201737

hi Alex,

what is the status of the bugfix

----------------------------------------------------------------------

Comment By: Rafal Kedziorski (rafciom)
Date: 2004-02-17 12:56

Message:
Logged In: YES 
user_id=201737

thre is th esecond thread dump after new start of JBoss
owith other bean.

----------------------------------------------------------------------

Comment By: Rafal Kedziorski (rafciom)
Date: 2004-02-17 12:45

Message:
Logged In: YES 
user_id=201737

thread dump is attached.

----------------------------------------------------------------------

Comment By: Rafal Kedziorski (rafciom)
Date: 2004-02-17 09:50

Message:
Logged In: YES 
user_id=201737

how? I'm working under Windows 2000 with this version.

----------------------------------------------------------------------

Comment By: Alexey Loubyansky (loubyansky)
Date: 2004-02-17 02:13

Message:
Logged In: YES 
user_id=543482

Could you provide a thread dump when it is deadlocked?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=897978&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to