As per the trace, you'll get this kind of exception when the connection you are holding is timed out and released, but you try to use the same reference OR when your request for a connection to the database fails [Unable to connect to db].
But as you said you get this exception when the application is idle for some time; its probable will be the first case. Check by modifying the connection timeout value to narrow your case, and find our root cause.
Mostly it'll be connection time out.
- Rakesh
|