-->
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.  [ 1 post ] 
Author Message
 Post subject: Trying to return an unknown connection2!
PostPosted: Fri Nov 19, 2004 1:24 pm 
Newbie

Joined: Thu Sep 30, 2004 1:42 pm
Posts: 4
I am using the CVS JBOSS 3.2 branch.

I am truying something like this.

In an EJB that then calls another EJB, with transaction type set to Manitory, I have

sess = HibernateContext.getSession("java:/hibernate/SessionFactory"));
sess.save(object);

When I exit the first EJB I get
I get the following backtrace

INFO [TxConnectionManager] throwable from unregister connection
java.lang.IllegalStateException: Trying to return an unknown connection2! org.j
boss.resource.adapter.jdbc.WrappedConnection@326074
at org.jboss.resource.connectionmanager.CachedConnectionManager.unregis
terConnection(CachedConnectionManager.java:369)
at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectio
nEventListener.connectionClosed(TxConnectionManager.java:507)
at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.closeHa
ndle(BaseWrapperManagedConnection.java:320)
at org.jboss.resource.adapter.jdbc.WrappedConnection.close(WrappedConne
ction.java:123)
at net.sf.hibernate.connection.DatasourceConnectionProvider.closeConnec
tion(DatasourceConnectionProvider.java:64)
at net.sf.hibernate.impl.BatcherImpl.closeConnection(BatcherImpl.java:3
05)
at net.sf.hibernate.impl.SessionImpl.disconnect(SessionImpl.java:3352)
at net.sf.hibernate.impl.SessionImpl.close(SessionImpl.java:576)
at org.jboss.hibernate.session.TransactionSynch.afterCompletion(Transac
tionSynch.java:71)
at org.jboss.tm.TransactionImpl.doAfterCompletion(TransactionImpl.java:
1398)
at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:421)
at org.jboss.ejb.plugins.TxInterceptorCMT.endTransaction(TxInterceptorC
MT.java:458)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterce
ptorCMT.java:326)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:
150)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor
.java:111)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFact
oryFinderInterceptor.java:122)
at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSess
ionContainer.java:331)
at org.jboss.ejb.Container.invoke(Container.java:709)
at sun.reflect.GeneratedMethodAccessor53.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcce
ssorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher
.java:60)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker
.java:197)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:97)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.ja
va:96)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor
.java:46)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:
55)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSess
ionInterceptor.java:100)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85)
at $Proxy279.createB3Event(Unknown Source)
at com.candata.cadex.ejb.CCRATransmissionBean.sendG7Processing(Unknown
Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


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

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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.