ClassCastException gnu.mail.handler.TextPlain when Sending Test Mail due to GNU Java

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

An error has occurred Configuring a Server for Outgoing Mail:


java.lang.ClassCastException: gnu.mail.handler.TextPlain
at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:496)

Cause

The gnu version of JavaMail and the Sun version of JavaMail are both in the class path.

Resolution

Install the javamail package and remove the gnumailpackage.


Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.