activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-5623) JMS Properties Regression
Date Sun, 01 Mar 2015 16:26:04 GMT

    [ https://issues.apache.org/jira/browse/AMQ-5623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14342314#comment-14342314
] 

John D. Ament commented on AMQ-5623:
------------------------------------

I don't think that's your full stack trace, however I think you're getting a class not found.

Are you not including all dependencies on your classpath?

> 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)

Mime
View raw message