我正在使用openjdk version "11.0.2" 2019-01-15
和Wildfly 16.0.0.Final
。
在我的应用程序中,从数据库中获取记录列表时,出现以下错误:
15:39:50,188 INFO [org.jboss.jca.core.connectionmanager.listener.TxConnectionListener] (default task-2) IJ000311: Throwable from unregister connection: java.lang.IllegalStateException: IJ000152: Trying to return an unknown connection: org.jboss.jca.adapters.jdbc.jdk8.WrappedConnectionJDK8@491c4569
at org.jboss.ironjacamar.impl@1.4.12.Final//org.jboss.jca.core.connectionmanager.ccm.CachedConnectionManagerImpl.unregisterConnection(CachedConnectionManagerImpl.java:408)
at org.jboss.ironjacamar.impl@1.4.12.Final//org.jboss.jca.core.connectionmanager.listener.TxConnectionListener.connectionClosed(TxConnectionListener.java:645)
at org.jboss.ironjacamar.jdbcadapters@1.4.12.Final//org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.returnHandle(BaseWrapperManagedConnection.java:597)
at org.jboss.ironjacamar.jdbcadapters@1.4.12.Final//org.jboss.jca.adapters.jdbc.BaseWrapperManagedConnection.closeHandle(BaseWrapperManagedConnection.java:542)
at org.jboss.ironjacamar.jdbcadapters@1.4.12.Final//org.jboss.jca.adapters.jdbc.WrappedConnection.returnConnection(WrappedConnection.java:303)
at org.jboss.ironjacamar.jdbcadapters@1.4.12.Final//org.jboss.jca.adapters.jdbc.WrappedConnection.close(WrappedConnection.java:261)
at org.hibernate@5.3.9.Final//org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.closeConnection(DatasourceConnectionProviderImpl.java:127)
at org.hibernate@5.3.9.Final//org.hibernate.internal.NonContextualJdbcConnectionAccess.releaseConnection(NonContextualJdbcConnectionAccess.java:46)
at org.hibernate@5.3.9.Final//org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.releaseConnection(LogicalConnectionManagedImpl.java:196)
at org.hibernate@5.3.9.Final//org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.afterTransaction(LogicalConnectionManagedImpl.java:162)
at org.hibernate@5.3.9.Final//org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.afterTransaction(JdbcCoordinatorImpl.java:288)
at org.hibernate@5.3.9.Final//org.hibernate.internal.SessionImpl.afterOperation(SessionImpl.java:574)
at org.hibernate@5.3.9.Final//org.hibernate.internal.SessionImpl.list(SessionImpl.java:1512)
at org.hibernate@5.3.9.Final//org.hibernate.query.internal.AbstractProducedQuery.doList(AbstractProducedQuery.java:1537)
at org.hibernate@5.3.9.Final//org.hibernate.query.internal.AbstractProducedQuery.list(AbstractProducedQuery.java:1505)
at org.hibernate@5.3.9.Final//org.hibernate.query.Query.getResultList(Query.java:132)
at deployment.amft.war//com.mysema.query.hql.jpa.AbstractJPAQuery.list(AbstractJPAQuery.java:145)
我正在使用OpenJDK-11,但为什么会错误地将其提供给JDK8:
Trying to return an unknown connection: org.jboss.jca.adapters.jdbc.jdk8.WrappedConnectionJDK8
。
检查以上错误以供参考。
请帮助我解决此错误。
休眠版本-5.3.9.Final
WildFly-最终16.0.0。
春季-3.2.2。发布 谢谢。