qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gordon Sim (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-5127) ClassCastException causes broker to exit
Date Thu, 23 Jan 2014 14:44:39 GMT

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

Gordon Sim commented on QPID-5127:
----------------------------------

I'm still seeing this issue on trunk, though not with the python tests any more. Using c++
qpid::messaging examples, a simple 0-10 based spout to a queue followed by a 1.0 based drain
from the same triggers it.

> ClassCastException causes broker to exit
> ----------------------------------------
>
>                 Key: QPID-5127
>                 URL: https://issues.apache.org/jira/browse/QPID-5127
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: 0.24
>         Environment: Fedora17, java 1.7
>            Reporter: Gordon Sim
>
> In running two of my 1.0 based tests against the java broker, it exited due to a ClassCastException.
The tests in question (qpid_tests.broker_1_0.translation.TranslationTests.test_translate_list_1/qpid_tests.broker_1_0.translation.TranslationTests.test_translate_map_1)
send a list message in 0-10 format and over 0-10, to a 1.0 receiver.
> {noformat}
> ########################################################################
> #
> # Unhandled Exception java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.Object;
in Thread pool-2-thread-3
> #
> # Exiting
> #
> ########################################################################
> java.lang.ClassCastException: [B cannot be cast to [Ljava.lang.Object;
> 	at org.apache.qpid.amqp_1_0.type.codec.AMQPDescribedTypeRegistry.getValueWriter(AMQPDescribedTypeRegistry.java:351)
> 	at org.apache.qpid.amqp_1_0.codec.CompoundWriter.writeFirstPass(CompoundWriter.java:307)
> 	at org.apache.qpid.amqp_1_0.codec.CompoundWriter.writeToBuffer(CompoundWriter.java:67)
> 	at org.apache.qpid.amqp_1_0.codec.CompoundWriter.writeToBuffer(CompoundWriter.java:58)
> 	at org.apache.qpid.amqp_1_0.codec.ListWriter.writeToBuffer(ListWriter.java:97)
> 	at org.apache.qpid.amqp_1_0.codec.AbstractDescribedTypeWriter.writeFirstPass(AbstractDescribedTypeWriter.java:136)
> 	at org.apache.qpid.amqp_1_0.codec.AbstractDescribedTypeWriter.writeToBuffer(AbstractDescribedTypeWriter.java:54)
> 	at org.apache.qpid.amqp_1_0.messaging.SectionEncoderImpl.encodeObject(SectionEncoderImpl.java:73)
> 	at org.apache.qpid.server.protocol.v1_0.MessageConverter_to_1_0.encodeConvertedMessage(MessageConverter_to_1_0.java:237)
> 	at org.apache.qpid.server.protocol.v1_0.MessageConverter_to_1_0.convertServerMessage(MessageConverter_to_1_0.java:163)
> 	at org.apache.qpid.server.protocol.v1_0.MessageConverter_to_1_0.convertToStoredMessage(MessageConverter_to_1_0.java:70)
> 	at org.apache.qpid.server.protocol.v1_0.MessageConverter_to_1_0.convert(MessageConverter_to_1_0.java:63)
> 	at org.apache.qpid.server.protocol.v1_0.MessageConverter_to_1_0.convert(MessageConverter_to_1_0.java:44)
> 	at org.apache.qpid.server.protocol.v1_0.Subscription_1_0.send(Subscription_1_0.java:213)
> 	at org.apache.qpid.server.protocol.v1_0.Subscription_1_0.send(Subscription_1_0.java:194)
> 	at org.apache.qpid.server.queue.SimpleAMQQueue.deliverMessage(SimpleAMQQueue.java:835)
> 	at org.apache.qpid.server.queue.SimpleAMQQueue.attemptDelivery(SimpleAMQQueue.java:1667)
> 	at org.apache.qpid.server.queue.SimpleAMQQueue.processQueue(SimpleAMQQueue.java:1834)
> 	at org.apache.qpid.server.queue.QueueRunner.run(QueueRunner.java:71)
> 	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 message was sent by Atlassian JIRA
(v6.1.5#6160)

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


Mime
View raw message