[
https://issues.apache.org/jira/browse/HTTPCLIENT-891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778379#action_12778379
]
shyam sundar g commented on HTTPCLIENT-891:
-------------------------------------------
hi,
Thanks for your response.
I reused the StrictSSLProtocolSocketFactory class and tried to connect to the
server.The following exception
is thrown.
java.net.SocketException
at java.lang.Throwable.<init>(Throwable.java:196)
at java.lang.Exception.<init>(Exception.java:41)
at java.io.IOException.<init>(IOException.java:40)
at java.net.SocketException.<init>(SocketException.java:29)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:5)
at
co.com.personalsoft.ftpseguro.utilidades.StrictSSLProtocolSocketFactory.createSocket(StrictSSLProtocolSocketFactory.java:181)
at
co.com.personalsoft.ftpseguro.utilidades.StrictSSLProtocolSocketFactory.createSocket(StrictSSLProtocolSocketFactory.java:291)
at org.apache.commons.httpclient.HttpConnection.open(Unknown Source)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown
Source)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown
Source)
at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
at
co.com.personalsoft.ftpseguro.utilidades.TransmisionHTTP.ejecutarTransmisionHTTP(TransmisionHTTP.java:145)
at
co.com.personalsoft.ftpseguro.utilidades.TransmisionFTPNew.ejecutarTransmisionAuto(TransmisionFTPNew.java:483)
at
co.com.personalsoft.ftpseguro.utilidades.TransmisionFTPNew.ejecutarTransmision(TransmisionFTPNew.java:1016)
at co.com.personalsoft.ftpautomatico.ConexionThread.run(ConexionThread.java:58)
at java.lang.Thread.run(Thread.java:595)
I tried the configuration test program given in the link
http://hc.apache.org/httpclient-3.x/sslguide.html
The line given below throwed exception.When i analysed this problem it is the
createSocket method
throwing the exception NULL(returned by ex.getMessage() method).
Socket socket = SSLSocketFactory.getDefault().
createSocket(TARGET_HTTPS_SERVER, TARGET_HTTPS_PORT);
So the problem occurs when i try creating a socket to the destination server.
Please let me know where the problem could be.
> java.net.SocketException: Unconnected sockets not implemented thrown
> --------------------------------------------------------------------
>
> Key: HTTPCLIENT-891
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-891
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient
> Affects Versions: 4.0 Final
> Environment: Application Server : Websphere application server
> 6.1.0.23
> Java : JDK 1.5.0.16
> Reporter: shyam sundar g
> Fix For: 4.0 Final
>
> Original Estimate: 0h
> Remaining Estimate: 0h
>
> Iam using HTTPClient 4.0 to connect a remote server and transfer file using
> HTTPS.
> When i tried to connect i get the exception "java.net.SocketException:
> Unconnected sockets not implemented".
> Please look at the stack trace
> java.net.SocketException: Unconnected sockets not implemented
> at java.lang.Throwable.<init>(Throwable.java:196)
> at java.lang.Exception.<init>(Exception.java:41)
> at java.io.IOException.<init>(IOException.java:40)
> at java.net.SocketException.<init>(SocketException.java:29)
> at javax.net.SocketFactory.createSocket(SocketFactory.java:2)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(Unknown
> Source)
> at
> org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(Unknown
> Source)
> at org.apache.commons.httpclient.HttpConnection.open(Unknown Source)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown
> Source)
> at
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)
> at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown
> Source)
> at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown
> Source)
> at
> co.com.personalsoft.ftpseguro.utilidades.TransmisionHTTP.ejecutarTransmisionHTTP(TransmisionHTTP.java:107)
> at
> co.com.personalsoft.ftpseguro.utilidades.TransmisionFTPNew.ejecutarTransmisionAuto(TransmisionFTPNew.java:483)
> at
> co.com.personalsoft.ftpseguro.utilidades.TransmisionFTPNew.ejecutarTransmision(TransmisionFTPNew.java:1016)
> at
> co.com.personalsoft.ftpautomatico.ConexionThread.run(ConexionThread.java:58)
> at java.lang.Thread.run(Thread.java:595)
> The same error is found while using HTTP Client 3.1.
> Kindly help to solve this problem as the production deployment is delayed
> because of this error.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]