title: IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: Could not create connection
body: <p>I'm getting following error for <strong><em>DB</em></strong>,- <code>Test Connection</code> on <code>JBoss Application Console</code>.</p>
  
  <pre><code>&gt; 13:04:26,089 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (HttpManagementService-threads - 4) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: Could not create connection
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:324) [ironjacamar-jdbc-1.0.26.Final-redhat-1.jar:1.0.26.Final-redhat-1]
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:281) [ironjacamar-jdbc-1.0.26.Final-redhat-1.jar:1.0.26.Final-redhat-1]
      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.createConnectionEventListener(SemaphoreArrayListManagedConnectionPool.java:842) [ironjacamar-core-impl-1.0.26.Final-redhat-1.jar:1.0.26.Final-redhat-1]
      at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreArrayListManagedConnectionPool.getConnection(SemaphoreArrayListManagedConnectionPool.java:386) [ironjacamar-core-impl-1.0.26.Final-redhat-1.jar:1.0.26.Final-redhat-1]
      at org.jboss.jca.core.connectionmanager.pool.AbstractPool.internalTestConnection(AbstractPool.java:686) [ironjacamar-core-impl-1.0.26.Final-redhat-1.jar:1.0.26.Final-redhat-1]
      at org.jboss.jca.core.connectionmanager.pool.strategy.OnePool.testConnection(OnePool.java:89) [ironjacamar-core-impl-1.0.26.Final-redhat-1.jar:1.0.26.Final-redhat-1]
      at org.jboss.as.connector.subsystems.common.pool.PoolOperations$TestConnectionInPool.invokeCommandOn(PoolOperations.java:143) [jboss-as-connector-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.connector.subsystems.common.pool.PoolOperations$1.execute(PoolOperations.java:82) [jboss-as-connector-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:611) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:489) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:290) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:285) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1132) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:251) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:152) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:474) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.controller.ModelControllerImpl$3.execute(ModelControllerImpl.java:464) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.domain.http.server.DomainApiHandler.processRequest(DomainApiHandler.java:263)
      at org.jboss.as.domain.http.server.DomainApiHandler.doHandle(DomainApiHandler.java:167)
      at org.jboss.as.domain.http.server.DomainApiHandler.handle(DomainApiHandler.java:174)
      at org.jboss.as.domain.http.server.security.SubjectAssociationHandler$1.run(SubjectAssociationHandler.java:69)
      at org.jboss.as.domain.http.server.security.SubjectAssociationHandler$1.run(SubjectAssociationHandler.java:65)
      at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.7.0_80]
      at javax.security.auth.Subject.doAs(Subject.java:415) [rt.jar:1.7.0_80]
      at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:94) [jboss-as-controller-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19]
      at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handleRequest(SubjectAssociationHandler.java:65)
      at org.jboss.as.domain.http.server.security.SubjectAssociationHandler.handle(SubjectAssociationHandler.java:59)
      at org.jboss.as.domain.http.server.DomainApiCheckHandler.handle(DomainApiCheckHandler.java:45)
      at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
      at org.jboss.sun.net.httpserver.AuthFilter.doFilter(AuthFilter.java:69)
      at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
      at org.jboss.sun.net.httpserver.ServerImpl$Exchange$LinkHandler.handle(ServerImpl.java:710)
      at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:78)
      at org.jboss.as.domain.http.server.RealmReadinessFilter.doFilter(RealmReadinessFilter.java:47)
      at org.jboss.as.domain.http.server.DmrFailureReadinessFilter.doFilter(DmrFailureReadinessFilter.java:45)
      at org.jboss.com.sun.net.httpserver.Filter$Chain.doFilter(Filter.java:81)
      at org.jboss.sun.net.httpserver.ServerImpl$Exchange.run(ServerImpl.java:682)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_80]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_80]
      at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_80]
      at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.1.Final-redhat-1.jar:2.1.1.Final-redhat-1]
  Caused by: java.sql.SQLRecoverableException: IO Error: Connection reset
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:428)
      at oracle.jdbc.driver.PhysicalConnection.&lt;init&gt;(PhysicalConnection.java:536)
      at oracle.jdbc.driver.T4CConnection.&lt;init&gt;(T4CConnection.java:228)
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
      at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:296) [ironjacamar-jdbc-1.0.26.Final-redhat-1.jar:1.0.26.Final-redhat-1]
      ... 40 more
  Caused by: java.net.SocketException: Connection reset
      at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118) [rt.jar:1.7.0_80]
      at java.net.SocketOutputStream.write(SocketOutputStream.java:159) [rt.jar:1.7.0_80]
      at oracle.net.ns.Packet.send(Packet.java:386)
      at oracle.net.ns.ConnectPacket.send(ConnectPacket.java:182)
      at oracle.net.ns.NSProtocol.connect(NSProtocol.java:284)
      at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1054)
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
      ... 45 more
  </code></pre>
  
  <p>Here is standalone.xml configuration...</p>
  
  <pre><code> &lt;subsystem xmlns="urn:jboss:domain:datasources:1.2"&gt;
          &lt;datasources&gt;
              &lt;datasource jndi-name="java:/jdbc/pcbDB" pool-name="pcbdb" enabled="true"&gt;
                  &lt;connection-url&gt;jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=off)(ADDRESS=(PROTOCOL=TCP)(HOST=dev-scan.dev.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=CBSMSBLDEV)(SERVER=DEDICATED)))&lt;/connection-url&gt;
                  &lt;driver&gt;com.oracle&lt;/driver&gt;
                  &lt;pool&gt;
                      &lt;min-pool-size&gt;11&lt;/min-pool-size&gt;
                      &lt;max-pool-size&gt;20&lt;/max-pool-size&gt;
                      &lt;use-strict-min&gt;false&lt;/use-strict-min&gt;
                      &lt;flush-strategy&gt;FailingConnectionOnly&lt;/flush-strategy&gt;
                  &lt;/pool&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;cbsmsbldev&lt;/user-name&gt;
                      &lt;password&gt;TechM1234&lt;/password&gt;
                  &lt;/security&gt;
                  &lt;validation&gt;
                      &lt;exception-sorter class-name="org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter"/&gt;
                  &lt;/validation&gt;
                  &lt;timeout&gt;
                      &lt;blocking-timeout-millis&gt;5000&lt;/blocking-timeout-millis&gt;
                      &lt;idle-timeout-minutes&gt;5&lt;/idle-timeout-minutes&gt;
                  &lt;/timeout&gt;
              &lt;/datasource&gt;
              &lt;datasource jndi-name="java:/jdbc/pcbScheduler" pool-name="pcbscheduler" enabled="true"&gt;
                  &lt;connection-url&gt;jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=off)(ADDRESS=(PROTOCOL=TCP)(HOST=dev-scan.dev.com)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=CBSMSBLDEV)(SERVER=DEDICATED)))&lt;/connection-url&gt;
                  &lt;driver&gt;com.oracle&lt;/driver&gt;
                  &lt;pool&gt;
                      &lt;min-pool-size&gt;11&lt;/min-pool-size&gt;
                      &lt;max-pool-size&gt;20&lt;/max-pool-size&gt;
                  &lt;/pool&gt;
                  &lt;security&gt;
                      &lt;user-name&gt;cbsmsbldev&lt;/user-name&gt;
                      &lt;password&gt;TechM1234&lt;/password&gt;
                  &lt;/security&gt;
                  &lt;timeout&gt;
                      &lt;blocking-timeout-millis&gt;5000&lt;/blocking-timeout-millis&gt;
                      &lt;idle-timeout-minutes&gt;5&lt;/idle-timeout-minutes&gt;
                  &lt;/timeout&gt;
              &lt;/datasource&gt;
              &lt;drivers&gt;
                  &lt;driver name="com.oracle" module="com.oracle"&gt;
                      &lt;driver-class&gt;oracle.jdbc.driver.OracleDriver&lt;/driver-class&gt;
                  &lt;/driver&gt;
              &lt;/drivers&gt;
          &lt;/datasources&gt;
   &lt;/subsystem&gt;
  </code></pre>
  
  <p>Please advise on what would be the cause for this issue.</p>
  
  <p>I had success for the same configuration in other environment. I do not know why I am getting this problem now. Host,- <code>dev-scan.dev.com</code> and port 1521 is accessible to JBoss Application Server system.</p>