[ https://issues.apache.org/jira/browse/JAMES-1476?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13575767#comment-13575767 ]
Heinz-Dieter Conradi commented on JAMES-1476: --------------------------------------------- Hi Giridhar, > If you have the whole IMAP command output when the issue occurred then it > would be very much useful. I am not sure what you want. But the debug output (including James/Mail output) is appended to this comment. Or are you looking for something different, and I have to configure the log somehow? ------------------- A3 EXAMINE INBOX * FLAGS (\Answered \Deleted \Draft \Flagged \Seen) * 6 EXISTS * 6 RECENT * OK [UIDVALIDITY 1299388474] UIDs valid * OK [UNSEEN 2] Message 2 is first unseen * OK [PERMANENTFLAGS (\Answered \Deleted \Draft \Flagged \Seen \*)] Limited * OK [HIGHESTMODSEQ 6] Highest * OK [UIDNEXT 7] Predicted next UID A3 OK [READ-ONLY] EXAMINE completed. A4 SEARCH SUBJECT "subject with random nr: 1359967923405 9" ALL * SEARCH A4 OK SEARCH completed. A5 SEARCH SUBJECT "subject with random nr: 1359967923405 9" ALL * SEARCH 7 A5 OK SEARCH completed. A6 CLOSE A6 OK CLOSE completed. DEBUG IMAP: added an Authenticated connection -- size: 1 A7 LOGOUT * BYE IMAP4rev1 Server logging out A7 OK LOGOUT completed. DEBUG IMAP: IMAPStore connection dead DEBUG IMAP: IMAPStore cleanup, force false DEBUG IMAP: close folder A4 CLOSE A4 OK CLOSE completed. DEBUG IMAP: added an Authenticated connection -- size: 1 A5 LOGOUT * BYE IMAP4rev1 Server logging out A5 OK LOGOUT completed. DEBUG IMAP: IMAPStore cleanup done </system-out> </testcase> <testcase time="0.497" classname="com.icw.cdm.messaging.service.MessageServiceTest" name="testSendWithXHeader"> <error message="message number (8) out of bounds (7)" type="java.lang.ArrayIndexOutOfBoundsException">java.lang.ArrayIndexOutOfBoundsException: message number (8) out of bounds (7) at com.sun.mail.imap.MessageCache.getMessage(MessageCache.java:135) at com.sun.mail.imap.MessageCache.getMessageBySeqnum(MessageCache.java:164) at com.sun.mail.imap.IMAPFolder.getMessageBySeqNumber(IMAPFolder.java:3005) at com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:1863) > ArrayIndexOutOfBoundsException when searching in ImapFolder > ------------------------------------------------------------ > > Key: JAMES-1476 > URL: https://issues.apache.org/jira/browse/JAMES-1476 > Project: James Server > Issue Type: Bug > Components: IMAPServer > Affects Versions: 3.0-beta4 > Reporter: Heinz-Dieter Conradi > Priority: Critical > Attachments: cdm-messaging-config-3.2-SNAPSHOT.jar, JamesTest.java > > > Hi, > Occasionally, some of my test fail with an ArrayIndexOutOfBoundsException: > java.lang.ArrayIndexOutOfBoundsException: message number (6) out of bounds (5) > at com.sun.mail.imap.MessageCache.getMessage(MessageCache.java:132) > at com.sun.mail.imap.MessageCache.getMessageBySeqnum(MessageCache.java:162) > at com.sun.mail.imap.IMAPFolder.getMessageBySeqNumber(IMAPFolder.java:2809) > at com.sun.mail.imap.IMAPFolder.search(IMAPFolder.java:1662) > The test is rather simple: I create a Message and do > 'Transport.send(message)' and then I try to verify if the mail can be found > on the server with 'folder.search(searchTerm);'. > The folder is opened with 'folder.open(Folder.READ_ONLY);'. > I have asked on the javax.mail mailing list > (https://forums.oracle.com/forums/thread.jspa?threadID=2489711&tstart=0) and > have been advised to open a bug here: > ------ > It's definitely a bug in the server. You can see it here: > You open the INBOX and it tells you there's 6 messages in the INBOX: > A3 EXAMINE INBOX > * FLAGS (\Answered \Deleted \Draft \Flagged \Seen) > * 6 EXISTS > Then you do a search and it matches message number 7! > A5 SEARCH SUBJECT "subject with random nr: 1359967923405 9" ALL > * SEARCH 7 > There was also another search for the same message right before that, and it > returned nothing. > Presumably the message just showed up in the INBOX between those two > searches, which is > fine, but the IMAP protocol requires the server to notify the client of the > new message before > it can return that message as the result of a search. > -------- > The complete stacktrace and debug output can be found in that thread, or I > can attach it to this bug. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org