You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "ouvtam (Jira)" <se...@james.apache.org> on 2022/08/05 12:39:00 UTC

[jira] [Created] (JAMES-3798) Bounce exception when no Date header

ouvtam created JAMES-3798:
-----------------------------

             Summary: Bounce exception when no Date header
                 Key: JAMES-3798
                 URL: https://issues.apache.org/jira/browse/JAMES-3798
             Project: James Server
          Issue Type: Bug
          Components: Matchers/Mailets (bundled)
    Affects Versions: 3.8.0, 3.7.1
            Reporter: ouvtam


Similar to bug JAMES-3666.

An exception occurs on bounce when no date header is set. 
{code:java}
2022-08-05 14:30:12,464 WARN  [elastic-13] o.a.j.m.i.ProcessorImpl - Encountered error while executing mailet org.apache.james.transport.mailets.Bounce
java.time.temporal.UnsupportedTemporalTypeException: Unsupported field: OffsetSeconds
        at java.base/java.time.LocalDate.get0(LocalDate.java:708)
        at java.base/java.time.LocalDate.getLong(LocalDate.java:687)
        at java.base/java.time.LocalDateTime.getLong(LocalDateTime.java:720)
        at java.base/java.time.format.DateTimePrintContext.getValue(DateTimePrintContext.java:308)
        at java.base/java.time.format.DateTimeFormatterBuilder$OffsetIdPrinterParser.format(DateTimeFormatterBuilder.java:3566)
        at java.base/java.time.format.DateTimeFormatterBuilder$CompositePrinterParser.format(DateTimeFormatterBuilder.java:2341)
        at java.base/java.time.format.DateTimeFormatter.formatTo(DateTimeFormatter.java:1843)
        at java.base/java.time.format.DateTimeFormatter.format(DateTimeFormatter.java:1817)
        at org.apache.james.transport.mailets.redirect.MailModifier.initializeDateIfNotPresent(MailModifier.java:222)
        at org.apache.james.transport.mailets.redirect.ProcessRedirectNotify.process(ProcessRedirectNotify.java:83)
        at org.apache.james.transport.mailets.Bounce.service(Bounce.java:245)
        at org.apache.james.mailetcontainer.impl.ProcessorImpl.process(ProcessorImpl.java:73)
        at com.github.fge.lambdas.consumers.ConsumerChainer.lambda$sneakyThrow$9(ConsumerChainer.java:73)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
        at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
        at java.base/java.util.Collections$2.tryAdvance(Collections.java:4747)
        at java.base/java.util.Collections$2.forEachRemaining(Collections.java:4755)
        at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
        at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
        at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
        at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
        at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
        at org.apache.james.mailetcontainer.impl.MailetProcessorImpl.executeProcessingStep(MailetProcessorImpl.java:162)
        at org.apache.james.mailetcontainer.impl.MailetProcessorImpl.lambda$service$0(MailetProcessorImpl.java:130)
 {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org