aws / aws/aws-iot-device-sdk-java-v2

Native executable (not working with AWS CRT) again

Open
#598 11 comments 0 reactions 0 assignees View on GitHub
bug p2
Dominant language
Java
Stars
138
Forks
80
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

I get an issue which looks like https://github.com/aws/aws-iot-device-sdk-java-v2/issues/408.

The version is 1.21.0.
Java Version: 9.0
Could some one help this? Thanks.

09-27 11:04:32.749 27790 27790 D AndroidRuntime: Shutting down VM
09-27 11:04:32.752 27790 27790 E AndroidRuntime: FATAL EXCEPTION: main
09-27 11:04:32.752 27790 27790 E AndroidRuntime: Process: com.xxxxxxxxx.android.aws_iot_device_service, PID: 27790
09-27 11:04:32.752 27790 27790 E AndroidRuntime: java.lang.ExceptionInInitializerError
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at software.amazon.awssdk.crt.CrtResource.(CrtResource.java:104)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at software.amazon.awssdk.iot.AwsIotMqtt5ClientBuilder.newDirectMqttBuilderWithMtlsFromPath(AwsIotMqtt5ClientBuilder.java:74)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at com.xxxxxxxxx.android.aws_iot_device_service.AwsIotDeviceService.setupMqttClientProperty(AwsIotDeviceService.java:211)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at com.xxxxxxxxx.android.aws_iot_device_service.AwsIotDeviceService.onCreate(AwsIotDeviceService.java:43)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:3953)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:219)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1875)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at android.os.Looper.loop(Looper.java:252)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7404)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: Caused by: software.amazon.awssdk.crt.CrtRuntimeException: software.amazon.awssdk.crt.CrtRuntimeException: Unable to unpack AWS CRT library UNKNOWN(-1) UNKNOWN(-1)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at software.amazon.awssdk.crt.CRT.loadLibraryFromJar(CRT.java:381)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: at software.amazon.awssdk.crt.CRT.(CRT.java:45)
09-27 11:04:32.752 27790 27790 E AndroidRuntime: ... 13 more

### Expected Behavior

Pass the crt and run continue.

### Current Behavior

Pass the crt and run continue.

### Reproduction Steps

Run the code. (10/10)

AwsIotMqtt5ClientBuilder builder =
AwsIotMqtt5ClientBuilder.newDirectMqttBuilderWithMtlsFromPath(
clientEndpoint, certificateData, keyData);

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### SDK version used

1.21.0

### Environment details (OS name and version, etc.)

Android 10 (AOSP)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.