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 "Adrian POIGET (Jira)" <se...@james.apache.org> on 2020/07/12 09:43:00 UTC

[jira] [Created] (JAMES-3307) Redirect mailet got NullPointerException on centos 7

Adrian POIGET created JAMES-3307:
------------------------------------

             Summary: Redirect mailet got NullPointerException on centos 7
                 Key: JAMES-3307
                 URL: https://issues.apache.org/jira/browse/JAMES-3307
             Project: James Server
          Issue Type: Bug
    Affects Versions: 3.4.0
            Reporter: Adrian POIGET
         Attachments: Vagrantfile, mailetcontainer.xml, smtpserver.xml

Hi,
I installed JAMES 3.4.0 on CentOS7 and try some redirect mailet, but I got the error

{{ERROR 18:36:19,745 | org.apache.james.mailetcontainer.impl.camel.CamelProcessor | Exception calling Redirect: null}}
{{java.lang.NullPointerException}}
{{ at javax.mail.internet.MimeMessage.setHeader(MimeMessage.java:1547)}}
{{ at javax.mail.internet.MimeMessage.setRecipients(MimeMessage.java:449)}}
{{ at org.apache.james.server.core.MimeMessageCopyOnWriteProxy.setRecipients(MimeMessageCopyOnWriteProxy.java:390)}}
{{ at org.apache.james.transport.mailets.redirect.MailModifier.setTo(MailModifier.java:127)}}
{{ at org.apache.james.transport.mailets.redirect.ProcessRedirectNotify.process(ProcessRedirectNotify.java:76)}}
{{ at org.apache.james.transport.mailets.Redirect.service(Redirect.java:475)}}

and with debug

{{DEBUG 16:48:43,921 | org.apache.james.transport.mailets.redirect.ProcessRedirectNotify | Alter message}}
{{DEBUG 16:48:43,933 | org.apache.james.transport.mailets.redirect.MessageAlteringUtils | inline:ALL}}
{{DEBUG 16:48:43,971 | org.apache.james.transport.mailets.redirect.MessageAlteringUtils | attachmentType:NONE}}
{{DEBUG 16:48:44,003 | org.apache.james.transport.mailets.redirect.MailModifier | recipients set to: [send@ubuntu16.me]}}
{{ERROR 16:48:44,051 | org.apache.james.mailetcontainer.impl.camel.CamelProcessor | Exception calling Redirect: null}}

As I understood the To field returned seems to be null now but I don't know why, it was working fine, I don't understand what changes
The mailet I added is :

{{<mailet match="RecipientIsRegex=([0-9]+)@mymachine.vm" class="Redirect">}}
{{ <to>test@mymachine.vm</to>}}
{{ <inline>all</inline>}}
{{ <passThrough>FALSE</passThrough>}}
{{ <prefix>[SMSGATEWAY]</prefix>}}
{{ </mailet>}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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