-
Notifications
You must be signed in to change notification settings - Fork 549
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
Kinesis saveRecord failing with null pointer exception #2533
Comments
Also seeing a related submitAllRecords error, but this is returning the AmazonClientException : |
Having noticed an update AWS SDK of 2.26.0, we still see exceptions: |
@hassanctech Please take a look at this. |
We are still seeing this with the AWS SDK v2.73.0 |
Describe the bug
Rather than the ACE exception, it looks like the internal code is failing with a null pointer:
05-24 16:33:50.234 12079 7514 E AndroidRuntime: java.lang.NullPointerException 05-24 16:33:50.234 12079 7514 E AndroidRuntime: at java.io.FileOutputStream.<init>(FileOutputStream.java:227) 05-24 16:33:50.234 12079 7514 E AndroidRuntime: at com.amazonaws.mobileconnectors.kinesis.kinesisrecorder.FileManager.newOutputStream(FileManager.java:115) 05-24 16:33:50.234 12079 7514 E AndroidRuntime: at com.amazonaws.mobileconnectors.kinesis.kinesisrecorder.FileRecordStore.tryInitializeWriter(FileRecordStore.java:121) 05-24 16:33:50.234 12079 7514 E AndroidRuntime: at com.amazonaws.mobileconnectors.kinesis.kinesisrecorder.FileRecordStore.put(FileRecordStore.java:80) 05-24 16:33:50.234 12079 7514 E AndroidRuntime: at com.amazonaws.mobileconnectors.kinesis.kinesisrecorder.AbstractKinesisRecorder.saveRecord(AbstractKinesisRecorder.java:100) 05-24 16:33:50.234 12079 7514 E AndroidRuntime: at com.amazonaws.mobileconnectors.kinesis.kinesisrecorder.KinesisRecorder.saveRecord(KinesisRecorder.java:240)
To Reproduce
It is difficult to say what is triggering it, but it is failing after running for a few hours.
Which AWS service(s) are affected?
Kinesis
Expected behavior
No crash or an ACE exception.
Environment Information (please complete the following information):
AWS Android SDK Version:
com.amazonaws:aws-android-sdk-kinesis:2.18.0
other AWS SDKs are 2.19.0
Device: Pixel 3A
Android Version: 11
Specific to simulators: No
The text was updated successfully, but these errors were encountered: