Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-3612

for mailbox MailDir provider getting --> org.apache.james.mailbox.lucene.search.LuceneMessageSearchIndex exceeded maximum retry(8) to handle event org.apache.james.mailbox.events.MailboxEvents.Added

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 3.6.0
    • 3.6.0
    • mailbox, SMTPServer
    • None

    Description

      Hi All,
      We have a requirement of storing all recipient addresses(RCPT to) of a domain incoming emails as EML files on a centralised folder(ex: emlstore).

      for this we installed JAMES 3.6.0 and configured as
      1) enabled SMTP server (smtpserver.xml)
      2) added our domain in XMLDomainList of domainlist.xml
      3) configured mailbox provider as MAILDIR in mailbox.xml
      4) maildir path maildir.folder=../var/store/maildir/emlstore in mailbox-maildir.properties
      5) and last for mail processing(mailetcontainer.xml) we use

      <mailet match="RecipientIsRegex=.*@ourdomain.com" class="LocalDelivery" />

      <mailet match="All" class="Null" />

      but we are getting below exception for every incoming email "Error while processing listener java.lang.NullPointerException: null"

      <---------STARTS Here--------------->

      DEBUG [elastic-27] org.apache.james.mailbox.store.StoreMailboxManager.getMailbox:281 - Loaded mailbox #private:test@ourdomain.com:INBOX
      ERROR [elastic-29] org.apache.james.events.delivery.InVmEventDelivery.lambda$deliverByOption$1:72 - Error while processing listener
      java.lang.NullPointerException: null
      at org.apache.james.mailbox.maildir.mail.MaildirMailboxMapper.visitUsersForMailboxList(MaildirMailboxMapper.java:301) ~[apache-james-mailbox-maildir-3.6.0.jar:3.6.0]
      at org.apache.james.mailbox.maildir.mail.MaildirMailboxMapper.lambda$list$10(MaildirMailboxMapper.java:279) ~[apache-james-mailbox-maildir-3.6.0.jar:3.6.0]
      at reactor.core.publisher.MonoCallable.subscribe(MonoCallable.java:56) [reactor-core-3.4.2.jar:3.4.2]
      at reactor.core.publisher.Mono.subscribe(Mono.java:4046) [reactor-core-3.4.2.jar:3.4.2]
      ...................................................................
      ERROR [elastic-30] org.apache.james.events.delivery.InVmEventDelivery.lambda$deliverByOption$1:72 - Error while processing listener java.lang.NullPointerException: null

      ...................................................................

      ERROR [elastic-29] org.apache.james.events.delivery.InVmEventDelivery.lambda$deliverByOption$1:72 - Error while processing listener java.lang.NullPointerException: null

      ...................................................................

      ...................................................................

      ...................................................................

      ...................................................................

      ...................................................................

      ...................................................................
      ERROR [elastic-30] org.apache.james.events.delivery.EventDelivery$Retryer$BackoffRetryer.lambda$doRetry$0:90 - listener org.apache.james.mailbox.lucene.search.LuceneMessageSearchIndex exceeded maximum retry(8) to handle event org.apache.james.mailbox.events.MailboxEvents.Added
      reactor.core.Exceptions$RetryExhaustedException: Retries exhausted: 8/8
      at reactor.core.Exceptions.retryExhausted(Exceptions.java:290) ~[reactor-core-3.4.2.jar:3.4.2]
      ...................................................................
      Caused by: java.lang.NullPointerException
      at org.apache.james.mailbox.maildir.mail.MaildirMailboxMapper.visitUsersForMailboxList(MaildirMailboxMapper.java:301) ~[apache-james-mailbox-maildir-3.6.0.jar:3.6.0]
      at org.apache.james.mailbox.maildir.mail.MaildirMailboxMapper.lambda$list$10(MaildirMailboxMapper.java:279) ~[apache-james-mailbox-maildir-3.6.0.jar:3.6.0]
      at reactor.core.publisher.MonoCallable.subscribe(MonoCallable.java:56) ~[reactor-core-3.4.2.jar:3.4.2]
      at reactor.core.publisher.Mono.subscribe(Mono.java:4046) ~[reactor-core-3.4.2.jar:3.4.2]

      <------------ENDS here---------------------->

       

      After these Retries(8 seconds delay) it is stored in centralized folder 'var/store/maildir/emlstore/new'

      so How to Avoid above Exception/(8 seconds delay) or disable Events( org.apache.james.mailbox.events.MailboxEvents.Added) and store directly in Maildir folder

      Attachments

        1. james.log
          57 kB
          sravan purumala

        Activity

          People

            Unassigned Unassigned
            sravanpurumala sravan purumala
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: