Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0, 3.0.1
-
None
-
Security Level: public (Regular issues)
Description
Tryng to use the java mail api in establishing an imap connection results in an NPE.
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
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
Attachments
Attachments
Issue Links
- is duplicated by
-
GERONIMO-6421 org.apache.geronimo.javamail.util.InvalidCommandException: Unexpected command IMAP command error
- Resolved
-
GERONIMO-6485 NullPointerException at IMAPTaggedResponse.isBAD(IMAPTaggedResponse.java:86) with IMAP server like Dovecot or Gmail
- Resolved
- is related to
-
GERONIMO-6347 NullPointerException thrown when message.getContentType() and message.getContent()
- Resolved