[
http://issues.apache.org/jira/browse/GERONIMO-2679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rick McGuire resolved GERONIMO-2679.
------------------------------------
Resolution: Fixed
Fix Version/s: 2.0-M2
Committed revision 491576.
> ArrayIndexOutOfBoundsException when getting Mails from Pop3-Account with
> geronimo-javamail_1.4_mail-1.0.jar
> -----------------------------------------------------------------------------------------------------------
>
> Key: GERONIMO-2679
> URL: http://issues.apache.org/jira/browse/GERONIMO-2679
> Project: Geronimo
> Issue Type: Bug
> Security Level: public(Regular issues)
> Components: mail
> Affects Versions: 2.0-M2
> Reporter: Geist Alexander
> Assigned To: Rick McGuire
> Fix For: 2.0-M2
>
>
> There are 2 messages in the pop3-account. Using the following code
> Store store = session.getStore("pop3");
> store.connect(popServer, 110, popUser, popKey);
> Folder folder = store.getFolder("INBOX");
> folder.open(Folder.READ_WRITE);
> Message message[] = folder.getMessages();
> runs in this exception
> java.lang.ArrayIndexOutOfBoundsException: 2 >= 2
> at java.util.Vector.setElementAt(Vector.java:483)
> at
> org.apache.geronimo.javamail.store.pop3.POP3Folder.getMessage(POP3Folder.java:257)
> at javax.mail.Folder.getMessages(Folder.java:468)
> at javax.mail.Folder.getMessages(Folder.java:495)
> at keygen.main.MailReceiver.receive(MailReceiver.java:42)
> at keygen.main.MailReceiver.main(MailReceiver.java:171)
> Sample code works with Suns mail.jar. Tested this code with a web application
> and a standalone client application.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira