Hi,
I use aspose to convert docx document to pdf document.
My code is quite simple (from the documentation) :
public void convertDocxToPdf(String docPathName, String finalPathPdf) {
System.out.println("CONVERT - SOURCE: " + docPathName);
System.out.println("CONVERT - TARGET PDF: " + finalPathPdf);
try {
//-- Open Document as Aspose document
com.aspose.words.Document wpd = new com.aspose.words.Document(docPathName);
//-- Convert to PDF
wpd.save(finalPathPdf, SaveFormat.PDF);
}
catch(Exception e) {
e.printStackTrace();
}
}
Everything seems to be OK (daily usage) but when I undeployed the war from the tomcat yesterday night I get some frightening warning/error :
21-Oct-2020 23:15:46.553 SEVERE [http-nio-8081-exec-760] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [crm] created a ThreadLocal with key of type [com.aspose.words.internal.zzP8$1] (value [com.aspose.words.internal.zzP8$1@4cd46986]) and a value of type [com.aspose.words.internal.zzFD] (value [com.aspose.words.internal.zzFD@5cc6b71e]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Oct-2020 23:15:46.554 SEVERE [http-nio-8081-exec-760] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [crm] created a ThreadLocal with key of type [com.aspose.words.internal.zz1N$1] (value [com.aspose.words.internal.zz1N$1@1698996d]) and a value of type [com.aspose.words.internal.zz1P] (value [white]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
21-Oct-2020 23:15:46.554 SEVERE [http-nio-8081-exec-760] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [crm] created a ThreadLocal with key of type [com.aspose.words.internal.zz1N$1] (value [com.aspose.words.internal.zz1N$1@504eef8e]) and a value of type [com.aspose.words.internal.zz1P] (value [NUMPAGES]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
(this appears multiple times in the catalina logs when undeployed).
Can you help me ?
Jonathan