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 DD20210F6D for ; Fri, 23 Jan 2015 11:59:34 +0000 (UTC) Received: (qmail 3020 invoked by uid 500); 23 Jan 2015 11:59:34 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 2951 invoked by uid 500); 23 Jan 2015 11:59:34 -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 2940 invoked by uid 99); 23 Jan 2015 11:59:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jan 2015 11:59:34 +0000 Date: Fri, 23 Jan 2015 11:59:34 +0000 (UTC) From: "aurelien leboulanger (JIRA)" To: dev@geronimo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GERONIMO-6526) IMAP connection via java mail api (geronimo-javamail_1.4_mail) throws NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GERONIMO-6526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14289131#comment-14289131 ] aurelien leboulanger commented on GERONIMO-6526: ------------------------------------------------ ok it works. Do you know when the 1.8.5 will be released ? > IMAP connection via java mail api (geronimo-javamail_1.4_mail) throws NPE > ------------------------------------------------------------------------- > > Key: GERONIMO-6526 > URL: https://issues.apache.org/jira/browse/GERONIMO-6526 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: mail > Affects Versions: 3.0.0, 3.0.1 > Reporter: Oliver Guenther > Priority: Minor > Labels: JM14_1.8.5 > Attachments: GERONIMO-6526.patch, geronimo-6526-svn-withtests.diff, geronimo-6526-withtests.diff > > > Tryng to use the java mail api in establishing an imap connection results in an NPE. > {code} > Properties p = new Properties(); > p.put("mail.store.protocol", "imap"); // imaps does the same > p.put("mail.host", ""); > Session ss = Session.getInstance(p); > Store s = ss.getStore(); > s.connect(user, pass); // Here we get the NPE > {code} > Using the same code with the sun/oracle implementation is successful. > A full example can be found here: https://github.com/og0815/sandbox/tree/master/geronimo-javamail-imap-bug -- This message was sent by Atlassian JIRA (v6.3.4#6332)