Hi,

The "connect time out" is a pretty straight network error.

Do you have any internal proxy required to reach internet ? Did you check 
you connectivity from your server to Facebook for example (doing a curl on 
your server) ?

Best regards,
Jérôme


On Thursday, January 9, 2014 6:44:23 AM UTC+1, Sashika wrote:
>
> I merged the configurations in cas-pac4j-oauth-server-demo 
> into cas-pac4j-oauth-client-demo (4.0.0.0 RC2) so that 
> the cas-pac4j-oauth-client-demo will act as a oauth server for my client 
> apps. When I issue 
> http://localhost:8080/cas/oauth2.0/authorize?redirect_uri=http://www.someservice&client_id=this_is_the_keythe
>  CAS server will display the login screen. At this point if I enter 
> username=password the user is redirected to the service url and no issues 
> with that. But if I log in through facebook or twitter CAS server will give 
> errors like the following
>
> *2014-01-09 11:00:47.514:WARN:oejs.ServletHandler:/cas/login*
> *org.springframework.webflow.execution.ActionExecutionException: Exception 
> thrown executing org.jasig.cas.support.pac4j.web.flow.ClientAction@61b96b 
> in state 'clientAction' of flow 'login' -- action execution attributes were 
> 'map[[empty]]'*
>
> Caused by:
> org.pac4j.core.exception.TechnicalException: 
> org.scribe.exceptions.OAuthConnectionException: There was a problem while 
> creating a connection to the remote service.
>         at 
> org.pac4j.oauth.client.BaseOAuthClient.retrieveUserProfile(BaseOAuthClient.java:166)
>
> Caused by:
> org.scribe.exceptions.OAuthConnectionException: There was a problem while 
> creating a connection to the remote service.
>         at org.scribe.model.ProxyRequest.send(ProxyRequest.java:85)
>
> Caused by:
> java.net.SocketTimeoutException: connect timed out
>         at java.net.PlainSocketImpl.socketConnect(Native Method)
>
>
> The error is totally random, for facebook, sometimes it succeeds and 
> sometimes not. For twitter it will happen 99% of the time. I have no 
> connectivity issues with facebook or twitter. Infact the CAS server is 
> throwing these errors as soon as I click the login links. It does not even 
> wait till a timeout occurs.
>

-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to