You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Kota, Sriraghavi Latha " <sr...@citi.com.INVALID> on 2018/05/21 15:40:47 UTC

Failed to validate a newly established connection

Hello,
We are on Tomcat 8.5.23. We recently added a fix to recover application after database restart.

testOnBorrow: true
validationInterval: 60000

We added this to 5 of our services. While we were restarting the services, one of the services is throwing this error. Trying to figure out the reason for this error. Any help would be appreciated.

org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Failed to validate a newly established connection

Here are our version:

Tomcat 8.5.23
DB2 version: 11.1
JDBCDriver: DB2JCC 4.22.29


Thanks,
Sri Kota

Re: Failed to validate a newly established connection

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Sri,

On 5/21/18 11:40 AM, Kota, Sriraghavi Latha  wrote:
> Hello, We are on Tomcat 8.5.23. We recently added a fix to recover
> application after database restart.
> 
> testOnBorrow: true validationInterval: 60000
> 
> We added this to 5 of our services. While we were restarting the
> services, one of the services is throwing this error. Trying to
> figure out the reason for this error. Any help would be
> appreciated.
> 
> org.springframework.jdbc.CannotGetJdbcConnectionException: Could
> not get JDBC Connection; nested exception is java.sql.SQLException:
> Failed to validate a newly established connection
> 
> Here are our version:
> 
> Tomcat 8.5.23 DB2 version: 11.1 JDBCDriver: DB2JCC 4.22.29

Could you please post the complete stack-trace, including all "Caused
by" information?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlsDEbAACgkQHPApP6U8
pFh+qg/+KIO9B5JKNqbA6tLjAcVj4TBqMsTMAIqH0VceR3R0JPUEuscRiNmIgbg2
tLrXKvMjXvCUSqq9db6hAjgtJDWtncF+aonxOKAswZsrwCMeieCBRvMr/j9w/2tT
2+QMt0+gTF+rzqwDW2v5x/lkTo2ZyW4f1c+BVFTLFZsgRqk59+srXFcjQMZxnW//
KAxylhR+n2NOE1w+xxzWu62t7eQYfnpec/uaf48YS4OleSTwYUZXFuPW6xAwCah0
4uPRHtEHHkA+LTzumfdTxWYVXEjzyXzBlnP0QTeJReMx5iEiaB3M9tu0fW53ySyj
5VwBnNRC447A2J4slIXIFTUo2jxtGqqQH3xEW80quso9G6TuoIUcY97Xf49LKKd9
wiL08KtidhUO4ZYhv7ZFzbi4jfyLMhqMwv2TB0ZrjZfpHCh0kxO3H+FG1h1gTkS8
5aphc0S+3EWKCFVRoKvB3tki5LWUtKsVmLfuknzK11tj84xvhAvhImMw8vZSgNpS
me1ErFJjUC6x3jYWHas6uQTYYT2EVjJNcREeH2RlA0213KLnQHEWWcU45yedvG7G
X3RyyoCvDk2iBbdXSz6iZzPxeS9mTHkqPYhlklKfOxaatO5swoQtjvR8MNc8YytE
HCfmnk6sc5y6v6ZGk8B6PA5rczsWH00bW0qjGIX7kt0+J+1Utpg=
=PYc5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org