Hi,
I am using Weblogic 8.1 sp4 / Oracle 9.2.0.6 and Hibernate 3.0.4
The XA connection pool supports local transactions.
The application is able to retrieve the SessionFactory from JNDI and create a session from it.
But I invoke the session.save() method, I am getting the following error.
I havent used Hibernate before and I suspect its some simple configuration problem.
Any suggestions?
Thanks
Sekhar Atteri
______________________________________________________
Unexpected exception while enlisting XAConnection java.sql.SQLException: Transaction rolled back: Transaction timed out after 30 seconds
Name=[EJB com.dst.das.facade.createLoan.CreateLoanBean.createLoan(com.dst.das.model.LoanRequest)],Xid=BEA1-000C81B682D6(7060391),Status=Active,numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=30,seconds left=30,activeThread=Thread[ExecuteThread: '13' for queue: 'weblogic.kernel.Default',5,Thread Group for Queue: 'weblogic.kernel.Default'],SCInfo[mydomain+cgServer]=(state=active),properties=({weblogic.transaction.name=[EJB com.dst.das.facade.createLoan.CreateLoanBean.createLoan(com.dst.das.model.LoanRequest)]}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=cgServer+192.200.15.131:7001+mydomain+t3+, XAResources={},NonXAResources={})])
at weblogic.jdbc.jta.DataSource.enlist(Lweblogic.transaction.Transaction;)V(DataSource.java:1404)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(Lweblogic.jdbc.wrapper.XAConnection;Lweblogic.jdbc.wrapper.JTAConnection;Z)Lweblogic.jdbc.wrapper.XAConnection;(DataSource.java:1334)
at weblogic.jdbc.jta.DataSource.getConnection()Ljava.sql.Connection;(DataSource.java:396)
at weblogic.jdbc.jta.DataSource.connect(Ljava.lang.String;Ljava.util.Properties;)Ljava.sql.Connection;(DataSource.java:354)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection()Ljava.sql.Connection;(RmiDataSource.java:305)
at org.hibernate.connection.DatasourceConnectionProvider.getConnection()Ljava.sql.Connection;(DatasourceConnectionProvider.java:59)
at org.hibernate.jdbc.AbstractBatcher.openConnection()Ljava.sql.Connection;(AbstractBatcher.java:424)
at org.hibernate.jdbc.JDBCContext.connect()V(JDBCContext.java:168)
at org.hibernate.jdbc.JDBCContext.connection()Ljava.sql.Connection;(JDBCContext.java:103)
at org.hibernate.jdbc.AbstractBatcher.prepareSelectStatement(Ljava.lang.String;)Ljava.sql.PreparedStatement;(AbstractBatcher.java:80)
at org.hibernate.id.SequenceGenerator.generate(Lorg.hibernate.engine.SessionImplementor;Ljava.lang.Object;)Ljava.io.Serializable;(SequenceGenerator.java:73)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(Ljava.lang.Object;Ljava.lang.String;Ljava.lang.Object;Lorg.hibernate.engine.SessionImplementor;)Ljava.io.Serializable;(AbstractSaveEventListener.java:85)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(Lorg.hibernate.event.SaveOrUpdateEvent;)Ljava.io.Serializable;(DefaultSaveOrUpdateEventListener.java:184)
at org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(Lorg.hibernate.event.SaveOrUpdateEvent;)Ljava.io.Serializable;(DefaultSaveEventListener.java:33)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(Lorg.hibernate.event.SaveOrUpdateEvent;)Ljava.io.Serializable;(DefaultSaveOrUpdateEventListener.java:173)
at org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(Lorg.hibernate.event.SaveOrUpdateEvent;)Ljava.io.Serializable;(DefaultSaveEventListener.java:27)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(Lorg.hibernate.event.SaveOrUpdateEvent;)Ljava.io.Serializable;(DefaultSaveOrUpdateEventListener.java:69)
at org.hibernate.impl.SessionImpl.save(Ljava.lang.String;Ljava.lang.Object;)Ljava.io.Serializable;(SessionImpl.java:477)
at org.hibernate.impl.SessionImpl.save(Ljava.lang.Object;)Ljava.io.Serializable;(SessionImpl.java:472)
at com.dst.core.dao.BaseDAO.save(Lcom.dst.wms.model.BaseVO;)V(BaseDAO.java:220)
at com.dst.das.facade.createLoan.CreateLoanBean.createLoan(Lcom.dst.das.model.LoanRequest;)V(CreateLoanBean.java:77)
at com.dst.das.facade.createLoan.createLoan_ixv18o_EOImpl.createLoan(Lcom.dst.das.model.LoanRequest;)V(createLoan_ixv18o_EOImpl.java:46)
at com.dst.das.facade.createLoan.createLoan_ixv18o_EOImpl_WLSkel.invoke(I[Ljava.lang.Object;Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at weblogic.rmi.internal.ServerRequest.sendReceive()Lweblogic.rmi.spi.InboundResponse;(ServerRequest.java:166)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(Lweblogic.rmi.extensions.server.RemoteReference;Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;[Ljava.lang.Object;Ljava.lang.reflect.Method;)Ljava.lang.Object;(ReplicaAwareRemoteRef.java:290)
at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(Ljava.rmi.Remote;Lweblogic.rmi.extensions.server.RuntimeMethodDescriptor;[Ljava.lang.Object;Ljava.lang.reflect.Method;)Ljava.lang.Object;(ReplicaAwareRemoteRef.java:247)
at com.dst.das.facade.createLoan.createLoan_ixv18o_EOImpl_814_WLStub.createLoan(Lcom.dst.das.model.LoanRequest;)V(Unknown Source)
at com.dst.das.facade.createLoan.CreateLoanClientAgent.createLoanRequest(Lcom.dst.das.model.LoanRequest;)V(CreateLoanClientAgent.java:47)
at com.dst.das.test.facade.createLoan.CreateLoanTest.testCreateLoan()V(CreateLoanTest.java:60)
at jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
|