You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Todor Neykov (Jira)" <ji...@apache.org> on 2020/12/16 11:44:00 UTC

[jira] [Created] (AMQ-8103) Fail to set objet property

Todor Neykov created AMQ-8103:
---------------------------------

             Summary: Fail to set objet property
                 Key: AMQ-8103
                 URL: https://issues.apache.org/jira/browse/AMQ-8103
             Project: ActiveMQ
          Issue Type: Bug
            Reporter: Todor Neykov


Hi,

When I try to put object property to message it fail if value is not simple type.

ie. in my case,  I use javax.xml.namespace.QName(), but could be a List or whatever else,

This my call:
{code:java}
ObjectMessage message = session.createObjectMessage();
message.setObjectProperty("testKey", new javax.xml.namespace.QName("testValue"));{code}
I receive exception:

 
{code:java}
javax.jms.MessageFormatException: class javax.xml.namespace.QName is not a valid property type
 at org.apache.activemq.artemis.jms.client.ActiveMQMessage.setObjectProperty(ActiveMQMessage.java:699) ~[?:?]
{code}
I do fast check and it came from :
{code:java}
org.apache.activemq.artemis.utils.collections.TypedProperties#setObjectProperty(final SimpleString key, final Object value, final TypedProperties properties)
{code}
Is this a bug or I do something wrong ?

 

Best Regards,
Todor

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)