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

DNSBounce does throw NPE if delivery-error is unknown

    XMLWordPrintableJSON

    Details

      Description

      if the mail attribute "delivery-error" is not set the DNSBounce will throw an NPE:

      va.lang.NullPointerException
      at java.util.regex.Matcher.getTextLength(Unknown Source)
      at java.util.regex.Matcher.reset(Unknown Source)
      at java.util.regex.Matcher.<init>(Unknown Source)
      at java.util.regex.Pattern.matcher(Unknown Source)
      at org.apache.james.transport.mailets.DSNBounce.createDSN(DSNBounce.java:377)
      at org.apache.james.transport.mailets.DSNBounce.service(DSNBounce.java:204)
      at org.apache.james.mailetcontainer.camel.CamelProcessor.process(CamelProcessor.java:66)
      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:299)
      at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
      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:80)
      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.management.InstrumentationProcessor.process(InstrumentationProcessor.java:68)
      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:299)
      at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
      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.Pipeline.process(Pipeline.java:143)
      at org.apache.camel.processor.Pipeline.process(Pipeline.java:78)
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:70)
      at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:299)
      at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:208)
      at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:99)
      at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:91)
      at org.apache.camel.processor.MulticastProcessor.doProcessParallel(MulticastProcessor.java:515)
      at org.apache.camel.processor.MulticastProcessor.access$100(MulticastProcessor.java:73)
      at org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:239)
      at org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:231)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: