You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Timothy Bish (JIRA)" <ji...@apache.org> on 2010/12/05 19:11:11 UTC

[jira] Resolved: (AMQ-3062) "Deflater has been closed" exception when jms.useCompression=true and using ActiveMQBytesMessage

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

Timothy Bish resolved AMQ-3062.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 5.5.0
         Assignee: Timothy Bish

Was able to reproduce, added a test case and applied the provided patch. fixed in svn rev: 1042388

> "Deflater has been closed" exception when jms.useCompression=true and using ActiveMQBytesMessage
> ------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-3062
>                 URL: https://issues.apache.org/jira/browse/AMQ-3062
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Connector
>    Affects Versions: 5.4.1
>            Reporter: John Gassner
>            Assignee: Timothy Bish
>             Fix For: 5.5.0
>
>         Attachments: patch.txt
>
>
> When compression is turned on and the ActiveMQBytesMessage is used, the following exception will be encountered:
> java.lang.NullPointerException: Deflater has been closed
> 	at java.util.zip.Deflater.ensureOpen(Deflater.java:427)
> 	at java.util.zip.Deflater.deflate(Deflater.java:305)
> 	at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:159)
> 	at java.util.zip.DeflaterOutputStream.finish(DeflaterOutputStream.java:134)
> 	at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:146)
> 	at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
> 	at org.apache.activemq.command.ActiveMQBytesMessage$1.close(ActiveMQBytesMessage.java:808)
> 	at java.io.FilterOutputStream.close(FilterOutputStream.java:143)
> 	at org.apache.activemq.command.ActiveMQBytesMessage.storeContent(ActiveMQBytesMessage.java:124)
> 	at org.apache.activemq.command.ActiveMQBytesMessage.copy(ActiveMQBytesMessage.java:109)
> 	at org.apache.activemq.command.ActiveMQBytesMessage.copy(ActiveMQBytesMessage.java:104)
> 	at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1735)
> 	at org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:231)

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