Java J2EE based bug defect tracking database: Javamail
Bugzero one-for-all bug tracking and help desk support system
Q: When parsing in-bound emails, this exception occured:
	at javax.mail.MessageContext.getMessage(
	at javax.mail.MessageContext.getMessage(
	at javax.mail.MessageContext.getSession(
	at com.sun.mail.handlers.message_rfc822.getContent(
	at javax.activation.DataSourceDataContentHandler.getContent(
	at javax.activation.DataHandler.getContent(
	at javax.mail.internet.MimeBodyPart.getContent(

A: This is a Javamail 1.2 bug. This bug was fixed in Javamail 1.3
     4709848 message_rfc822 DataContentHandler can cause NPE (Javamail 1.3.1)
     4483158 null pointer exception for MessageContext.getMessage()  (Javamail 1.3)

   Bugzero packaged the mail.jar/actiation.jar in the bugzero/WEB-INF/lib/ folder, please
   make sure they are up-to-date. If you are using an application server wide mail.jar and
   activation.jar (in some common lib), please make sure they are up-to-date. After 
   replacing these two jars, please restart server.

* Reference brought to you by Bugzero, it's more than just bug tracking software!

Home - FAQs