Announcement Announcement Module
Collapse
No announcement yet.
Exception while close connections in JBoss+Hibernate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception while close connections in JBoss+Hibernate

    Hi,

    I'm using CMT + Hibernate, in JBoss 3.2.5, and I'm getting the exception below, only on the first invocation of my EJBs.
    My session factory is configured as:
    Code:
    	<bean id="mySessionFactory" class="org.springframework.orm.hibernate.LocalSessionFactoryBean">
    		<property name="mappingResources">
    			<list>
    ..
    			</list>
    		</property>
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">net.sf.hibernate.dialect.SAPDBDialect</prop>
    				<prop key="hibernate.connection.datasource">java&#58;/TestDS</prop>
    				<prop key="hibernate.transaction.factory_class">net.sf.hibernate.transaction.JTATransactionFactory</prop>
    				<prop key="hibernate.transaction.manager_lookup_class">net.sf.hibernate.transaction.JBossTransactionManagerLookup</prop>
    		</property>
    	</bean>
    Is there some hint about this? The most strange part is that this happens only in the first use of my beans. The subsequent invocations works fine.

    Regards,
    Robson

    16:25:04,500 ERROR [TxConnectionManager] ResourceException while closing connection handle!
    org.jboss.resource.JBossResourceException: Error in delist!; - nested throwable: (java.lang.IllegalStateException: Already committed.)
    at org.jboss.resource.connectionmanager.BaseConnectio nManager2.rethrowAsResourceException(BaseConnectio nManager2.java:113)
    at org.jboss.resource.connectionmanager.TxConnectionM anager$TxConnectionEventListener.delist(TxConnecti onManager.java:493)
    at org.jboss.resource.connectionmanager.TxConnectionM anager$TxConnectionEventListener.connectionClosed( TxConnectionManager.java:537)
    at org.jboss.resource.adapter.jdbc.BaseWrapperManaged Connection.closeHandle(BaseWrapperManagedConnectio n.java:320)
    at org.jboss.resource.adapter.jdbc.WrappedConnection. close(WrappedConnection.java:114)
    at net.sf.hibernate.connection.DatasourceConnectionPr ovider.closeConnection(DatasourceConnectionProvide r.java:64)
    at net.sf.hibernate.impl.BatcherImpl.closeConnection( BatcherImpl.java:305)
    at net.sf.hibernate.impl.SessionImpl.disconnect(Sessi onImpl.java:3352)
    at net.sf.hibernate.impl.SessionImpl.close(SessionImp l.java:576)
    at org.springframework.orm.hibernate.SessionFactoryUt ils.closeSessionIfNecessary(SessionFactoryUtils.ja va:350)
    at org.springframework.orm.hibernate.SessionFactoryUt ils$SpringSessionSynchronization.beforeCompletion( SessionFactoryUtils.java:426)
    at org.springframework.orm.hibernate.SessionFactoryUt ils$JtaSessionSynchronization.afterCompletion(Sess ionFactoryUtils.java:492)
    at org.jboss.tm.TransactionImpl.doAfterCompletion(Tra nsactionImpl.java:1398)
    at org.jboss.tm.TransactionImpl.commit(TransactionImp l.java:421)
    at org.jboss.ejb.plugins.TxInterceptorCMT.endTransact ion(TxInterceptorCMT.java:456)
    at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTran sactions(TxInterceptorCMT.java:324)
    at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxIn terceptorCMT.java:148)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(S ecurityInterceptor.java:120)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInt erceptor.java:191)
    at org.jboss.ejb.plugins.ProxyFactoryFinderIntercepto r.invoke(ProxyFactoryFinderInterceptor.java:122)
    at org.jboss.ejb.StatelessSessionContainer.internalIn voke(StatelessSessionContainer.java:331)
    at org.jboss.ejb.Container.invoke(Container.java:723)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at org.jboss.mx.server.ReflectedDispatcher.dispatch(R eflectedDispatcher.java:60)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:61)
    at org.jboss.mx.server.Invocation.dispatch(Invocation .java:53)
    at org.jboss.mx.server.Invocation.invoke(Invocation.j ava:86)
    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(Ab stractMBeanInvoker.java:185)
    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanSe rverImpl.java:473)
    at org.jboss.invocation.jrmp.server.JRMPInvoker.invok e(JRMPInvoker.java:360)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at sun.rmi.server.UnicastServerRef.dispatch(UnicastSe rverRef.java:261)
    at sun.rmi.transport.Transport$1.run(Transport.java:1 48)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport. java:144)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages( TCPTransport.java:460)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandl er.run(TCPTransport.java:701)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: java.lang.IllegalStateException: Already committed.
    at org.jboss.tm.TransactionImpl.delistResource(Transa ctionImpl.java:529)
    at org.jboss.resource.connectionmanager.TxConnectionM anager$TxConnectionEventListener.delist(TxConnecti onManager.java:486)
    ... 42 more

  • #2
    I just found at http://www.jboss.org/index.html?modu...wtopic&t=53321 that that this error is just noise. It is fixed in JBoss 3.2.6.

    Thanks,
    Robson

    Comment

    Working...
    X