title: Infinite loop on jboss7 when have a database exception
body: <p>I have a maven project, where I have used ejb6 and jboss 7 application server. When there is an exception related to database activity, the jboss log enters into an infinite loop, as a result the processor and the memory usage increases to 100%.</p>
  
  <p>For example, if I try to retrieve one object but there are two objects in the result, I have an exception of unique result, but instead of printing once, the exception continues to be printed.</p>
  
  <p>In my github I have my application with this problem.: <a href="https://github.com/alanj2diniz/ejb-loop-jboss-7" rel="nofollow">https://github.com/alanj2diniz/ejb-loop-jboss-7</a></p>
  
  <p>[Removed, external link has no relevance here]</p>