[
https://issues.apache.org/jira/browse/AMQ-8103?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todor Neykov updated AMQ-8103:
------------------------------
Summary: Fail to set Object property (was: Fail to set objet property)
> Fail to set Object property
> ---------------------------
>
> Key: AMQ-8103
> URL: https://issues.apache.org/jira/browse/AMQ-8103
> Project: ActiveMQ
> Issue Type: Bug
> Reporter: Todor Neykov
> Priority: Major
>
> 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)