[
https://issues.apache.org/jira/browse/QPID-5127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13779954#comment-13779954
]
Gordon Sim commented on QPID-5127:
----------------------------------
To run the tests you need the swig client on your PYTHONPATH, along with the
test libs, qmf and broker libs etc used for the 0-10 python tests also. You'll
also need the proton lib on your path and the 1.0 clienmt support module
loaded. Finally you need to export QPID_USE_SWIG_CLIENT=1.
Assuming your cpp build dir is <build>, and your qpid source tree is <qpid>:
export
PYTHONPATH=<build>/cpp/build/bindings/qpid/python:<qpid>python:<qpid>tools/src/py:<qpid>/tests/src/py:<qpid>/extras/qmf/src/py
export QPID_USE_SWIG_CLIENT=1
QPID_LOAD_MODULE=<build>/src/amqpc.so <qpid>/qpid-python-test -m
qpid_tests.broker_1_0.translation -b guest/guest@localhost
> 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 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: [email protected]
For additional commands, e-mail: [email protected]