You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that attempting to close a non-asyncMailer (either explicitly via .close() or implicitly via try-with) will cause it to throw a ModuleLoaderException.
Exception in thread "main" org.simplejavamail.internal.moduleloader.ModuleLoaderException: Batch module not found, make sure it is on the classpath (https://github.com/bbottema/simple-java-mail/tree/develop/modules/batch-module)
at org.simplejavamail.internal.moduleloader.ModuleLoader.loadModule(ModuleLoader.java:133)
at org.simplejavamail.internal.moduleloader.ModuleLoader.loadBatchModule(ModuleLoader.java:95)
at org.simplejavamail.mailer.internal.MailerImpl.shutdownConnectionPool(MailerImpl.java:395)
at org.simplejavamail.mailer.internal.MailerImpl.close(MailerImpl.java:474)
at Test.main(Test.java:11)
The text was updated successfully, but these errors were encountered:
It seems that attempting to close a non-async
Mailer
(either explicitly via.close()
or implicitly viatry-with
) will cause it to throw aModuleLoaderException
.Minimal working example:
Result:
The text was updated successfully, but these errors were encountered: