Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 3.0-M1
    • Labels:
      None

      Description

      It seems my server has a process that sends mails via cron once a day.
      The sending fails cause it uses the hostname as the to address.

      Each time it fails, stacktraces are logged by james: ...after 25 retries...Failed delivery for exchangeId...java.lang.ClassCastException: java.lang.String cannot be cast to javax.mail.MessagingException

      INFO 06:27:42,987 | james.mailetcontext | Temporary exception delivering mail (Mail1287886960150-11340-to-srv001:
      INFO 06:27:42,987 | james.mailetcontext | Bouncing message Mail1287886960150-11340-to-srv001 after 25 retries
      ERROR 06:27:43,100 | org.apache.camel.processor.DefaultErrorHandler | Failed delivery for exchangeId: f0fc02a9-b88d-4cf3-bd92-6d7471801327. Exhausted after delivery attempt: 1 caught: java.lang.ClassCastException: java.lang.String cannot be cast to javax.mail.MessagingException
      java.lang.ClassCastException: java.lang.String cannot be cast to javax.mail.MessagingException
      at org.apache.james.transport.mailets.DSNBounce.createTextMsg(DSNBounce.java:282)
      at org.apache.james.transport.mailets.DSNBounce.service(DSNBounce.java:205)
      at org.apache.james.mailetcontainer.MailetManagement.service(MailetManagement.java:89)
      at org.apache.james.mailetcontainer.camel.MailetProcessor.process(MailetProcessor.java:59)
      at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
      at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
      at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
      at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
      at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
      at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
      at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
      at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
      at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:72)
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
      at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)
      at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)
      at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
      at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:290)
      at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:202)
      at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:256)

        Activity

        Eric Charles created issue -
        Hide
        Norman Maurer added a comment -

        fixed

        Show
        Norman Maurer added a comment - fixed
        Norman Maurer made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Assignee Norman Maurer [ norman ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12525101 ] Default workflow, editable Closed status [ 12566830 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12566830 ] jira [ 12582291 ]

          People

          • Assignee:
            Norman Maurer
            Reporter:
            Eric Charles
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development