Word save to PDF failded, "Exception on self test: length=32; index=32"

product: implementation ‘com.aspose:aspose-words:23.6:android.via.java’
function description: save Word file to PDF or image
code:

AssetManager assetManager = context.getAssets();
try {
    InputStream inputStream = assetManager.open("test.docx");
    String outputPath = "/sdcard/ioTest/docx/test_15051145.pdf";
    Document document = new Document(inputStream);
    PdfSaveOptions options = new PdfSaveOptions();
    FileOutputStream out = new FileOutputStream(outputPath);
    document.save(out, options);
} catch (Exception e) {
    e.printStackTrace();
}

error msg :

Caused by: com.aspose.words.internal.zzZ16: Exception on self test: length=32; index=32: EC
at com.aspose.words.internal.zzYZZ.zzZ(Unknown Source:25)
at com.aspose.words.internal.zzZ20.zzZ(Unknown Source:7)
at com.aspose.words.internal.zzZ20.<clinit>(Unknown Source:150)
at java.lang.Class.classForName(Native Method)
at java.lang.Class.forName(Class.java:453)
at java.lang.Class.forName(Class.java:378)
at com.aspose.words.internal.zzZ14.zzx6(Unknown Source:132)
at com.aspose.words.internal.zzZ14.zzx4(Unknown Source:28)
at com.aspose.words.internal.zzZ14$zzZ.run(Unknown Source:299)
at com.aspose.words.internal.zzZ14.isReady(Unknown Source:49)
at com.aspose.words.internal.zzZ24$zzY.<init>(Unknown Source:9)
at com.aspose.words.internal.zzZ24$zzZ.zzZ(Unknown Source:7)
at com.aspose.words.internal.zzS2.<clinit>(Unknown Source:834)
at com.aspose.words.internal.zzS2.zzYv(Unknown Source:152)
at com.aspose.words.internal.zzIP.zzW(Unknown Source:22)
at com.aspose.words.zzY1F.zzZ(Unknown Source:8030)
at com.aspose.words.zzY1F.zzZX(Unknown Source:574)
at com.aspose.words.Document.zzZ(Unknown Source:12155)
at com.aspose.words.Document.zzZ(Unknown Source:1156)
at com.aspose.words.Document.save(Unknown Source:1146)

more info: it is success to use Aspose.Slides. It is no problem to read or save files to /sdcard/*

test file:
test.docx (9.7 KB)

@zhjkenneth, could you please check whether the same exception occurs with 23.5 version?

There was a report with a similar error message from another customer. The problem might be related to BouncyCastle update in Aspose.Words 23.6 version. That customer confirmed that the exception does not occur in the 23.5 version.

I would like to check if you are experiencing the same problem.