We're sorry GroupDocs doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.com

java.lang.UnsatisfiedLinkError: com.groupdocs.conversion.internal.c.a.w.WindowsNativeCall.readRegistryStringValues

When converting a .EML Email Message File to PDF using code below -

		PdfConvertOptions options = new PdfConvertOptions();
		options.setFormat(PdfFileType.Pdf);
		FileOutputStream fo = null;
		try {
			fo = new FileOutputStream(new File("<File Name>"));
			converter.convert(fo, options);
                            fo.flush();
                            fo.close();     
		} catch (Exception e) {
			e.printStackTrace();
                  }

Receiving the Error as below -

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.groupdocs.conversion.internal.c.a.ps.internal.gJ.c (file:/E:/Program%20Files/Apache%20Software%20Foundation/Tomcat%209.0/webapps/TWS/WEB-INF/lib/groupdocs-conversion-21.7.jar) to field java.io.ByteArrayInputStream.buf
WARNING: Please consider reporting this to the maintainers of com.groupdocs.conversion.internal.c.a.ps.internal.gJ.c
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Jan 27, 2022 11:46:01 AM com.groupdocs.conversion.internal.c.a.w.internal.Ny u
SEVERE:
java.lang.UnsatisfiedLinkError: com.groupdocs.conversion.internal.c.a.w.WindowsNativeCall.readRegistryStringValues(ILjava/lang/String;)Ljava/util/Map;
at com.groupdocs.conversion.internal.c.a.w.WindowsNativeCall.readRegistryStringValues(Native Method)
at com.groupdocs.conversion.internal.c.a.w.internal.Qi.readRegistryStringValues(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.sl.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.abt.piA(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.abt.b(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.SystemFontSource.getFontDataInternal(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.Kn.oPU(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.Kn.oPT(Unknown Source)
at com.groupdocs.conversion.internal.c.a.w.internal.Rs$1.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

1 Like

@rahlawat

Please share following details and we’ll look into this issue:

  • API version that you are using (e.g. 20.1, 21.10)
  • Problematic EML file

Am on version 21.7

FileOutputStream fo = null ;

try {

fo = new FileOutputStream(nmout);
//Exception at step below
converter.convert(fo, options);

} catch (Exception e) {

e.printStackTrace();

}

The PDF file is generated at the highlighted step. If I just ignore the exception at the same step, then it looks just fine.

eml_files.zip (14.0 KB)

@rahlawat

This issue is reproduced at our end. Hence, we’ve logged it in our internal issue tracking system with ID CONVERSIONJAVA-1558. It’ll be now further investigated and we’ll see the root cause of this exception. You’ll be notified in case of any update.