You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by Dhanush Gopinath <dh...@altair.com> on 2010/01/27 14:02:57 UTC

JTA Transaction Error while calling a receive activity Web Service

Hi,

I have deployed Apache ODE 1.3.3 on JBOSS 4.2.3 and have a process
deployed which is like this

 

RECEIVE->ASSIGN->INVOKE->RECEIVE->ASSIGN->INVOKE

 

I can start the process and it executes till the first invoke. When I
call the second RECEIVE activity by making a Web Service call I get this
exception thrown.

 

16:51:03,684 INFO  [STDOUT] DEBUG - GeronimoLog.debug(66) | Releasing
mex 75669

16:51:03,684 INFO  [STDOUT] ERROR - GeronimoLog.error(108) | Unable to
locate current JTA transaction

org.hibernate.HibernateException: Unable to locate current JTA
transaction

      at
org.hibernate.context.JTASessionContext.currentSession(JTASessionContext
.java:61)

      at
org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryIm
pl.java:544)

      at
org.apache.ode.daohib.SessionManager.getSession(SessionManager.java:104)

      at
org.apache.ode.daohib.bpel.HibernateDao.getSession(HibernateDao.java:69)

      at
org.apache.ode.daohib.bpel.MessageExchangeDaoImpl.deleteMessages(Message
ExchangeDaoImpl.java:373)

      at
org.apache.ode.daohib.bpel.MessageExchangeDaoImpl.release(MessageExchang
eDaoImpl.java:356)

      at
org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl.release(MyRoleMessa
geExchangeImpl.java:189)

      at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:22
1)

      at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMes
sageReceiver.java:69)

      at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMes
sageReceiver.java:63)

      at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessa
geReceiver.java:96)

 

 

Any idea why this is happening. The error is thrown when ODE tries to
get the DB session in the line 

deleteByIds(HLargeData.class,
getSession().getNamedQuery(HLargeData.SELECT_MESSAGE_LDATA_IDS_BY_MEX_1)
.setParameter("mex", _hself).list()); in the class
MessageExchangeDaoImp.java. Has this something to do with the DB
configuration I have made?

 

Please advise if somebody have come across this.

 

Thanks & Regards

Dhanush Gopinath