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 Thu, 13 Oct 2016 12:45:20 GMT

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

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

Github user asfgit closed the pull request at:

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


> 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