title: java.sql.SQLRecoverableException: Connection has been administratively disabled by console/admin command
body: <p>We are getting the following error in a Spring/myBatis application that is deployed to Weblogic 12c </p>
  
  <p>ERROR LoggingAspect                   - Exception : org.springframework.dao.RecoverableDataAccessException:</p>
  
  <h3>Error querying database.  Cause: java.sql.SQLRecoverableException: Connection has been administratively disabled by console/admin command. Try later. java.lang.Exception: It was disabled at Thu Sep 18 12:17:20 CDT 2014</h3>
  
  <pre><code>    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)
  </code></pre>
  
  <p>This application is being developed on Tomcat and is working fine in the development environment.  </p>
  
  <p>Thanks,</p>
  
  <p>Tom</p>