geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geist Alexander <alexand...@gmx.com>
Subject Bug in geronimo-javamail_1.4_mail-1.0.jar?
Date Wed, 27 Dec 2006 17:30:24 GMT
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)

Mime
View raw message