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:
   java.lang.NullPointerException
	at javax.mail.MessageContext.getMessage(MessageContext.java:82)
	at javax.mail.MessageContext.getMessage(MessageContext.java:61)
	at javax.mail.MessageContext.getSession(MessageContext.java:93)
	at com.sun.mail.handlers.message_rfc822.getContent(message_rfc822.java:65)
	at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:755)
	at javax.activation.DataHandler.getContent(DataHandler.java:511)
	at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:531)

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