You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Axel Podehl (JIRA)" <ji...@apache.org> on 2013/07/10 16:49:48 UTC

[jira] [Closed] (AMQ-4627) publishing AMQP1.0 message: java.lang.NumberFormatException: Value "2391065073150853120" lies outside the range [0-4294967296).

     [ https://issues.apache.org/jira/browse/AMQ-4627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Axel Podehl closed AMQ-4627.
----------------------------

    Resolution: Invalid

my mistake, JMS ttl is the time in milliseconds util expiry.

Even a very big expiration works fine:

      // expire in 1 year
      System.err.println(100*356*24*60*60*1000);
      msgProducer.send( txtMsg, 2, 4, 100*356*24*60*60*1000 );


                
> publishing AMQP1.0 message: java.lang.NumberFormatException: Value "2391065073150853120" lies outside the range [0-4294967296).
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-4627
>                 URL: https://issues.apache.org/jira/browse/AMQ-4627
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.8.0
>         Environment: all
>            Reporter: Axel Podehl
>
> Hi,
> I'm using the amqp_1_0 JMS API to publish a message to an embedded AMQP broker. But even though I think there's nothing wrong with this message, I get the following exception on producer.send():
> java.lang.NumberFormatException: Value "2391065073150853120" lies outside the range [0-4294967296).
> Is that a bug or am I doing something wrong ?
> I'll write a JUnit Test case once I get some more time...
>   Axel
> DEBUG: 2013-07-10 10:16:45,605 [Thread-11] [ChannelJNI]- creating Topic on org.apache.qpid.amqp_1_0.jms.impl.SessionImpl@a0e990 with destName=RE.TEST
> DEBUG: 2013-07-10 10:16:45,605 [Thread-11] [ChannelJNI]- created JMS Topic: org.apache.qpid.amqp_1_0.jms.impl.TopicImpl@6a2cd36d
> TRACE: 2013-07-10 10:16:45,605 [Thread-11] [ChannelJNI]- sending message to destination org.apache.qpid.amqp_1_0.jms.impl.TopicImpl@6a2cd36d with deliveryMode=2, priority=4, timeToLive=2391065073150853120
> TRACE: 2013-07-10 10:16:45,606 [Thread-11] [ChannelJNI]- 
> JMSDestination=org.apache.qpid.amqp_1_0.jms.impl.TopicImpl@273c92
> JMSReplyTo=null
> JMSCorrelationID=null
> JMSDeliveryMode=2
> JMSExpiration=0
> JMSMessageID=null
> JMSPriority=4
> JMSRedelivered=false
> JMSTimestamp=1373027655736
> JMSType=null
>  --- header ---
>      (empty)
>  msg.toString(): org.apache.qpid.amqp_1_0.jms.impl.TextMessageImpl@d510e8
>  ((TextMessage)msg).getText(): <data jsxid="jsxroot">
> <record jsxid="EMS" jsximg="" jsxtext="TIBCO EMS (EMS)"/>
> <record jsxid="MQ" jsximg="" jsxtext="IBM MQSeries (MQ)"/>
> <record jsxid="JMS" jsximg="" jsxtext="JMS over JNI (JMS)"/>
> </data>
> ERROR: 2013-07-10 10:16:45,638 [Thread-11] [ChannelJNI]- Could not send JMS Message: Value "2391065073150853120" lies outside the range [0-4294967296).
> java.lang.NumberFormatException: Value "2391065073150853120" lies outside the range [0-4294967296).
> 	at org.apache.qpid.amqp_1_0.type.UnsignedInteger.valueOf(UnsignedInteger.java:144)
> 	at org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl.send(MessageProducerImpl.java:258)
> 	at org.apache.qpid.amqp_1_0.jms.impl.MessageProducerImpl.send(MessageProducerImpl.java:364)
> 	at ChannelJNI.producerSendDestination(ChannelJNI.java:702)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira