I'm having a really frustrating problem with Javamail.
So, simple non-encrypted, no-attachment e-mail works both in linux and Windows.
When I try to send attachment along with it, or send an e-mail using TLS encryption, javamail crashes on linux only, not on Windows.
Exception is thrown at Transport.send(msg), which isn't what I wrote.
Full stack trace is this.
java.lang.NullPointerException
at org.jpackage.mail.inet.smtp.SMTPConnection.getResponse(SMTPConnection.java:814)
at org.jpackage.mail.inet.smtp.SMTPConnection.getAllResponses(SMTPConnection.java:841)
at org.jpackage.mail.inet.smtp.SMTPConnection.quit(SMTPConnection.java:537)
at gnu.mail.providers.smtp.SMTPTransport.close(SMTPTransport.java:549)
at javax.mail.Transport.doSend(Transport.java:205)
at javax.mail.Transport.send(Transport.java:75)
Any possible reason for this? I'm just having a really frustrating time dealing with this application failing on Linux.