I guess you met this issus in geronimo 2.1.x, and the TextHandler should be in geronimo-javamail_1.4_spec-1.7(geronimo-javamail_1.4_mail-1.7.jar). The root cause is if you have past the object which you want to write to TextHandler. It looks like the object is null. So when call the object's method length(), it meets NPE.
2015-01-23 21:33 GMT+08:00 Anuja <[email protected]>: > java.lang.NullPointerException at > org.apache.geronimo.mail.handlers.TextHandler.writeTo(TextHandler.java:144) > > > > -- > View this message in context: > http://apache-geronimo.328035.n3.nabble.com/Reason-for-this-error-tp3988696.html > Sent from the Development mailing list archive at Nabble.com. > -- Best Regards Gary
