0

获取 javax.resource.ResourceException:IJ000460:错误检查事务,当执行以下代码时

Query query = entityManager.createQuery("select lower(name) FROM Attribute");
List temp= query.getResultList();

例外是

17:15:27,838 WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper]
(http-localhost-127.0.0.1-8080-2) SQL Error: 0, SQLState: null
17:15:27,841 ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] 
(http-localhost-127.0.0.1-8080-2) javax.resource.ResourceException: IJ000460: 
Error checking for a transaction
17:15:27,845 ERROR [com.dao.impl.AttributeDaoImpl] 
(http-localhost-127.0.0.1-8080-2) org.hibernate.exception.GenericJDBCException: 
Could not open connection

这种异常并不常见。我无法得到正确的提示。

提前致谢

4

0 回答 0