Word document to PDF conversion java.lang.NoClassDefFoundError

When running the newest version of Java Conversion the below error is thrown when trying to convert a Word Doc to PDF. I have verified that my code is placing the pre-converted file into the storage path. Below are the two lines to execute the conversion.

// Converting Document
ConvertedDocument converted = conversionHandler.convert(“C:\temp\storage\” + fileName, saveOptions); converted.save(object.getObjectId().toString() + “.” + converted.getFileType());

java.lang.NoClassDefFoundError: Could not initialize class com.groupdocs.conversion.internal.c.a.w.internal.nh
at com.groupdocs.conversion.internal.c.a.w.internal.na.hdx(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.uX.a(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.uX.(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZRC.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzMJ.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzD7.zzY(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzD7.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzA5.zzH(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzA5.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzC4.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzC4.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZM3.zzX(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZM3.zzY(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz0A.zzZTx(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz0D.zzZTF(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZ7K.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZ7K.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZ7K.zzZsk(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZ7K.zzZss(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZMG.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZMU.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZMU.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zz0F.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.zzZGY.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.zzZ(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.Document.save(Unknown Source)
at com.groupdocs.conversion.domain.savers.words.WordsToPdfSaver.save(Unknown Source)
at com.groupdocs.conversion.domain.documents.WordsDocument.save(Unknown Source)
at com.groupdocs.conversion.operations.f.aI(Unknown Source)
at com.groupdocs.conversion.operations.F.execute(Unknown Source)
at com.groupdocs.conversion.converter.pdf.PdfConverter.convert(Unknown Source)
at com.groupdocs.conversion.converter.pdf.PdfConverter.convert(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.aH(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)
at com.groupdocs.conversion.handler.ConversionHandler.convert(Unknown Source)

Same for txt to PDF

java.lang.NoClassDefFoundError: Could not initialize class com.groupdocs.conversion.internal.c.a.w.internal.nh

@john.harrison,

In order to investigate this issue at our end, we need following details:

  • Problematic DOC and TXT files
  • Sample (console based) project using that issue could be reproduced