cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6981) Getting "java.io.IOException: stream is closed" for > 64K messages
Date Wed, 12 Oct 2016 21:46:20 GMT

    [ https://issues.apache.org/jira/browse/CXF-6981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15569944#comment-15569944
] 

ASF GitHub Bot commented on CXF-6981:
-------------------------------------

GitHub user andymc12 opened a pull request:

    https://github.com/apache/cxf/pull/179

    CXF-6981 Avoid double close in CacheAndWriteOutputStream

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/andymc12/cxf postClose

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cxf/pull/179.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #179
    
----
commit 25aa09fe52180beb183bae3cdc18d7eb9f6807cb
Author: Andy McCright <j.andrew.mccright@gmail.com>
Date:   2016-10-03T16:30:24Z

    Merge pull request #1 from apache/master
    
    updating to master

commit 6e5efebdff68804a4fc4faf39d4b116aa0444efe
Author: Andy McCright <j.andrew.mccright@gmail.com>
Date:   2016-10-12T14:39:13Z

    Merge pull request #2 from apache/master
    
    update to latest

commit 192ab806ee18e355f052b327918c84d60e71faf1
Author: andymc12 <j.andrew.mccright@gmail.com>
Date:   2016-10-12T21:43:52Z

    CXF-6981 - Avoid double close on CacheAndWriteOutputStream

----


> Getting "java.io.IOException: stream is closed" for > 64K messages
> ------------------------------------------------------------------
>
>                 Key: CXF-6981
>                 URL: https://issues.apache.org/jira/browse/CXF-6981
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 3.0.9
>         Environment: JRE 1.8.0_101-b13
>            Reporter: Michal Sabo
>
> I am getting an IOException (stream is closed) when CachedOutputStream is trying to close
the very same stream twice. For the first time it is closed when maybeDeleteTempFile(currentStream)
method is called, the second time during postClose(), both as part of the close() method in
CachedOutputStream.
> java.io.IOException: stream is closed
>      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.ensureOpen(HttpURLConnection.java:3309)
>      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3314)
>      at org.apache.cxf.helpers.IOUtils.consume(IOUtils.java:363)
>      at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.closeInputStream(URLConnectionHTTPConduit.java:327)
>      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1628)
>      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1551)
>      at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1348)
>      at org.apache.cxf.io.CacheAndWriteOutputStream.postClose(CacheAndWriteOutputStream.java:56)
>      at org.apache.cxf.io.CachedOutputStream.close(CachedOutputStream.java:215)
>      at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
>      at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651)
>      at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
>      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
>      at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
>      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
>      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
>      at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
>      at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
>      at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message