Posted By:
Luigi_Viggiano
Posted On:
Thursday, May 17, 2001 03:13 PM
Without any specific knowledge on JavaMail I try to answer.
you can guess where NullPointerException is raised checking the stacktrace.
Looking at the code (but not knowing
Session class - I think from javamail api), the NullPointerException can happen if
Session.getDefaultInstance(mailProps, null);
returns null setting mailSession to null; and calling
mailSession.setDebug(true);
you get the exception.
pls. check value of mailSession after getDefaultInstance invokation.