Msg to pdf conversion is hanging in java

I try to convert an msg file to pdf using maven dependency version 24.9. But the conversion is hanging
at the convert step. Here is the code

String licensePath = “GroupDocs.ConversionforJava.lic”;
License license = new License();
license.setLicense(Main.class.getClassLoader().getResource(licensePath).getPath());
Converter converter = new Converter(Main.class.getClassLoader().getResource(“message.msg”).getPath());
converter.convert(“msg-groupdocs.pdf”, new PdfConvertOptions());

This topic has been moved to the related forum: Msg to pdf conversion is hanging in java - Free Support Forum - groupdocs.com