opening customer generated word files I encounter the following exceptions in rare cases:
ClassCastException: com.aspose.words.bf (10 out of 2000 files)
ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: Provider com.aspose.ms.java.utf7charset.provider.CharsetProvider not found (3 out of 2000 files)
Find attached one file for each case.
Thanks for your request.
1. no_provider.doc file is not actually DOC file. It is PDF document. Aspose.Words does not support opening PDF documents. That is why UnsupportedFileFormatException is thrown when you try to open it.
2. class_cast.doc. I managed to reproduce the problem. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
ad 1. this seems to be an embarassing fault on my side. Sorry.