You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org> on 2012/07/07 02:37:34 UTC

[jira] [Created] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

BJ Peter DeLaCruz created CAMEL-5429:
----------------------------------------

             Summary: Sending null in body when forcing JMS message type to Object throws an Exception
                 Key: CAMEL-5429
                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
             Project: Camel
          Issue Type: Bug
    Affects Versions: 2.9.0
            Reporter: BJ Peter DeLaCruz
         Attachments: Exception.txt, TestCamelJmsWithMapV2.java

I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

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

Claus Ibsen updated CAMEL-5429:
-------------------------------

    Issue Type: Bug  (was: Improvement)
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.3, 2.10.1, 2.11
>
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

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

Claus Ibsen updated CAMEL-5429:
-------------------------------

    Fix Version/s: 2.10.1
                   2.9.3
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.3, 2.10.1, 2.11
>
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

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

Claus Ibsen resolved CAMEL-5429.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.11)
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jms
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.3, 2.10.1
>
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408867#comment-13408867 ] 

Claus Ibsen commented on CAMEL-5429:
------------------------------------

And yes as we by default allow null bodies in the other message types, we should do that as well for Object message types. So I will fix that as well.
                
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.9.3, 2.10.1, 2.11
>
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BJ Peter DeLaCruz updated CAMEL-5429:
-------------------------------------

    Attachment: Exception.txt
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithMapV2.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BJ Peter DeLaCruz updated CAMEL-5429:
-------------------------------------

    Attachment:     (was: TestCamelJmsWithMapV2.java)
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

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

Claus Ibsen reassigned CAMEL-5429:
----------------------------------

    Assignee: Claus Ibsen
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>            Assignee: Claus Ibsen
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408610#comment-13408610 ] 

BJ Peter DeLaCruz edited comment on CAMEL-5429 at 7/7/12 9:50 AM:
------------------------------------------------------------------

Before I used "jmsMessageType=Object", the application was sending null in a message, and it worked. However, I ran into a problem when I was trying to send a Map of non-primitive, serialized objects. (See CAMEL-5293.) Using "jmsMessageType=Object" solved CAMEL-5293, but now I can no longer send null in a JMS message.
                
      was (Author: bjpeter):
    Before I used "jmsMessageType=Object", the application was sending null in a message, and it worked. However, I ran into a problem when I was trying to send a Map of non-primitive, serialized objects. (See this issue: https://issues.apache.org/jira/browse/CAMEL-5293.) Using "jmsMessageType=Object" solved CAMEL-5293, but now I can no longer send null in a JMS message.
                  
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408610#comment-13408610 ] 

BJ Peter DeLaCruz edited comment on CAMEL-5429 at 7/7/12 9:53 AM:
------------------------------------------------------------------

Before I used "jmsMessageType=Object", the application was sending null in a message, and it worked. However, I ran into a problem when I was trying to send a map of non-primitive, serialized objects. (See CAMEL-5293.) Using "jmsMessageType=Object" solved CAMEL-5293, but now I can no longer send null in a message as an exception will be thrown.
                
      was (Author: bjpeter):
    Before I used "jmsMessageType=Object", the application was sending null in a message, and it worked. However, I ran into a problem when I was trying to send a map of non-primitive, serialized objects. (See CAMEL-5293.) Using "jmsMessageType=Object" solved CAMEL-5293, but now I can no longer send null in a message.
                  
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BJ Peter DeLaCruz updated CAMEL-5429:
-------------------------------------

    Attachment:     (was: TestCamelJmsWithMapV2.java)
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithMapV2.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408610#comment-13408610 ] 

BJ Peter DeLaCruz commented on CAMEL-5429:
------------------------------------------

Before I used "jmsMessageType=Object", the application was sending null in a message, and it worked. However, I ran into a problem when I was trying to send a Map of non-primitive, serialized objects. (See this issue: https://issues.apache.org/jira/browse/CAMEL-5293.) Using "jmsMessageType=Object" solved CAMEL-5293, but now I can no longer send null in a JMS message.
                
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408605#comment-13408605 ] 

Claus Ibsen commented on CAMEL-5429:
------------------------------------

Whats your use-case for sending JMS messages without any body?
                
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BJ Peter DeLaCruz updated CAMEL-5429:
-------------------------------------

    Attachment: TestCamelJmsWithMapV2.java

Test program.
                
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithMapV2.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BJ Peter DeLaCruz updated CAMEL-5429:
-------------------------------------

    Attachment: Exception.txt
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BJ Peter DeLaCruz updated CAMEL-5429:
-------------------------------------

    Attachment:     (was: Exception.txt)
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BJ Peter DeLaCruz updated CAMEL-5429:
-------------------------------------

    Attachment: TestCamelJmsWithMapV2.java
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithMapV2.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Comment Edited] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13408610#comment-13408610 ] 

BJ Peter DeLaCruz edited comment on CAMEL-5429 at 7/7/12 9:52 AM:
------------------------------------------------------------------

Before I used "jmsMessageType=Object", the application was sending null in a message, and it worked. However, I ran into a problem when I was trying to send a map of non-primitive, serialized objects. (See CAMEL-5293.) Using "jmsMessageType=Object" solved CAMEL-5293, but now I can no longer send null in a message.
                
      was (Author: bjpeter):
    Before I used "jmsMessageType=Object", the application was sending null in a message, and it worked. However, I ran into a problem when I was trying to send a Map of non-primitive, serialized objects. (See CAMEL-5293.) Using "jmsMessageType=Object" solved CAMEL-5293, but now I can no longer send null in a JMS message.
                  
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

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

Claus Ibsen updated CAMEL-5429:
-------------------------------

      Component/s: camel-jms
         Priority: Minor  (was: Major)
    Fix Version/s: 2.11
       Issue Type: Improvement  (was: Bug)

This is by design. 

We will add a new option {{allowNullBody}} you can configure to true, as in your use-case to allow sending messages with no message body.
                
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jms
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.11
>
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5429) Sending null in body when forcing JMS message type to Object throws an Exception

Posted by "BJ Peter DeLaCruz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

BJ Peter DeLaCruz updated CAMEL-5429:
-------------------------------------

    Attachment: TestCamelJmsWithNull.java
    
> Sending null in body when forcing JMS message type to Object throws an Exception
> --------------------------------------------------------------------------------
>
>                 Key: CAMEL-5429
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5429
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.9.0
>            Reporter: BJ Peter DeLaCruz
>         Attachments: Exception.txt, TestCamelJmsWithNull.java
>
>
> I set "jmsMessageType=Object", and when I try to send a null in the body, I get an exception. See program and log.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira