You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/06/17 13:05:20 UTC
[jira] [Commented] (QPID-4929) [Java AMQP 1.0 Client] Infinite
recursion attempting to write DeliveryAnnotations
[ https://issues.apache.org/jira/browse/QPID-4929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13685454#comment-13685454 ]
ASF subversion and git services commented on QPID-4929:
-------------------------------------------------------
Commit 1493713 from [~godfrer]
[ https://svn.apache.org/r1493713 ]
QPID-4929 : [Java AMQP 1.0 Client] Infinite recursion in encoding of DeliveryAnnotations
> [Java AMQP 1.0 Client] Infinite recursion attempting to write DeliveryAnnotations
> ---------------------------------------------------------------------------------
>
> Key: QPID-4929
> URL: https://issues.apache.org/jira/browse/QPID-4929
> Project: Qpid
> Issue Type: Bug
> Components: Java Client
> Reporter: Rob Godfrey
> Assignee: Rob Godfrey
> Fix For: 0.23
>
>
> Reported by Brian: http://qpid.2158936.n2.nabble.com/StackOverflowError-when-building-AMQP-message-td7594137.html#none
> Hi,
> I am new to AMQP 1.0. I was tried to write a simple AMQP sender in Java and I got the following error
> java.lang.StackOverflowError
> at org.apache.qpid.amqp_1_0.codec.UnsignedLongWriter$2.convertToByte(UnsignedLongWriter.java:65)
> at org.apache.qpid.amqp_1_0.codec.UnsignedLongWriter$2.convertToByte(UnsignedLongWriter.java:1)
> at org.apache.qpid.amqp_1_0.codec.FixedOneWriter.setValue(FixedOneWriter.java:75)
> at org.apache.qpid.amqp_1_0.codec.UnsignedLongWriter.setValue(UnsignedLongWriter.java:139)
> at org.apache.qpid.amqp_1_0.codec.UnsignedLongWriter.setValue(UnsignedLongWriter.java:1)
> at org.apache.qpid.amqp_1_0.type.codec.AMQPDescribedTypeRegistry.getValueWriter(AMQPDescribedTypeRegistry.java:362)
> at org.apache.qpid.amqp_1_0.codec.AbstractDescribedTypeWriter.createDescriptorWriter(AbstractDescribedTypeWriter.java:1
> This error only occurred when I tried to create DeliveryAnnotations object. If I don't create DeliveryAnnotations object, it works fine.
> My code is
> Collection<Section> sections = new ArrayList<Section>();
>
> Map map = new HashMap<String, String>();
> map.put("da_key", "da_val");
> DeliveryAnnotations da = new DeliveryAnnotations(map);
> sections.add(da);
>
> Data data = new Data(new Binary(("hello world").getBytes()));
> sections.add(data);
> Message myMessage = new Message(sections);
> mySender.send(myMessage);
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org