geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevan Miller <kevan.mil...@gmail.com>
Subject Re: Bug in geronimo-javamail_1.4_mail-1.0.jar?
Date Thu, 28 Dec 2006 18:59:00 GMT

On Dec 27, 2006, at 12:30 PM, Geist Alexander wrote:

> Hello,
> I have 2 messages in my pop3-account. when i am 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();
>
>
> it 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)

What version of Geronimo are you using? It looks like it must be 1.0.  
A number of problems were uncovered in the Javamail implementation.  
Could you upgrade to 1.1.1 and let us know your results?

--kevan 

Mime
View raw message