Hi
We are seeing a few NPEs in production while using the aspose note product. Sadly due to this we cannot provide the files that are causing this issue.
java.lang.NullPointerException - at com.aspose.note.i.b(Unknown Source)
~[aspose-note-17.11-jdk17.jar:17.11] - at com.aspose.note.i.a(Unknown Source)
~[aspose-note-17.11-jdk17.jar:17.11] - at com.aspose.note.i.c(Unknown Source)
~[aspose-note-17.11-jdk17.jar:17.11] - at com.aspose.note.o.a(Unknown Source)
~[aspose-note-17.11-jdk17.jar:17.11] - at com.aspose.note.Document.a(Unknown Source)
~[aspose-note-17.11-jdk17.jar:17.11] - at com.aspose.note.Document.(Unknown Source)
~[aspose-note-17.11-jdk17.jar:17.11] - at com.aspose.note.Document.(Unknown Source)
~[aspose-note-17.11-jdk17.jar:17.11] - at com.aspose.note.Document.(Unknown Source) ~[aspose-note-17.11-jdk17.jar:17.11]
The way we are invoking the library is as follows:
try (TikaInputStream tis = TikaInputStream.get(sourceFile);
FileOutputStream fos = new FileOutputStream(toFile)) {
if(!AsposeLicenseConfig.getInstance().licensed()) {
logger.info("Aspose license is not active");
} else {
logger.info("Aspose license is active");
}
Document doc = new Document(tis);
fos.write(doc.getText().getBytes());
fos.flush();
return true;
}
Are there any specific clues we can look at to help troubleshoot this?
What is the support for OneNote 2016? We are suspecting it might be due to support for some of the new file formats but we have no way to validate as all our tests in house passes with OneNote.
Current version of aspose we are running:
- aspose note 17.11
- Runs on ubuntu machines with the license file on it.
Any help here would be greatly appreciated.
Thanks
Krishnan