File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes HeuristicHazard Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "HeuristicHazard " Watch "HeuristicHazard " New topic
Author

HeuristicHazard

Hardy Chou
Greenhorn

Joined: Jun 27, 2001
Posts: 27
Hi all,

We've got HeuristicHazard error coming out together with explanation saying that it's due to connection time out. The application was built by Weblogic Workshop 8.1 SP3. We're using Weblogic Server 8.1 SP3, Oracle 9.2 on Weblogic's Oracle non-XA driver. I'd appreciate any help. Below is the error stack trace.

2005-06-16 02:01:18,317 || Validator||processInboundTransaction||TransactionID:20763379||Heuristic hazard: (weblogic.jdbc.wrap
per.JTSXAResourceImpl, HeuristicHazard, (javax.transaction.xa.XAException: Io exception: Connection timed out))
javax.transaction.SystemException: Heuristic hazard: (weblogic.jdbc.wrapper.JTSXAResourceImpl, HeuristicHazard, (javax.transac
tion.xa.XAException: Io exception: Connection timed out))
at weblogic.transaction.internal.ServerTransactionImpl.internalRollback(ServerTransactionImpl.java:396)
at weblogic.transaction.internal.ServerTransactionImpl.rollback(ServerTransactionImpl.java:362)
at weblogic.transaction.internal.TransactionManagerImpl.rollback(TransactionManagerImpl.java:320)
at com.starhub.rapid.ejb.ValidatorBean.processInboundTransaction(ValidatorBean.java:323)
at com.starhub.rapid.ejb.ValidatorBean_s6mmv4_ELOImpl.processInboundTransaction(ValidatorBean_s6mmv4_ELOImpl.java:99)
at com.starhub.rapid.ejb.ValidatorMessenger.onMessage(ValidatorMessenger.java:68)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:370)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:262)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2678)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2598)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
 
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
Check if any of your entity bean methods has the transaction property set to Required or Mandatory or RequiresNew. Someone tell me is it Okay to use Non-XA drivers in application that uses Entity Beans?
Hardy Chou
Greenhorn

Joined: Jun 27, 2001
Posts: 27
All the entity bean are set to Mandatory.

Originally posted by Purushothaman Thambu:
Check if any of your entity bean methods has the transaction property set to Required or Mandatory or RequiresNew. Someone tell me is it Okay to use Non-XA drivers in application that uses Entity Beans?
Purushoth Thambu
Ranch Hand

Joined: May 24, 2003
Posts: 425
If the bean transactions property are set to Mandatory how will it be possible to use Oracle non-xta driver ? I am not sure though.. double check with some other driver with XTA support.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HeuristicHazard