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 Garry Hurley <ga...@gmail.com> on 2019/03/01 04:12:03 UTC

Re: [jira] [Commented] (JAMES-2672) Some Mail instance can have a null name

I found this to be the case until I reworked the custom repository we use in the direct secure messaging project. 

Sent from my iPhone

> On Feb 28, 2019, at 5:30 AM, Tellier Benoit (JIRA) <se...@james.apache.org> wrote:
> 
> 
>    [ https://issues.apache.org/jira/browse/JAMES-2672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16780353#comment-16780353 ] 
> 
> Tellier Benoit commented on JAMES-2672:
> ---------------------------------------
> 
> https://github.com/linagora/james-project/pull/2203 contributed some builder changes for MailImpl enforcing name to be present
> 
>> Some Mail instance can have a null name
>> ---------------------------------------
>> 
>>                Key: JAMES-2672
>>                URL: https://issues.apache.org/jira/browse/JAMES-2672
>>            Project: James Server
>>         Issue Type: Bug
>>   Affects Versions: 3.3.0
>>           Reporter: Matthieu Baechler
>>           Priority: Major
>> 
>> During a stress test, I encountered this kind of errors :
>> {code}
>> java.lang.NullPointerException: null
>>        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:877)
>>        at org.apache.james.queue.rabbitmq.view.api.DeleteCondition.withName(DeleteCondition.java:170)
>>        at org.apache.james.queue.rabbitmq.Dequeuer.lambda$ack$1(Dequeuer.java:106)
>>        at com.github.fge.lambdas.consumers.ThrowingConsumer.accept(ThrowingConsumer.java:22)
>>        at org.apache.james.queue.rabbitmq.Dequeuer$RabbitMQMailQueueItem.done(Dequeuer.java:62)
>>        at org.apache.james.jmap.send.PostDequeueDecorator.done(PostDequeueDecorator.java:80)
>>        at org.apache.james.mailetcontainer.impl.JamesMailSpooler.lambda$run$0(JamesMailSpooler.java:164)
>> {code}
>> It looks like there's some code path that allows a Mail to have a null name.
> 
> 
> 
> --
> This message was sent by Atlassian JIRA
> (v7.6.3#76005)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org
> 

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