0 Replies Latest reply on Dec 1, 2014 6:09 AM by Ben Gao

    db restart ,the first connection error,but The next connection is normal

    Ben Gao Novice

      When db restart ,the first connection error,but The next connection is normal.

      if:

      1.db2 restart

      2. a query by page click,then connection error.

      3.Then press again,is ok,The next connection is normal

       

       

      if:

      1.DB2 STOP

      2.a query by page click,then connection error.(A normal phenomenon )

      3.db2 start

      4.a query by page click,then ok.The next connection is normal

       

      so, I think has one connection error.

       

       

      my configure:

          <datasource jndi-name="java:/jdbc/xxxdb" pool-name="db2DS_xxxxDB_2" enabled="true">

              <connection-url>jdbc:db2://172.17.238.74:60008/xxxxDB:currentSchema=xx_xxxDB;</connection-url>

              <driver>DB2</driver>

              <security>

                  <security-domain>EncryptedPassword_xxxxDB_2</security-domain>

              </security>

                <validation>

                  <check-valid-connection-sql>select count(1) from SYSIBM.SYSDUMMY1</check-valid-connection-sql>

                  <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.db2.DB2ExceptionSorter"/>

      <stale-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DB2StaleConnectionChecker"/>

              </validation>

              <pool>

          <prefill>true</prefill>

                  <min-pool-size>2</min-pool-size>

                  <max-pool-size>100</max-pool-size>

                <allow-multiple-users/>

      <flush-strategy>IdleConnections</flush-strategy>

       

              </pool>

              <timeout>

           

                  <blocking-timeout-millis>30000</blocking-timeout-millis>

              </timeout> 

          <statement>

                  <prepared-statement-cache-size>30</prepared-statement-cache-size>

              </statement>

          </datasource>

       

       

      please help me! 

       

       

      ERROR:

       

      2014-12-01 18:46:42,659 INFO  [stdout] (synclong-invoker3-thread-2) [20141201 18:46:42|ERROR|(com.union.server.service.impl.TxnQryService)]=[鍘嗗彶浜ゆ槗鏌ヨ寮傚父]

      2014-12-01 18:46:42,660 INFO  [stdout] (synclong-invoker3-thread-2) org.springframework.dao.DataAccessResourceFailureException: SqlMapClient operation; SQL [];  

      2014-12-01 18:46:42,660 INFO  [stdout] (synclong-invoker3-thread-2) --- The error occurred while applying a parameter map. 

      2014-12-01 18:46:42,660 INFO  [stdout] (synclong-invoker3-thread-2) --- Check the com.union.common.entity.ac.TblAcHisTransMbillMapper.countTrans-InlineParameterMap. 

      2014-12-01 18:46:42,660 INFO  [stdout] (synclong-invoker3-thread-2) --- Check the statement (query failed). 

      2014-12-01 18:46:42,660 INFO  [stdout] (synclong-invoker3-thread-2) --- Cause: com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2030][11211][4.11.88] A communication error occurred during operations on the connection's underlying socket, socket input stream,

      2014-12-01 18:46:42,660 INFO  [stdout] (synclong-invoker3-thread-2) or socket output stream.  Error location: Reply.fill() - insufficient data (-1).  Message: Insufficient data. ERRORCODE=-4499, SQLSTATE=08001; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:  

      2014-12-01 18:46:42,661 INFO  [stdout] (synclong-invoker3-thread-2) --- The error occurred while applying a parameter map. 

      2014-12-01 18:46:42,661 INFO  [stdout] (synclong-invoker3-thread-2) --- Check the com.union.common.entity.ac.TblAcHisTransMbillMapper.countTrans-InlineParameterMap. 

      2014-12-01 18:46:42,661 INFO  [stdout] (synclong-invoker3-thread-2) --- Check the statement (query failed). 

      2014-12-01 18:46:42,661 INFO  [stdout] (synclong-invoker3-thread-2) --- Cause: com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2030][11211][4.11.88] A communication error occurred during operations on the connection's underlying socket, socket input stream,

      2014-12-01 18:46:42,661 INFO  [stdout] (synclong-invoker3-thread-2) or socket output stream.  Error location: Reply.fill() - insufficient data (-1).  Message: Insufficient data. ERRORCODE=-4499, SQLSTATE=08001

      2014-12-01 18:46:42,661 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.doTranslate(SQLStateSQLExceptionTranslator.java:104)

      2014-12-01 18:46:42,661 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72)

      2014-12-01 18:46:42,661 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)

      2014-12-01 18:46:42,662 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)

      2014-12-01 18:46:42,662 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:203)

      2014-12-01 18:46:42,662 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.orm.ibatis.SqlMapClientTemplate.queryForObject(SqlMapClientTemplate.java:268)

      2014-12-01 18:46:42,662 INFO  [stdout] (synclong-invoker3-thread-2)     at com.union.server.dao.ac.AcHisTransMbillDao.countTrans(AcHisTransMbillDao.java:106)

      2014-12-01 18:46:42,662 INFO  [stdout] (synclong-invoker3-thread-2)     at com.union.server.service.impl.TxnQryService.queryTxn(TxnQryService.java:359)

      2014-12-01 18:46:42,662 INFO  [stdout] (synclong-invoker3-thread-2)     at com.union.server.service.impl.TxnQryService.TxnqryPage(TxnQryService.java:127)

      2014-12-01 18:46:42,662 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2014-12-01 18:46:42,663 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2014-12-01 18:46:42,663 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2014-12-01 18:46:42,663 INFO  [stdout] (synclong-invoker3-thread-2)     at java.lang.reflect.Method.invoke(Method.java:597)

      2014-12-01 18:46:42,663 INFO  [stdout] (synclong-invoker3-thread-2)     at com.union.server.service.BaseService.process(BaseService.java:78)

      2014-12-01 18:46:42,663 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2014-12-01 18:46:42,663 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2014-12-01 18:46:42,664 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2014-12-01 18:46:42,664 INFO  [stdout] (synclong-invoker3-thread-2)     at java.lang.reflect.Method.invoke(Method.java:597)

      2014-12-01 18:46:42,664 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)

      2014-12-01 18:46:42,664 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:196)

      2014-12-01 18:46:42,664 INFO  [stdout] (synclong-invoker3-thread-2)     at $Proxy33.process(Unknown Source)

      2014-12-01 18:46:42,665 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2014-12-01 18:46:42,665 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2014-12-01 18:46:42,665 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2014-12-01 18:46:42,665 INFO  [stdout] (synclong-invoker3-thread-2)     at java.lang.reflect.Method.invoke(Method.java:597)

      2014-12-01 18:46:42,666 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)

      2014-12-01 18:46:42,666 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)

      2014-12-01 18:46:42,666 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      2014-12-01 18:46:42,666 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.framework.adapter.ThrowsAdviceInterceptor.invoke(ThrowsAdviceInterceptor.java:124)

      2014-12-01 18:46:42,666 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      2014-12-01 18:46:42,667 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.framework.adapter.AfterReturningAdviceInterceptor.invoke(AfterReturningAdviceInterceptor.java:50)

      2014-12-01 18:46:42,667 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      2014-12-01 18:46:42,667 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)

      2014-12-01 18:46:42,667 INFO  [stdout] (synclong-invoker3-thread-2)     at $Proxy34.process(Unknown Source)

      2014-12-01 18:46:42,668 INFO  [stdout] (synclong-invoker3-thread-2)     at com.union.server.netty.SysLongServerHandler$Worker.run(SysLongServerHandler.java:127)

      2014-12-01 18:46:42,668 INFO  [stdout] (synclong-invoker3-thread-2)     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)

      2014-12-01 18:46:42,668 INFO  [stdout] (synclong-invoker3-thread-2)     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

      2014-12-01 18:46:42,668 INFO  [stdout] (synclong-invoker3-thread-2)     at java.util.concurrent.FutureTask.run(FutureTask.java:138)

      2014-12-01 18:46:42,669 INFO  [stdout] (synclong-invoker3-thread-2)     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)

      2014-12-01 18:46:42,669 INFO  [stdout] (synclong-invoker3-thread-2)     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)

      2014-12-01 18:46:42,669 INFO  [stdout] (synclong-invoker3-thread-2)     at java.lang.Thread.run(Thread.java:662)

      2014-12-01 18:46:42,669 INFO  [stdout] (synclong-invoker3-thread-2) Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:  

      2014-12-01 18:46:42,669 INFO  [stdout] (synclong-invoker3-thread-2) --- The error occurred while applying a parameter map. 

      2014-12-01 18:46:42,670 INFO  [stdout] (synclong-invoker3-thread-2) --- Check the com.union.common.entity.ac.TblAcHisTransMbillMapper.countTrans-InlineParameterMap. 

      2014-12-01 18:46:42,670 INFO  [stdout] (synclong-invoker3-thread-2) --- Check the statement (query failed). 

      2014-12-01 18:46:42,670 INFO  [stdout] (synclong-invoker3-thread-2) --- Cause: com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2030][11211][4.11.88] A communication error occurred during operations on the connection's underlying socket, socket input stream,

      2014-12-01 18:46:42,670 INFO  [stdout] (synclong-invoker3-thread-2) or socket output stream.  Error location: Reply.fill() - insufficient data (-1).  Message: Insufficient data. ERRORCODE=-4499, SQLSTATE=08001

      2014-12-01 18:46:42,671 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:201)

      2014-12-01 18:46:42,671 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForObject(MappedStatement.java:120)

      2014-12-01 18:46:42,671 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:518)

      2014-12-01 18:46:42,671 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForObject(SqlMapExecutorDelegate.java:493)

      2014-12-01 18:46:42,671 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForObject(SqlMapSessionImpl.java:106)

      2014-12-01 18:46:42,672 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.orm.ibatis.SqlMapClientTemplate$1.doInSqlMapClient(SqlMapClientTemplate.java:270)

      2014-12-01 18:46:42,672 INFO  [stdout] (synclong-invoker3-thread-2)     at org.springframework.orm.ibatis.SqlMapClientTemplate.execute(SqlMapClientTemplate.java:200)

      2014-12-01 18:46:42,672 INFO  [stdout] (synclong-invoker3-thread-2)     ... 36 more

      2014-12-01 18:46:42,672 INFO  [stdout] (synclong-invoker3-thread-2) Caused by: com.ibm.db2.jcc.am.DisconnectNonTransientConnectionException: [jcc][t4][2030][11211][4.11.88] A communication error occurred during operations on the connection's underlying socket, socket input stream,

      2014-12-01 18:46:42,673 INFO  [stdout] (synclong-invoker3-thread-2) or socket output stream.  Error location: Reply.fill() - insufficient data (-1).  Message: Insufficient data. ERRORCODE=-4499, SQLSTATE=08001

      2014-12-01 18:46:42,673 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.am.gd.a(gd.java:319)

      2014-12-01 18:46:42,673 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.a.a(a.java:461)

      2014-12-01 18:46:42,673 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.a.a(a.java:456)

      2014-12-01 18:46:42,673 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.z.b(z.java:233)

      2014-12-01 18:46:42,674 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.z.c(z.java:259)

      2014-12-01 18:46:42,674 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.z.c(z.java:372)

      2014-12-01 18:46:42,674 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.z.v(z.java:1147)

      2014-12-01 18:46:42,674 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.cb.a(cb.java:39)

      2014-12-01 18:46:42,674 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.q.a(q.java:32)

      2014-12-01 18:46:42,675 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.t4.rb.i(rb.java:135)

      2014-12-01 18:46:42,675 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.am.kn.ib(kn.java:1996)

      2014-12-01 18:46:42,675 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.am.ln.sc(ln.java:3058)

      2014-12-01 18:46:42,675 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.am.ln.b(ln.java:3841)

      2014-12-01 18:46:42,676 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.am.ln.ic(ln.java:2269)

      2014-12-01 18:46:42,676 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibm.db2.jcc.am.ln.execute(ln.java:2249)

      2014-12-01 18:46:42,676 INFO  [stdout] (synclong-invoker3-thread-2)     at org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.execute(WrappedPreparedStatement.java:404)

      2014-12-01 18:46:42,676 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      2014-12-01 18:46:42,676 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      2014-12-01 18:46:42,677 INFO  [stdout] (synclong-invoker3-thread-2)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      2014-12-01 18:46:42,677 INFO  [stdout] (synclong-invoker3-thread-2)     at java.lang.reflect.Method.invoke(Method.java:597)

      2014-12-01 18:46:42,677 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.common.jdbc.logging.PreparedStatementLogProxy.invoke(PreparedStatementLogProxy.java:62)

      2014-12-01 18:46:42,677 INFO  [stdout] (synclong-invoker3-thread-2)     at $Proxy28.execute(Unknown Source)

      2014-12-01 18:46:42,678 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.sqlmap.engine.execution.SqlExecutor.executeQuery(SqlExecutor.java:185)

      2014-12-01 18:46:42,678 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.sqlExecuteQuery(MappedStatement.java:221)

      2014-12-01 18:46:42,678 INFO  [stdout] (synclong-invoker3-thread-2)     at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryWithCallback(MappedStatement.java:189)

      2014-12-01 18:46:42,678 INFO  [stdout] (synclong-invoker3-thread-2)     ... 42 more

      2014-12-01 18:46:42,680 INFO  [stdout] (synclong-invoker3-thread-2) [20141201 18:46:42|INFO |(com.union.server.service.impl.TxnQryService)]=