gpt4 book ai didi

java.sql.SQLRecoverableException : Connection has been administratively disabled by console/admin command 错误

转载 作者:行者123 更新时间:2023-11-28 23:34:26 26 4
gpt4 key购买 nike

我们在部署到 Weblogic 12c 的 Spring/myBatis 应用程序中遇到以下错误

错误 LoggingAspect - 异常:org.springframework.dao.RecoverableDataAccessException:

查询数据库时出错。原因:java.sql.SQLRecoverableException:连接已被控制台/管理命令以管理方式禁用。稍后再试。 java.lang.Exception:它在 Thu Sep 18 12:17:20 CDT 2014 被禁用

    at weblogic.jdbc.common.internal.ConnectionEnv.disable(ConnectionEnv.java:380)
at weblogic.jdbc.wrapper.JDBCWrapperImpl.removeConnFromPoolIfFatalError(JDBCWrapperImpl.java:159)
at weblogic.jdbc.wrapper.XAConnection.invocationExceptionHandler(XAConnection.java:167)
at weblogic.jdbc.wrapper.XAConnection.rollback(XAConnection.java:892)
at weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.java:113)
at weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.java:74)
at weblogic.jdbc.wrapper.Connection.preInvocationHandler(Connection.java:98)
at weblogic.jdbc.wrapper.JTAConnection.getAutoCommit(JTAConnection.java:347)
at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:84)
at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:69)
at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:271)
at org.apache.ibatis.executor.ReuseExecutor.prepareStatement(ReuseExecutor.java:72)
at org.apache.ibatis.executor.ReuseExecutor.doQuery(ReuseExecutor.java:53)
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:259)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:132)
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:115)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:104)
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:98)

此应用程序是在 Tomcat 上开发的,并且在开发环境中运行良好。

谢谢,

汤姆

最佳答案

事实证明,当我们在这个环境中真正需要标准 JDBC 驱动程序时,我们已经将 XA 驱动程序 JDBC 部署到 Weblogic 12C。

谢谢,

汤姆

关于java.sql.SQLRecoverableException : Connection has been administratively disabled by console/admin command 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25921000/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com