You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Marcel M (JIRA)" <ji...@apache.org> on 2015/03/01 17:16:04 UTC
[jira] [Created] (AMQ-5623) JMS Properties Regression
Marcel M created AMQ-5623:
-----------------------------
Summary: JMS Properties Regression
Key: AMQ-5623
URL: https://issues.apache.org/jira/browse/AMQ-5623
Project: ActiveMQ
Issue Type: Bug
Affects Versions: 5.11.0
Environment: Raspberry Pi 2
3.18.7-v7+ #755 SMP PREEMPT Thu Feb 12 17:20:48 GMT 2015 armv7l GNU/Linux
java -version
java version "1.8.0"
Java(TM) SE Runtime Environment (build 1.8.0-b132)
Java HotSpot(TM) Client VM (build 25.0-b70, mixed mode)
Reporter: Marcel M
Hi,
I have an java active-mq client running on an raspberry pi 2. The java client uses jms.
With activemq-client-5.11.0.jar the app does not work anymore. However if I switch back to activemq-all-5.7.0.jar my app runs. Not sure if the problem is introduced in 5.11 but it has to be introduced between 5.7 and 5.11.
When I wan't to set a JMS Long property with:
final TextMessage message = getSession().createTextMessage();
message.setLongProperty("myProperty",mylong);
it crashes on the setLongProperty. Stacktrace below:
{quote}
org/fusesource/hawtbuf/UTF8Buffer
org.apache.activemq.command.ActiveMQMessage.setObjectProperty(ActiveMQMessage.java:500)
org.apache.activemq.command.ActiveMQMessage.setObjectProperty(ActiveMQMessage.java:488)
org.apache.activemq.command.ActiveMQMessage.setLongProperty(ActiveMQMessage.java:720)
{quote}
I have a very simlar problem when my app tries to copy all jms attributes of a JMS Message.
Looking at ActiveMQMessage.java on line 500 gives
{quote}
if (value instanceof UTF8Buffer) {
{quote}
where value is now of type Object (converted in ActiveMQMessage.java:720)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)