[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Unabled to enlist resource, anyone?

merkkila do-not-reply at jboss.com
Mon Jul 9 11:12:17 EDT 2007


Has anyone seen this before?  Running on JBoss 4.0.5.GA, Oracle 9i. (using the 10.2.0.3 jdbc driver)


  | 2007-07-03 08:26:18,340 WARN  org.hibernate.exception.GenericJDBCException: Cannot open connection
  |   at   at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
  |   at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |   at com.bnpmedia.pubrunner.persistance.HibernateFilter.doFilter(HibernateFilter.java:39)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
  |   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  |   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  |   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  |   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  |   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
  |   at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:87)
  |   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
  |   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  |   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  |   at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
  |   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  |   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  |   at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
  |   at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
  |   at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
  |   at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
  |   at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
  |   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  |   at java.lang.Thread.run(Thread.java:613)
  | Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
  |   at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:103)
  |   at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:91)
  |   at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
  |   at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29)
  |   at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:426)
  |   at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:144)
  |   at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
  |   at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1547)
  |   at org.hibernate.loader.Loader.doQuery(Loader.java:673)
  |   at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
  |   at org.hibernate.loader.Loader.doList(Loader.java:2220)
  |   at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2104)
  |   at org.hibernate.loader.Loader.list(Loader.java:2099)
  |   at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
  |   at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1569)
  |   at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:283)
  |   ... 33 more
  | Caused by: org.jboss.util.NestedSQLException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=localhost/2356, BranchQual=, localId=2356]); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=localhost/2356, BranchQual=, localId=2356]))
  |   at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:94)
  |   at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:69)
  |   at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:423)
  |   ... 45 more
  | Caused by: org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=localhost/2356, BranchQual=, localId=2356])
  |   at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:329)
  |   at org.jboss.resource.connectionmanager.BaseConnectionManager2.reconnectManagedConnection(BaseConnectionManager2.java:518)
  |   at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:399)
  |   at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:842)
  |   at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:88)
  |   ... 47 more
  | Caused by: javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=localhost/2356, BranchQual=, localId=2356]
  |   at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener$TransactionSynchronization.checkEnlisted(TxConnectionManager.java:728)
  |   at org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener.enlist(TxConnectionManager.java:561)
  |   at org.jboss.resource.connectionmanager.TxConnectionManager.managedConnectionReconnected(TxConnectionManager.java:323)
  |   ... 51 more
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4062026#4062026

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4062026



More information about the jboss-user mailing list