qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Godfrey (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (QPID-6003) [Java Broker] Message conversion from 1.0 to 0-10 does not convert AMQP 1.0 types in maps
Date Mon, 18 Aug 2014 11:45:18 GMT

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

Rob Godfrey updated QPID-6003:
------------------------------

    Status: Reviewable  (was: In Progress)

> [Java Broker] Message conversion from 1.0 to 0-10 does not convert AMQP 1.0 types in
maps
> -----------------------------------------------------------------------------------------
>
>                 Key: QPID-6003
>                 URL: https://issues.apache.org/jira/browse/QPID-6003
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Rob Godfrey
>            Assignee: Rob Godfrey
>             Fix For: 0.31
>
>
> When testing the 0.30 release [~gsim] encountered the following exception
> {noformat}
>  java.lang.IllegalArgumentException: unable to resolve type: class org.apache.qpid.amqp_1_0.type.UnsignedInteger,
1
>         at org.apache.qpid.transport.codec.AbstractEncoder.encoding(AbstractEncoder.java:305)
>         at org.apache.qpid.transport.codec.AbstractEncoder.writeMapEntries(AbstractEncoder.java:362)
>         at org.apache.qpid.transport.codec.AbstractEncoder.writeMap(AbstractEncoder.java:351)
>         at org.apache.qpid.transport.codec.BBEncoder.writeMap(BBEncoder.java:35)
>         at org.apache.qpid.transport.MessageProperties.write(MessageProperties.java:382)
>         at org.apache.qpid.transport.codec.AbstractEncoder.writeStruct32(AbstractEncoder.java:288)
>         at org.apache.qpid.transport.codec.BBEncoder.writeStruct32(BBEncoder.java:35)
>         at org.apache.qpid.transport.network.Disassembler.method(Disassembler.java:214)
>         at org.apache.qpid.transport.network.Disassembler.command(Disassembler.java:172)
>         at org.apache.qpid.transport.network.Disassembler.command(Disassembler.java:48)
>         at org.apache.qpid.transport.Method.delegate(Method.java:159)
>         at org.apache.qpid.transport.network.Disassembler.send(Disassembler.java:73)
>         at org.apache.qpid.transport.network.Disassembler.send(Disassembler.java:48)
>         at org.apache.qpid.transport.Connection.send(Connection.java:407)
>         at org.apache.qpid.server.protocol.v0_10.ServerConnection.send(ServerConnection.java:543)
>         at org.apache.qpid.transport.Session.send(Session.java:602)
>         at org.apache.qpid.transport.Session.invoke(Session.java:772)
>         at org.apache.qpid.server.protocol.v0_10.ServerSession.sendMessage(ServerSession.java:263)
>         at org.apache.qpid.server.protocol.v0_10.ConsumerTarget_0_10.send(ConsumerTarget_0_10.java:304)
>         at org.apache.qpid.server.queue.QueueConsumerImpl.send(QueueConsumerImpl.java:476)
>         at org.apache.qpid.server.queue.AbstractQueue.deliverMessage(AbstractQueue.java:1248)
>         at org.apache.qpid.server.queue.AbstractQueue.attemptDelivery(AbstractQueue.java:2003)
>         at org.apache.qpid.server.queue.AbstractQueue.processQueue(AbstractQueue.java:2170)
>         at org.apache.qpid.server.queue.QueueRunner$1.run(QueueRunner.java:77)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:356)
>         at org.apache.qpid.server.queue.QueueRunner.run(QueueRunner.java:68)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:724)
> {noformat}
> this is due to the conversions taking a Map straight from a 1.0 message and pushing it
through the 0-10 codec.  
> Instead the Map should first be sanitised to convert AMQP 1.0 specific types 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message