当前位置: 代码迷 >> 综合 >> CAS服务报错连接超时 java.net.ConnectException: Connection timed out: connect
  详细解决方案

CAS服务报错连接超时 java.net.ConnectException: Connection timed out: connect

热度:81   发布时间:2023-09-27 18:35:16.0

报错:

ERROR [org.jasig.cas.authentication.AuthenticationManagerImpl] -<org.jasig.cas.adaptors.jdbc.QueryDatabaseAuthenticationHandler threw error authenticating [username: admin]>org.springframework.jdbc.CannotGetJdbcConnectionException: 
Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: 
Cannot create PoolableConnectionFactory (Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.SocketException
MESSAGE: java.net.ConnectException: Connection timed out: connect

错误的原因:socket套接字连接失败,IP就压根没连上.
所以需要查看你配置的IP连接是否正确

配置文件在 deployerConfigContext.xml 里面

其中的 url修改成相应的地址
询问请求地址,你的IP是否有权限
CAS服务报错连接超时 java.net.ConnectException: Connection timed out: connect
转载

  相关解决方案