java.lang.IncompatibleClassChangeError: Class com.sun.mail.imap.IMAPMessage does not implement the requested interface javax.mail.Part


Solutions on the web1

Solution icon of stackoverflow
Class com.sun.mail.imap.IMAPMessage does not implement the requested interface javax.mail.Part

Stack trace

java.lang.IncompatibleClassChangeError: Class com.sun.mail.imap.IMAPMessage does not implement the requested interface javax.mail.Part
	at org.bouncycastle.mail.smime.SMIMEEnveloped.getInputStream(Unknown Source)
	at org.bouncycastle.mail.smime.SMIMEEnveloped.<init>(Unknown Source)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.