From: <glassfish_at_javadesktop.org>
Date: Wed, 13 Jun 2007 20:39:40 PDT
It might be because, MySQL by default will timeout the connections that are idle (not used) for 8 hours.
BTW, do you use connection pool in application server to talk to MySQL database ?
Is it GlassFish v2 ? (I guess, this problem will not be seen in GF v2 con.pools)