You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Oliver Guenther (JIRA)" <ji...@apache.org> on 2014/08/03 12:26:11 UTC

[jira] [Updated] (GERONIMO-6526) IMAP connection via java mail api (geronimo-javamail_1.4_mail) throws NPE

     [ https://issues.apache.org/jira/browse/GERONIMO-6526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oliver Guenther updated GERONIMO-6526:
--------------------------------------

    Description: 
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

  was:
Tring to uns the java mail api to establish 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 the the sun/oracle implementation is successful.

A full example can be found here: https://github.com/og0815/sandbox/tree/master/geronimo-javamail-imap-bug


> 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
>
> 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.2#6252)