title: Destroying connection that could not be successfully matched : Error in jboss while connecting with Database
body: <p>Modified: I am using Jboss 7 server and oracle 10g for my web Application but when I starting the server application working properly but after 2 or 3 hours it is becoming slow.</p>
  
  <p>I guessed like.
  1. connection is not happening between database and jboss server properly so that it is not fetching data, so cause of this it becoming slow.</p>
  
  <p>Datasource information in my standalone-full.xml file in jboss server is below:</p>
  
  <pre><code>  &lt;datasources&gt;
                  &lt;datasource jndi-name="java:/TTKConnectionDataSource" pool-name="TTKConnectionDataSourcePool" enabled="true" use-java-context="true" use-ccm="false"&gt;
                      &lt;connection-url&gt;jdbc:oracle:thin:@10.1.0.112:1521:vidaltest&lt;/connection-url&gt;
                      &lt;driver-class&gt;oracle.jdbc.OracleDriver&lt;/driver-class&gt;
                      &lt;driver&gt;oracle&lt;/driver&gt;
                      &lt;transaction-isolation&gt;TRANSACTION_READ_COMMITTED&lt;/transaction-isolation&gt;
                      &lt;pool&gt;
                          &lt;min-pool-size&gt;5&lt;/min-pool-size&gt;
                          &lt;max-pool-size&gt;150&lt;/max-pool-size&gt;
                          &lt;prefill&gt;true&lt;/prefill&gt;
                          &lt;use-strict-min&gt;true&lt;/use-strict-min&gt;
                          &lt;flush-strategy&gt;FailingConnectionOnly&lt;/flush-strategy&gt;
                      &lt;/pool&gt;
                      &lt;security&gt;
                          &lt;user-name&gt;appln&lt;/user-name&gt;
                          &lt;password&gt;appln&lt;/password&gt;
                      &lt;/security&gt;
                      &lt;validation&gt;
                          &lt;valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"/&gt;
                          &lt;validate-on-match&gt;true&lt;/validate-on-match&gt;
                          &lt;background-validation-millis&gt;300000&lt;/background-validation-millis&gt;
                          &lt;stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"/&gt;
                          &lt;exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"/&gt;
                      &lt;/validation&gt;
                      &lt;timeout&gt;
                          &lt;idle-timeout-minutes&gt;10&lt;/idle-timeout-minutes&gt;
                      &lt;/timeout&gt;
                  &lt;/datasource&gt;
  </code></pre>
  
  <p>And error what I am getting during slow down of server :</p>
  
  <pre><code>11:31:04,689 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (http-web-10) IJ000612: Destroying connection that could not be successfully matched: org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@323ff8fa[state=DESTROYED managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@62b2c9f connection handles=0 lastUse=1494391408674 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@547ac048 pool internal context=SemaphoreArrayListManagedConnectionPool@46e5e24c[pool=TTKConnectionDataSourcePool] xaResource=LocalXAResourceImpl@1e6c0ff1[connectionListener=323ff8fa connectionManager=488aa6d1 warned=false currentXid=null] txSync=null]
  11:37:09,075 INFO  [com.ttk.action.claims.TTKListener] (http-web-20) Session is created sessionCreated
  11:37:09,078 ERROR [org.apache.struts.actions.DispatchAction] (http-web-20) Request[/LoginAction] does not contain handler parameter named 'mode'.  This may be caused by whitespace in the label text.
  11:46:35,964 WARN  [org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory] (http-web-10) Destroying connection that is not valid, due to the following exception: oracle.jdbc.driver.T4CConnection@5b8b1ccb: java.sql.SQLException: pingDatabase failed status=-1
      at org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker.isValidConnection(OracleValidConnectionChecker.java:74) [ironjacamar-jdbc-1.0.12.Final.jar:1.0.12.Final]
  
  05: Connection error occured: org.jboss.jca.core.connectionmanager.listener.TxConnectionListener@38b370[state=NORMAL managed connection=org.jboss.jca.adapters.jdbc.local.LocalManagedConnection@a8c7e2d connection handles=0 lastUse=1494390662156 trackByTx=false pool=org.jboss.jca.core.connectionmanager.pool.strategy.OnePool@547ac048 pool internal context=SemaphoreArrayListManagedConnectionPool@46e5e24c[pool=TTKConnectionDataSourcePool] xaResource=LocalXAResourceImpl@dafc1c4[connectionListener=38b370 connectionManager=488aa6d1 warned=false currentXid=null] txSync=null]: java.sql.SQLException: pingDatabase failed status=-1
  </code></pre>
  
  <p>when I am restarting server than connection is fine up to 2 or 3 hours maximum after that server again becoming slowdown ,Please suggest me what are the possibilities to overcome on this issue.</p>
  
  <p>Thanks in advance.</p>
  
  <p>sorry for disturbance, but again I am facing this problem actually what is happening ? when my server become slowdown then it's not allowing me to login its keep on buffering because its not connecting with my database as i think or may be its not getting connection object. and after some time of buffering its giving warning message what i mentioned above "Destroying connection that could not be successfully matched" . than after that if i will try to login the application than its taking time to get login or last option i need to restart my server that is not that much preferable ever.</p>