james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benoit Tellier <be...@minet.net>
Subject Re: IMAP mailbox error
Date Thu, 10 Mar 2016 07:49:55 GMT
Hi Simon,

I reproduced your problem by running some integration tests on a distant
James server...

I did not succeed yet to write unit tests reproducing your problem...

I will open a JIRA issue for this.

I will also look why this was not covered by MPT tests... And try to
find the change-set that broke this (I remember something committed
months ago about deleting a JPA raw... Maybe this is the root cause of
your struggles...)

----------------------------------------------------------------------

Here are the following steps I followed :

 - 1. Build James using java 6

# docker build -t james/project/6 dockerfiles/compilation/java-6
# docker run -c 8 -m 16g -v $PWD/.m2:/root/.m2 -v $PWD:/origin -v
$PWD/dockerfiles/run/spring/destination:/destination -t james/project/6
-s jpa-user-flags

 - 2. Deploy james using java6

# docker build -t james_run dockerfiles/run/spring/
# docker run --hostname any -p "25:25" -p "110:110" -p "143:143" -p
"465:465" -p "587:587" -p "993:993" --name james_run -t james_run

 - 3. Prepare james for integration testing

# docker exec james_run
/root/james-server-app-3.0.0-beta5-SNAPSHOT/bin/james-cli.sh  -h
127.0.0.1 -p 9999 adddomain domain
# docker exec james_run
/root/james-server-app-3.0.0-beta5-SNAPSHOT/bin/james-cli.sh  -h
127.0.0.1 -p 9999 adduser imapuser@domain password

 - 4. Run integration testing

# docker build -t james/project/8 dockerfiles/compilation/java-8
# docker run -c 8 -m 16g -v $PWD/.m2:/root/.m2 -v $PWD:/origin -t
james/project/8 -s master

--------------------------------------------------------------------------

Le 10/03/2016 00:32, Simon Roth a écrit :
> Yes, I built from git master. I'm trying to setup the server on a remote
> VM. Therefore I copied the generated
> james-server-app-3.0.0-beta5-SNAPSHOT-app.tar.gz file from my local PC
> to the VM, extracted it there, replaced the conf folder from the
> extracted folder with the conf folder in
> dockerfiles/run/spring/destination/conf in the git repository, adapted
> the ports and started the server with the run.sh script located in the
> bin folder. Afterwards I created a user as well as a domain using
> james-cli.sh.
> 
> In order to test the setup, in the first iteration I simply try sending
> an email to myself (the server where james is running), using
> Thunderbird as user agent on my local PC.
> 
> i.e.
> 1st step: Thunderbird -> Server -> Mailbox via SMTP (seems to work by
> inspecting the log file, mail seems to be stored in the mailbox no error
> occurs)
> 2nd step: Read the mail in Thunderbird via IMAP.
> Mailbox->Server->Thunderbird.
> 
> And here, in the 2nd step is where the error occurs, after clicking the
> "Receive" button in Thunderbird. The mail counter in Thunderbird shows
> that there is a new mail, but it is not really there/not readable and
> the NullPointer exception occurs on the server side.
> 
> 
> Quoting Matthieu Baechler <mbaechler@linagora.com>:
> 
>> Hi Simon,
>>
>> Do you mean you are building from git master ?
>>
>> If so, could you describe your usecase with more details ? What do you
>> mean by "receive en email via IMAP" ?
>>
>> Cheers,
>>
>> -- 
>> Matthieu
>>
>> On 09/03/2016 17:45, Simon Roth wrote:
>>> I'm trying to setup a James Server built from trunk. Except the ports
>>> everything is set up with the provided default configuration in
>>> dockerfiles/run/spring/destination/conf and therefore derby is used as
>>> database.
>>>
>>> I added a user as well as a domain. SMTP seems working fine so far. But
>>> if I try to receive an email via IMAP the following error occurs:
>>>
>>> DEBUG 16:48:51,831 | james.imapserver | ID=-2032248463 Loaded mailbox
>>> #private:test@test.at:Sent
>>> WARN  16:48:51,839 | james.imapserver | ID=-2032248463 Error while
>>> processing imap request: java.lang.NullPointerException - null
>>> DEBUG 16:48:51,839 | james.imapserver | ID=-2032248463 Error while
>>> processing imap request
>>> java.lang.NullPointerException
>>>     at
>>> org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMailboxMessage.createUserFlags(AbstractJPAMailboxMessage.java:528)
>>>
>>>
>>>     at
>>> org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMailboxMessage.createFlags(AbstractJPAMailboxMessage.java:524)
>>>
>>>
>>>     at
>>> org.apache.james.mailbox.store.MessageResultImpl.getFlags(MessageResultImpl.java:83)
>>>
>>>
>>>     at
>>> org.apache.james.imap.processor.base.SelectedMailboxImpl.init(SelectedMailboxImpl.java:124)
>>>
>>>
>>>     at
>>> org.apache.james.imap.processor.base.SelectedMailboxImpl.<init>(SelectedMailboxImpl.java:102)
>>>
>>>
>>>     at
>>> org.apache.james.imap.processor.AbstractSelectionProcessor.selectMailbox(AbstractSelectionProcessor.java:411)
>>>
>>>
>>>     at
>>> org.apache.james.imap.processor.AbstractSelectionProcessor.respond(AbstractSelectionProcessor.java:118)
>>>
>>>
>>>     at
>>> org.apache.james.imap.processor.AbstractSelectionProcessor.doProcess(AbstractSelectionProcessor.java:83)
>>>
>>>
>>>
>>> Am I the only one facing this problem? Any suggestions for solving it?
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
> 
> 
> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message