Jan Šmucr created ARTEMIS-3901:
----------------------------------

             Summary: artemis perf client --durable fails on exception
                 Key: ARTEMIS-3901
                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3901
             Project: ActiveMQ Artemis
          Issue Type: Bug
          Components: Broker
    Affects Versions: 2.24.0
            Reporter: Jan Šmucr
         Attachments: CliPerfClientTest.java

The cli command
{noformat}
bin/artemis perf client --durable{noformat}
fails with an exception:
{noformat}
java.lang.ClassCastException: class 
org.apache.activemq.artemis.jms.client.ActiveMQQueue cannot be cast to class 
javax.jms.Topic (org.apache.activemq.artemis.jms.client.ActiveMQQueue and 
javax.jms.Topic are in unnamed module of loader 'app')

        at 
org.apache.activemq.artemis.cli.commands.messages.perf.MessageListenerBenchmark.start(MessageListenerBenchmark.java:213)
        at 
org.apache.activemq.artemis.cli.commands.messages.perf.PerfClientCommand.onExecuteBenchmark(PerfClientCommand.java:167)
        at 
org.apache.activemq.cli.test.CliPerfClientTest$1.onExecuteBenchmark(CliPerfClientTest.java:66)
        at 
org.apache.activemq.artemis.cli.commands.messages.perf.PerfCommand.execute(PerfCommand.java:79)
        at 
org.apache.activemq.cli.test.CliPerfClientTest.start(CliPerfClientTest.java:69)
        at 
org.apache.activemq.cli.test.CliPerfClientTest.testDurableStarts(CliPerfClientTest.java:79){noformat}
Non-durable method works fine.

See the attached test file.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to