You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Vitaly V. Litvak (JIRA)" <ji...@apache.org> on 2009/09/21 17:46:15 UTC

[jira] Commented: (CXF-2440) GZIP and MTOM attachments does not work on client

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

Vitaly V. Litvak commented on CXF-2440:
---------------------------------------

It seems like everything is fine in 2.2.4-snapshot version. Should I close this issue?

> GZIP and MTOM attachments does not work on client
> -------------------------------------------------
>
>                 Key: CXF-2440
>                 URL: https://issues.apache.org/jira/browse/CXF-2440
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.1.6, 2.2.3
>            Reporter: Vitaly V. Litvak
>            Assignee: Daniel Kulp
>             Fix For: 2.1.7, 2.2.4
>
>         Attachments: cxf-test.zip
>
>
> Service is set up to use GZIP compression by adding GZIPFeature to ClientProxyFactoryBean (or JaxWsProxyFactoryBean) and ServerFactoryBean (or JaxWsServerFactoryBean). It provides possibility to download MTOM attachments. On client side files can not be read and following exception is thrown:
> java.io.IOException: stream is closed
> 	at sun.net.www.http.ChunkedInputStream.ensureOpen(ChunkedInputStream.java:151)
> 	at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:646)
> 	at java.io.FilterInputStream.read(FilterInputStream.java:116)
> 	at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:2446)
> 	at java.util.zip.InflaterInputStream.fill(InflaterInputStream.java:221)
> 	at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:141)
> 	at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:92)
> 	at java.io.FilterInputStream.read(FilterInputStream.java:116)
> 	at java.io.PushbackInputStream.read(PushbackInputStream.java:169)
> 	at org.apache.cxf.attachment.MimeBodyPartInputStream.read(MimeBodyPartInputStream.java:74)
> 	at java.io.InputStream.read(InputStream.java:85)
> 	at org.apache.cxf.attachment.DelegatingInputStream.read(DelegatingInputStream.java:82)
> 	at Main.runTests(Main.java:107)
> 	at Main.main(Main.java:120)
> On the server side everything is fine. It reproduces for both 2.2.3 and 2.1.6 versions of CXF. Please see attached test case.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.