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/17 11:20:58 UTC

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

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.2.3, 2.1.6
            Reporter: Vitaly V. Litvak
         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.


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

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-2440.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.4
                   2.1.7

> 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.


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

Posted by "Vitaly V. Litvak (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vitaly V. Litvak updated CXF-2440:
----------------------------------

    Attachment: cxf-test.zip

That's the source code and attachment file for reproducing 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
>         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.


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

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp closed CXF-2440.
----------------------------



Thanks for verifying that it works (and major thanks for the testcase)!

> 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.


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

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-2440:
--------------------------------

    Assignee: Daniel Kulp

> 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
>         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.


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

Posted by "Vitaly V. Litvak (JIRA)" <ji...@apache.org>.
    [ 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.