Return-Path: X-Original-To: apmail-geronimo-dev-archive@www.apache.org Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4EB20178DC for ; Wed, 4 Feb 2015 02:08:17 +0000 (UTC) Received: (qmail 56764 invoked by uid 500); 4 Feb 2015 02:08:15 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 56707 invoked by uid 500); 4 Feb 2015 02:08:15 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 56695 invoked by uid 99); 4 Feb 2015 02:08:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Feb 2015 02:08:14 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of daxiezhi@gmail.com designates 209.85.217.176 as permitted sender) Received: from [209.85.217.176] (HELO mail-lb0-f176.google.com) (209.85.217.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Feb 2015 02:08:10 +0000 Received: by mail-lb0-f176.google.com with SMTP id z12so41886788lbi.7 for ; Tue, 03 Feb 2015 18:07:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=87VWMDE/1P+0O/Gb51V25WQbF1VLQKITONW9R8eyXMU=; b=UFAfntq3Cvfssdl0PSApYjvuy/Vkep/TuzhqFSRtFfnCRTFqIPPh5MC1o+s1NtEKD2 Tea8nGdSw9xMhqud3M6fFyLf5O+PZu4sUlFFXV96wQ17iaT8BKa2XP1iWakF5d98K7mf r9aPLzm/SbkXMFoqvVWWXUdmAaVRJGHf+/ewFnf6VR3WDlv8SFIKuSAWPs5+4UMGtqEw 5nCCLHAlZjFNNYOlyJHdEi4R0gyXOfDBzBLnALzkPoA8r5xVtn/Rj+WG7RIqmj3tjhV7 uda6IsmxAuWMVHRT8vXdrM68mMZ4euiV43a1C0prcxvoRwsKutUT91mnOsiYeKkK2sbN xb4A== MIME-Version: 1.0 X-Received: by 10.112.170.100 with SMTP id al4mr7428367lbc.42.1423015669346; Tue, 03 Feb 2015 18:07:49 -0800 (PST) Received: by 10.112.128.163 with HTTP; Tue, 3 Feb 2015 18:07:49 -0800 (PST) In-Reply-To: <1422020039817-3988696.post@n3.nabble.com> References: <1422020039817-3988696.post@n3.nabble.com> Date: Wed, 4 Feb 2015 10:07:49 +0800 Message-ID: Subject: Re: Reason for this error From: Zhi Xie To: dev@geronimo.apache.org Content-Type: multipart/alternative; boundary=001a11c236867b371f050e39a70c X-Virus-Checked: Checked by ClamAV on apache.org --001a11c236867b371f050e39a70c Content-Type: text/plain; charset=UTF-8 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 : > 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 --001a11c236867b371f050e39a70c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I guess you met this issus in geronimo 2.1.x, and the Text= Handler should be in geronimo-javamail_1.4_spec-1.7(geronimo-javamail_1.4_m= ail-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 <anuja.sasidharan@ibsplc.com>:
java.lang.NullPointerException at
org.apache.geronimo.mail.handlers.TextHandler.writeTo(TextHandler.java:144)=



--
View this message in context: http://ap= ache-geronimo.328035.n3.nabble.com/Reason-for-this-error-tp3988696.html=
Sent from the Development mailing list archive at Nabble.com.



--
Best Regards
Gary
--001a11c236867b371f050e39a70c--