I receive the same error when I login with x509 certificate, and the client
taglib receive the ST and try to validate it:
String netid =
CASServiceUtil.validate(HttpUtils.getRequestURL(request).toString(),ticket);

javax.servlet.jsp.JspTagException: Software caused connection abort: recv
failed
edu.yale.its.tp.cas.taglib.CasTag.doStartTag(CasTag.java:97)

But if I go directly to URL :
https://localhost:8443/cas/validate?ticket=STXXX&service=blabla";); 
I receive a successful response.

Thanks,
Diego


code_guru wrote:
> 
> Hi
>    I am able to access target service when not using the client-
> authentication.That is it works fine without client-authentication but
> when i 
> use the client authentication it throws the exception pasted below..
>    the authentication of client's certificates is ok!can you give me some 
> advice?
>    Thanks a lot!!
> 
> edu.yale.its.tp.cas.client.CASAuthenticationException: Unable to validate 
> ProxyTicketValidator [[edu.yale.its.tp.cas.client.ProxyTicketValidator 
> proxyList=[null] [edu.yale.its.tp.cas.client.ServiceTicketValidator 
> casValidateUrl=[https://localhost:9443/cas/serviceValidate] ticket=[ST-2-
> 1fsdDlBRpLzPzHU0Ckk7kWjorunLygwclAW-20]
> service=[http%3A%2F%2Flocalhost%3A8080%
> 2Fjsp-examples%2F] renew=false]]]
>       at edu.yale.its.tp.cas.client.CASReceipt.getReceipt(CASReceipt.java:52)
>       at edu.yale.its.tp.cas.client.filter.CASFilter.getAuthenticatedUser
> (CASFilter.java:455)
>       at edu.yale.its.tp.cas.client.filter.CASFilter.doFilter
> (CASFilter.java:378)
>       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:186)
>       at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:157)
>       at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:214)
>       at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>       at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>       at org.apache.catalina.core.StandardContextValve.invokeInternal
> (StandardContextValve.java:198)
>       at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:152)
>       at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>       at org.apache.catalina.authenticator.AuthenticatorBase.invoke
> (AuthenticatorBase.java:462)
>       at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:102)
>       at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>       at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:137)
>       at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>       at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:118)
>       at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:102)
>       at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>       at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
>       at org.apache.catalina.core.StandardValveContext.invokeNext
> (StandardValveContext.java:104)
>       at org.apache.catalina.core.StandardPipeline.invoke
> (StandardPipeline.java:520)
>       at org.apache.catalina.core.ContainerBase.invoke
> (ContainerBase.java:929)
>       at org.apache.coyote.tomcat5.CoyoteAdapter.service
> (CoyoteAdapter.java:160)
>       at org.apache.coyote.http11.Http11Processor.process
> (Http11Processor.java:799)
>       at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnecti
> on(Http11Protocol.java:705)
>       at org.apache.tomcat.util.net.TcpWorkerThread.runIt
> (PoolTcpEndpoint.java:577)
>       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
> (ThreadPool.java:683)
>       at java.lang.Thread.run(Thread.java:534)
> Caused by: java.net.SocketException: Software caused connection abort:
> recv 
> failed
>       at java.net.SocketInputStream.socketRead0(Native Method)
>       at java.net.SocketInputStream.read(SocketInputStream.java:129)
>       at com.sun.net.ssl.internal.ssl.InputRecord.a(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.InputRecord.read(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SSLSocketImpl.b(DashoA12275)
>       at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake
> (DashoA12275)
>       at sun.net.www.protocol.https.HttpsClient.afterConnect(DashoA12275)
>       at 
> sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect
> (DashoA12275)
>       at sun.net.www.protocol.http.HttpURLConnection.getInputStream
> (HttpURLConnection.java:620)
>       at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream
> (DashoA12275)
>       at edu.yale.its.tp.cas.util.SecureURL.retrieve(SecureURL.java:84)
>       at edu.yale.its.tp.cas.client.ServiceTicketValidator.validate
> (ServiceTicketValidator.java:212)
>       at edu.yale.its.tp.cas.client.CASReceipt.getReceipt(CASReceipt.java:50)
>       ... 28 more
> 
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
> 
> 

-- 
View this message in context: 
http://www.nabble.com/java.net.SocketException%3A-Software-caused-connection-abort%3A-recv-failed-tp9805039p22803077.html
Sent from the CAS Users mailing list archive at Nabble.com.


-- 
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