title: How do I solve this below exception I get when converting docx to pdf using Documents4j library?
body: <p>I am using the below code to convert docx to pdf.</p>
  
  <pre><code>    public static void main(String[] args) {
      File inputdocxfile = new File(System.getProperty("user.dir") + "/src/test/resources/files/output/");
  
      File outputpdffile = new File(System.getProperty("user.dir") + "/src/test/resources/files/output/"
              + "CustomerOutputdocx.pdf");
      IConverter converter = LocalConverter.builder().baseFolder(inputdocxfile)
              .workerPool(20, 25, 2, TimeUnit.SECONDS).processTimeout(5, TimeUnit.SECONDS).build();
  
      Future&lt;Boolean&gt; conversion = converter.convert(inputdocxfile).as(DocumentType.MS_WORD).to(outputpdffile)
              .as(DocumentType.PDF).prioritizeWith(1000).schedule();
  }
  </code></pre>
  
  <p>and I am getting this below exception. I am using the same code as mentioned in the documents4j official website.</p>
  
  <pre><code>Exception in thread "main" java.lang.IllegalStateException: The application was started without any registered or class-path discovered converters.
  at com.documents4j.conversion.ExternalConverterDiscovery.validate(ExternalConverterDiscovery.java:68)
  at com.documents4j.conversion.ExternalConverterDiscovery.loadConfiguration(ExternalConverterDiscovery.java:85)
  at com.documents4j.conversion.DefaultConversionManager.&lt;init&gt;(DefaultConversionManager.java:22)
  at com.documents4j.job.LocalConverter.makeConversionManager(LocalConverter.java:74)
  at com.documents4j.job.LocalConverter.&lt;init&gt;(LocalConverter.java:47)
  at com.documents4j.job.LocalConverter$Builder.build(LocalConverter.java:162)
  at com.apakgroup.docgen.converters.ConvertToPdf.main(ConvertToPdf.java:19)
  Exception in thread "Shutdown hook: com.documents4j.job.LocalConverter" java.lang.NullPointerException
  at com.documents4j.job.LocalConverter.shutDown(LocalConverter.java:95)
  at com.documents4j.job.ConverterAdapter$ConverterShutdownHook.run(ConverterAdapter.java:125)
  </code></pre>