You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Aki Yoshida (JIRA)" <ji...@apache.org> on 2013/04/04 12:01:17 UTC

[jira] [Resolved] (CXF-4857) Workaround for Socket Closed exception with some JDK 1.6.0_nn (>= 38)

     [ https://issues.apache.org/jira/browse/CXF-4857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aki Yoshida resolved CXF-4857.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.4
                   2.6.7
                   2.8.0

I am closing this ticket as resolved as the applied workaround seems to be working.

If this change is found to cause some negative side effect, we can revert the change.

                
> Workaround for Socket Closed exception with some JDK 1.6.0_nn (>= 38)
> ---------------------------------------------------------------------
>
>                 Key: CXF-4857
>                 URL: https://issues.apache.org/jira/browse/CXF-4857
>             Project: CXF
>          Issue Type: Improvement
>          Components: Transports
>    Affects Versions: 2.6.5, 2.7.3
>            Reporter: Aki Yoshida
>            Assignee: Aki Yoshida
>             Fix For: 2.8.0, 2.6.7, 2.7.4
>
>
> With recent Oracle jdk1.6.0_38 (including the latest jdk1.6.0_41) on Windows and Linux, we are observing the Socket Closed exception.
> The exception is shown as
> Caused by: java.net.SocketException: Socket Closed
>         at java.net.PlainSocketImpl.getOption(PlainSocketImpl.java:286)
>         at java.net.Socket.getSoTimeout(Socket.java:1032)
>         at sun.net.www.http.HttpClient.available(HttpClient.java:356)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:273)
>         at sun.net.www.http.HttpClient.New(HttpClient.java:310)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLCon
> nection.java:987)
>         at
> sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnect
> ion.java:923)
>         at
> sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.j
> ava:841)
>         at
> sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConn
> ection.java:1031)
>         at
> org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWra
> ppedOutputStream.setupWrappedStream(URLConnectionHTTPConduit.java:170)
>         at
> So far the issue is only observed with some JDK versions and not with others (e.g. OSX or Win/Linux 1.7.0_nn versions).
> Until this issue is clarified, I am proposing to add a small workaround in CXF to avoid this issue.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira