Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RabbitMQ client crashes when declaring a queue with additional arguments #3686

Closed
aashikam opened this issue Nov 21, 2022 · 0 comments · Fixed by ballerina-platform/module-ballerinax-rabbitmq#611
Assignees
Labels
module/rabbitmq Points/1 Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/PCM Protocol connector packages related issues Type/Bug

Comments

@aashikam
Copy link
Contributor

aashikam commented Nov 21, 2022

Description:
When trying to declare a queue with additional arguments passed to the arguments field in QueueConfig, the client crashes giving the following error.

Code snippet:

        map<anydata> args = {
            "x-message-ttl": 60000,
            "x-expires": 800000
        };
        check newClient->queueDeclare("MyQueue", { arguments: args });

Error:
error: java.lang.ClassCastException {"message":"class io.ballerina.runtime.internal.values.BmpStringValue cannot be cast to class java.lang.String (io.ballerina.runtime.internal.values.BmpStringValue is in unnamed module of loader 'app'; java.lang.String is in module java.base of loader 'bootstrap')"} at ballerinax.rabbitmq.2.Client:queueDeclare(client.bal:49) new:main(new.bal:12)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/rabbitmq Points/1 Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/PCM Protocol connector packages related issues Type/Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant