Microsoft
Software
Hardware
Network
Question : Application Deadlock Exception in JBOSS
Hi experts,
Iam facing an issue with jboss and ejbs. Iam getting the TransactionRolledBackLocal
Exception with one of my clients. The wierd thing is this happens not very often: Please find the stack trace below:
TransactionRolledbackLocal
Exception in method: public abstract java.lang.Integer com.cmt.tower.report.inter
faces.Repo
rtRecordLo
cal.getId(
), causedBy:
org.jboss.util.deadlock.Ap
plicationD
eadlockExc
eption: Application deadlock detected, resource=org.jboss.ejb.plu
gins.lock.
QueuedPess
imisticEJB
Lock@1441d
9b, bean=ReportRecord, id=10221, refs=2, tx=TransactionImpl:XidImpl
[FormatId=
257, GlobalId=production/173677
, BranchQual=, localId=173677], synched=Thread[http-0.0.0.
0-8080-9,5
,jboss], timeout=5000, queue=[], holder=TransactionImpl:Xid
Impl[Forma
tId=257, GlobalId=production/173675
, BranchQual=, localId=173675], waitingResource=org.jboss.
ejb.plugin
s.lock.Que
uedPessimi
sticEJBLoc
k@f3add0, bean=PersonRecord, id=19750, refs=2, tx=TransactionImpl:XidImpl
[FormatId=
257, GlobalId=production/173675
, BranchQual=, localId=173675], synched=null, timeout=5000, queue=[TXLOCK waitingTx=TransactionImpl:
XidImpl[Fo
rmatId=257
, GlobalId=production/173677
, BranchQual=, localId=173677] id=0 thread=Thread[http-0.0.0.0
-8080-6,5,
jboss] queued=true], waitingResourceHolder=Tran
sactionImp
l:XidImpl[
FormatId=2
57, GlobalId=production/173675
, BranchQual=, localId=173675]
at org.jboss.util.deadlock.De
adlockDete
ctor.deadl
ockDetecti
on(Deadloc
kDetector.
java:69)
at org.jboss.ejb.plugins.lock
.QueuedPes
simisticEJ
BLock.wait
ForTx(Queu
edPessimis
ticEJBLock
.java:292)
at org.jboss.ejb.plugins.lock
.QueuedPes
simisticEJ
BLock.doSc
hedule(Que
uedPessimi
sticEJBLoc
k.java:230
)
at org.jboss.ejb.plugins.lock
.QueuedPes
simisticEJ
BLock.sche
dule(Queue
dPessimist
icEJBLock.
java:194)
at org.jboss.ejb.plugins.Enti
tyLockInte
rceptor.in
voke(Entit
yLockInter
ceptor.jav
a:100)
at org.jboss.ejb.plugins.Enti
tyCreation
Intercepto
r.invoke(E
ntityCreat
ionInterce
ptor.java:
68)
at org.jboss.ejb.plugins.Call
Validation
Intercepto
r.invoke(C
allValidat
ionInterce
ptor.java:
63)
at org.jboss.ejb.plugins.Abst
ractTxInte
rceptor.in
vokeNext(A
bstractTxI
nterceptor
.java:121)
at org.jboss.ejb.plugins.TxIn
terceptorC
MT.runWith
Transactio
ns(TxInter
ceptorCMT.
java:350)
at org.jboss.ejb.plugins.TxIn
terceptorC
MT.invoke(
TxIntercep
torCMT.jav
a:181)
at org.jboss.ejb.plugins.Secu
rityInterc
eptor.invo
ke(Securit
yIntercept
or.java:16
8)
at org.jboss.ejb.plugins.LogI
nterceptor
.invoke(Lo
gIntercept
or.java:20
5)
at org.jboss.ejb.plugins.Prox
yFactoryFi
nderInterc
eptor.invo
ke(ProxyFa
ctoryFinde
rIntercept
or.java:13
6)
at org.jboss.ejb.EntityContai
ner.intern
alInvoke(E
ntityConta
iner.java:
527)
at org.jboss.ejb.Container.in
voke(Conta
iner.java:
954)
at org.jboss.ejb.plugins.loca
l.BaseLoca
lProxyFact
ory.invoke
(BaseLocal
ProxyFacto
ry.java:43
0)
at org.jboss.ejb.plugins.loca
l.EntityPr
oxy.invoke
(EntityPro
xy.java:65
)
at $Proxy167.getId(Unknown Source)
at com.cmt.tower.report.ejb.R
eportManag
erBean.ass
embleRepor
tObject(Re
portManage
rBean.java
:2651)
at com.cmt.tower.report.ejb.R
eportManag
erBean.fin
dReports(R
eportManag
erBean.jav
a:1304)
at sun.reflect.GeneratedMetho
dAccessor2
17.invoke(
Unknown Source)
at sun.reflect.DelegatingMeth
odAccessor
Impl.invok
e(Delegati
ngMethodAc
cessorImpl
.java:25)
at java.lang.reflect.Method.i
nvoke(Meth
od.java:58
5)
at org.jboss.invocation.Invoc
ation.perf
ormCall(In
vocation.j
ava:359)
at org.jboss.ejb.StatelessSes
sionContai
ner$Contai
nerInterce
ptor.invok
e(Stateles
sSessionCo
ntainer.ja
va:237)
at org.jboss.resource.connect
ionmanager
.CachedCon
nectionInt
erceptor.i
nvoke(Cach
edConnecti
onIntercep
tor.java:1
58)
at org.jboss.ejb.plugins.Stat
elessSessi
onInstance
Intercepto
r.invoke(S
tatelessSe
ssionInsta
nceInterce
ptor.java:
169)
at org.jboss.ejb.plugins.Call
Validation
Intercepto
r.invoke(C
allValidat
ionInterce
ptor.java:
63)
at org.jboss.ejb.plugins.Abst
ractTxInte
rceptor.in
vokeNext(A
bstractTxI
nterceptor
.java:121)
at org.jboss.ejb.plugins.TxIn
terceptorC
MT.runWith
Transactio
ns(TxInter
ceptorCMT.
java:350)