-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: Unexpected exception while enlisting XAConnection
PostPosted: Fri May 27, 2005 11:05 am 
Newbie

Joined: Fri May 27, 2005 11:00 am
Posts: 3
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)


Top
 Profile  
 
 Post subject: Fixed - never mind!
PostPosted: Fri May 27, 2005 3:06 pm 
Newbie

Joined: Fri May 27, 2005 11:00 am
Posts: 3
It turned out to be a problem with my connection pool settings.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 07, 2005 7:22 am 
Newbie

Joined: Thu Apr 08, 2004 4:28 am
Posts: 16
Hi,

I've the same problem. What have you changed at setting of the Bea Weblogic connections pools ?

Thanks in advance!

Joris


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 07, 2005 8:42 am 
Newbie

Joined: Fri May 27, 2005 11:00 am
Posts: 3
I dont know what exactly the problem was, but here are the settings that work...

<JDBCConnectionPool CapacityIncrement="1"
DriverName="oracle.jdbc.xa.client.OracleXADataSource"
InitialCapacity="5" KeepXAConnTillTxComplete="true"
MaxCapacity="20" Name="testPool"
PasswordEncrypted="{3DES}OdLNj9hTWfTLjXMvLrFbJQ=="
Properties="user=prototype" RefreshMinutes="0"
ShrinkPeriodMinutes="15" ShrinkingEnabled="true"
SupportsLocalTransaction="true" Targets="cgServer"
TestConnectionsOnRelease="false"
TestConnectionsOnReserve="false"
TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:oracle:thin:@localhost:1521:ganesh"/>


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 21, 2005 4:08 am 
Newbie

Joined: Fri Apr 16, 2004 11:48 am
Posts: 18
Hi,

Could you please post your Hibernate Config please?

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.