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

Error in message.getLineCount (Error using NotifyPostmaster with James 2.3)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • James Core
    • None

    Description

      Reported by Bodo:
      --------------------------------
      I have problems using the notify postmaster mailet. I'm trying james 2.3. While using the notification-mailet with normal (text/plain) mails everything is fine. But processing mails with attachments an error occurs as follows and the notification isn't delivered:

      29/03/06 10:51:37 DEBUG spoolmanager.error: Servicing Mail1143622295421-0 by NotifyPostmaster Mailet
      29/03/06 10:51:37 ERROR spoolmanager: Exception in processor <error>
      java.lang.NullPointerException: charsetName
      at java.io.InputStreamReader.<init>(Unknown Source)
      at org.apache.james.core.MimeMessageWrapper.getLineCount(MimeMessageWrapper.java:297)
      at org.apache.james.core.MimeMessageCopyOnWriteProxy.getLineCount(MimeMessageCopyOnWriteProxy.java:252)
      at org.apache.james.transport.mailets.AbstractNotify.getMessage(AbstractNotify.java:166)
      at org.apache.james.transport.mailets.AbstractRedirect.buildAlteredMessage(AbstractRedirect.java:1213)
      at org.apache.james.transport.mailets.AbstractRedirect.service(AbstractRedirect.java:1008)
      at org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:414)
      at org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:397)
      at org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:306)
      at java.lang.Thread.run(Unknown Source)
      ---------------------
      It's a trunk version and it happens to every mail with attachment. In 2.3.0.a1 everything is okay - but I can't use this version because of an error in fetchmail ...
      ---------------------

      Attachments

        Activity

          People

            bago Stefano Bagnara
            bago Stefano Bagnara
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: