Resource bundle error

Hi,

I was just trying to use the java library inside a JDK1.6.0_17 to convert an ODT to a PDF.
When I run my 2 line program, I get the following error:

java.util.MissingResourceException: Can' t find bundle
for base name com.sun.xml.stream.xerces.impl.msg.XMLMessages, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java: 1521)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1260)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:715)
at asposewobfuscated.lu.formatMessage(XMLMessageFormatter.java: 115)
at asposewobfuscated.oc.a(StaxErrorReporter.java: 93)
at asposewobfuscated.hd.reportFatalError(XMLScanner.java: 1394)
at asposewobfuscated.aq$f.next(XMLDocumentScannerImpl.java: 972)
at asposewobfuscated.aq.next(XMLDocumentScannerImpl.java: 353)
at asposewobfuscated.fi.next(XMLReaderImpl.java: 557)
at asposewobfuscated.fv.read(XmlTextReader.java: 55)
at asposewobfuscated.er.su(XmlReader.java: 39)
at asposewobfuscated.au.init(AnyXmlReader.java: 66)
at asposewobfuscated.au.(AnyXmlReader.java: 30)
at com.aspose.words.eb.(OdtPartReader.java: 14)
at com.aspose.words.av.a(OdtStylesReader.java: 25)
at com.aspose.words.oi.read(OdtReader.java: 54)
at com.aspose.words.Document.b(Document.java: 1316)
at com.aspose.words.Document.a(Document.java: 1246)
at com.aspose.words.Document.(Document.java: 143)
at com.aspose.words.Document.(Document.java: 117)
at aspose.AsposeTest.main(AsposeTest.java: 15)

So I suppose it tries to show me the real error but fails doing so. Apparently the JVM doesn’t contain this resource bundle?

I got this working now (odt file was corrupt).
But this still is a problem because the Aspose code tries to use some resource bundle that doesn’t seem to be available, when something goes wrong.

Now I see a next problem. When I try this with a more advanced ODT document (for example the ODT1.2 specification itself), the delivered PDF is corrupt according to Adobe Acrobat.

I uploaded both the ODT and the (corrupt) PDF file as examples.

Any ideas?

Hi

Thank you for reporting this problem to us. I managed to reproduce it on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
Also, please note, currently conversion to PDF in Aspose.Words for Java is beta. This feature will come out of beta in the upcoming release. We will let you know once it is available.
Best regards.

The issues you have found earlier (filed as 14460) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(18)

We are happy to inform you that the first auto-ported version of Aspose.Words for Java is ready. This version supports converting documents to PDF. You can get it from here.

Best regards,
Aspose.Words team

(31)