tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat and Salesforce Issue
Date Sun, 28 Jun 2009 03:42:18 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James,

On 6/26/2009 5:34 AM, Jamz_2010 wrote:
> Sorry about that, I have checked the catalina.out file and it says that an
> exception is thrown, I will have a ensure it prints the stack trace and will
> have a look at it in the morning - sorry I can't test this earlier but I
> need to wait for it to fail overnight. At the moment I simply catch the
> exception that is thrown and it simply gives a null error. This I would
> normally expect to occur when there is no data present in the database,
> however, I have also printed the SQL query and checked it against the
> database and it brings back results. I'll get that stack trace to you asap.

Hmm... if your database connection died, could that cause the behavior
you're experiencing? If so, and it happens overnight, perhaps you have a
firewall killing your db connection.

Are you using a connection pool? If so, try configuring a connection
validation query appropriate for your database (and connection pool).

Certainly getting more information will be helpful. Note that it's not
good to "swallow" exceptions by catching them and either ignoring them
or throwing an unrelated exception without either logging the exception
or wrapping it up in another one. Avoiding swallowing your exceptions
would have helped you out, here.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkpG5poACgkQ9CaO5/Lv0PD9bACfUQ88CKL9gbxApBG6t8uxVBFr
6WUAnAwMHf+Ngeer/7abtXbYiGGq3eGw
=AwHg
-----END PGP SIGNATURE-----

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


Mime
View raw message