Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JBoss - Deadlock  RSS feed

 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. Sorry for my English.
Sometimes my Enterprise application on JBoss 3.2.6 throw exception:


Help pleas, what does it means? How to solve this problem?
Thanks You!
 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe that this link explains well what happened:

Application deadlock detected
 
Andris Sigs
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks You!

Can you please help me to explain this exception? Which beans is locked?

It is correct?:
One process locked BuildingChanger and wants to lock gn/City, but another process in same time locked gn/City and wants to lock gn/BuildingChanger?

Thanks You!
 
Edson Cezar
Ranch Hand
Posts: 119
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know whether it's totaly correct, but this is a possibility.

You have two beans City and State and two threads Country and Continent.

What is deadlock ?

A deadlock is a situation in which two or more competing actions are each waiting for the other to finish.

Deadlock

Thus, when you have Country trying acess to City (bean) and Continent trying acess to City too and Country don't finished yet then you have a deadlock.

In other words, you have two process trying acess to the same class, at the same time, it is a possibility.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!