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

aws-iot-device-sdk-python-v2 support mqtt5's share-pubsub,but aws-iot-device-sdk-java-v2 exception when use mqtt5's share-pubsub #463

Closed
skiyubon opened this issue Aug 23, 2023 · 3 comments
Labels
bug This issue is a bug. p2 This is a standard priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet.

Comments

@skiyubon
Copy link

skiyubon commented Aug 23, 2023

Describe the bug

image

Expected Behavior

aws-iot-device-sdk-java-v2 should be same with aws-iot-device-sdk-python-v2 when use mqtt5's share-pubsub

  1. Customized topic is work successful (both python-sdk and java-sdk)

  2. this bug occupy when topic is shadow's topic (only java-sdk error)
    cmdData.input_topic = "$aws/things/redbeeDoorbell/shadow/name/redbee_shadow/update";
    String input_sharedTopic = "$share/" + cmdData.input_groupIdentifier + "/" + cmdData.input_topic + "/accepted";

  3. aws-iot-device-sdk-python-v2 is work successful even if the topic is shadow's

Current Behavior

Exception in thread "mqtt5.sharedsubscription.SharedSubscription.main()" software.amazon.awssdk.crt.CrtRuntimeException: Mqtt5Client.subscribe: Unsuccessful subscribe - error code: -1 (aws_last_error: AWS_ERROR_MQTT5_UNSUBSCRIBE_OPTIONS_VALIDATION(5145), Invalid mqtt5 unsubscribe packet options value.) AWS_ERROR_MQTT5_UNSUBSCRIBE_OPTIONS_VALIDATION(5145)
at software.amazon.awssdk.crt.mqtt5.Mqtt5Client.mqtt5ClientInternalSubscribe(Native Method)
at software.amazon.awssdk.crt.mqtt5.Mqtt5Client.subscribe(Mqtt5Client.java:165)
at mqtt5.sharedsubscription.SharedSubscription.main(SharedSubscription.java:232)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
at java.base/java.lang.Thread.run(Thread.java:834)
Exception encountered: java.util.concurrent.ExecutionException: software.amazon.awssdk.crt.CrtRuntimeException: Error while processing mqtt5 operational state AWS_ERROR_MQTT5_OPERATION_PROCESSING_FAILURE(5158)

Reproduction Steps

mvn compile exec:java -pl samples/Mqtt5/SharedSubscription -Dexec.mainClass=mqtt5.sharedsubscription.SharedSubscription

Possible Solution

No response

Additional Information/Context

No response

SDK version used

software.amazon.awssdk.iotdevicesdk aws-iot-device-sdk 1.15.0

Environment details (OS name and version, etc.)

mac m1

@skiyubon skiyubon added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Aug 23, 2023
@bretambrose
Copy link
Contributor

This will be fixed as soon as https://github.com/aws/aws-iot-device-sdk-java-v2/releases/tag/v1.16.0 gets published and indexed on maven central.

@bretambrose bretambrose removed the needs-triage This issue or PR still needs to be triaged. label Aug 23, 2023
@jmklix jmklix added pending-release This issue will be fixed by an approved PR that hasn't been released yet. p2 This is a standard priority issue labels Aug 23, 2023
@bretambrose
Copy link
Contributor

v1.16.0 is available in maven now.

@github-actions
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. p2 This is a standard priority issue pending-release This issue will be fixed by an approved PR that hasn't been released yet.
Projects
None yet
Development

No branches or pull requests

3 participants