Does anyone know something about this problem?

It's happens only for the CAS application.  All the other apps that use this DB 
have no problem.





________________________________
From: Mihai <cazacugmi...@yahoo.com>
To: Yale CAS mailing list <cas@tp.its.yale.edu>
Sent: Thursday, January 22, 2009 10:44:22 PM
Subject: Re: CAS - DataAccessResourceFailureException




This is very strange. The application and the database(MySQL 5.1.30) runs on 
the same server and the app
is the only one who use this DB.

Thanks for the reply.



________________________________
From: Scott Battaglia <scott.battag...@gmail.com>
To: Yale CAS mailing list <cas@tp.its.yale.edu>
Sent: Thursday, January 22, 2009 3:23:04 PM
Subject: Re: CAS - DataAccessResourceFailureException

Its a problem with your database or your network:


com.mysql.jdbc.CommunicationsException: The last packet successfully received 
from the server was56636 milliseconds ago.The last packet sent successfully to 
the server was 56636 milliseconds ago, which  is longer than the server 
configured value of 'wait_timeout'. You should consider either expiring and/or 
testing connection validity before use in your application, increasing the 
server configured values for client timeouts, or using the Connector/J 
connection property 'autoReconnect=true' to avoid this problem.

-Scott

-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia



On Thu, Jan 22, 2009 at 7:27 AM, Mihai <cazacugmi...@yahoo.com> wrote:

Hi,

I have a problem using the CAS server(tested under glassfish):

<exception>

typeException report 
message
descriptionThe 
server encountered an internal error () that prevented it from fulfilling this 
request. 
exception
org.springframework.web.util.NestedServletException: Request processing failed; 
nested exception is 
org.springframework.webflow.engine.ActionExecutionException: Exception thrown 
executing [annotatedact...@862dc1 targetAction = 
org.jasig.cas.web.flow.authenticationviaformact...@4e3801, attributes = 
map['method' -> 'submit']] in state 'submit' of flow 'login-webflow' -- action 
execution attributes were 'map['method' -> 'submit']'; nested exception is 
org.springframework.dao.DataAccessResourceFailureException: 
PreparedStatementCallback; SQL [Select count('x') from user Where username = ? 
And passwd = ?]; The last packet successfully received from the server was56636 
milliseconds ago.The last packet sent successfully to the server was 56636 
milliseconds ago, which  is longer than the server configured value of 
'wait_timeout'. You

 should
 consider either expiring and/or testing connection validity before use in your 
application, increasing the server configured values for client timeouts, or 
using the Connector/J connection property 'autoReconnect=true' to avoid this 
problem.; nested exception is com.mysql.jdbc.CommunicationsException: The last 
packet successfully received from the server was56636 milliseconds ago.The last 
packet sent successfully to the server was 56636 milliseconds ago, which  is 
longer than the server configured value of 'wait_timeout'. You should consider 
either expiring and/or testing connection validity before use in your 
application, increasing the server configured values for client timeouts, or 
using the Connector/J connection property 'autoReconnect=true' to avoid this 
problem.
root 
cause
org.springframework.webflow.engine.ActionExecutionException: Exception thrown 
executing [annotatedact...@862dc1 targetAction = 
org.jasig.cas.web.flow.authenticationviaformact...@4e3801, attributes = 
map['method' -> 'submit']] in state 'submit' of flow 'login-webflow' -- action 
execution attributes were 'map['method' -> 'submit']'; nested exception is 
org.springframework.dao.DataAccessResourceFailureException: 
PreparedStatementCallback; SQL [Select count('x') from user Where username = ? 
And passwd = ?]; The last packet successfully received from the server was56636 
milliseconds ago.The last packet sent successfully to the server was 56636 
milliseconds ago, which  is longer than the server configured value of 
'wait_timeout'.

 You
 should consider either expiring and/or testing connection validity before use 
in your application, increasing the server configured values for client 
timeouts, or using the Connector/J connection property 'autoReconnect=true' to 
avoid this problem.; nested exception is 
com.mysql.jdbc.CommunicationsException: The last packet successfully received 
from the server was56636 milliseconds ago.The last packet sent successfully to 
the server was 56636 milliseconds ago, which  is longer than the server 
configured value of 'wait_timeout'. You should consider either expiring and/or 
testing connection validity before use in your application, increasing the 
server configured values for client timeouts, or using the Connector/J 
connection property 'autoReconnect=true' to avoid this problem.
root 
cause
org.springframework.dao.DataAccessResourceFailureException: 
PreparedStatementCallback; SQL [Select count('x') from user Where username = ? 
And passwd = ?]; The last packet successfully received from the server was56636 
milliseconds ago.The last packet sent successfully to the server was 56636 
milliseconds ago, which  is longer than the server configured value of 
'wait_timeout'. You should consider either expiring and/or testing connection 
validity before use in your application, increasing the server configured 
values for client timeouts, or using the Connector/J connection property 
'autoReconnect=true' to avoid this problem.; nested exception is 
com.mysql.jdbc.CommunicationsException: The last packet successfully received 
from

 the
 server was56636 milliseconds ago.The last packet sent successfully to the 
server was 56636 milliseconds ago, which  is longer than the server configured 
value of 'wait_timeout'. You should consider either expiring and/or testing 
connection validity before use in your application, increasing the server 
configured values for client timeouts, or using the Connector/J connection 
property 'autoReconnect=true' to avoid this problem.
root 
cause
com.mysql.jdbc.CommunicationsException: The last packet successfully received 
from the server was56636 milliseconds ago.The last packet sent successfully to 
the server was 56636 milliseconds ago, which  is longer than the server 
configured value of 'wait_timeout'. You should consider either expiring and/or 
testing connection validity before use in your application, increasing the 
server configured values for client timeouts, or using the Connector/J 
connection property 'autoReconnect=true' to avoid this problem.
root 
cause
java.net.SocketException: Software caused connection abort: socket write error
noteThe 
full stack traces of the exception and its root causes are available in the 
GlassFish/v3 logs. 
</exception>

This happens most frequently but not always while the user trying to login.
Thanks.



_______________________________________________
Yale CAS mailing list
cas@tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas


      
_______________________________________________
Yale CAS mailing list
cas@tp.its.yale.edu
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to