Fine, thanks. Already wondered why there are so many hibernate members
set to final. The Eclipse interpreter even classifies all those finals
as errors.
Quoting "Konstantin J. Chernov (JIRA)" <[email protected]>:
[
https://issues.apache.org/jira/browse/JAMES-1704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15195358#comment-15195358
]
Konstantin J. Chernov commented on JAMES-1704:
----------------------------------------------
Same error as reported in the JAMES-1697. Hack-fix is there as well :)
NullPointerException when Selecting a mailbox using JPA mailbox backend
-----------------------------------------------------------------------
Key: JAMES-1704
URL: https://issues.apache.org/jira/browse/JAMES-1704
Project: James Server
Issue Type: Bug
Affects Versions: Trunk
Reporter: Tellier Benoit
Fix For: Trunk
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
----------------------------------
The result is :
jvm 1 | WARN 07:27:15,901 | james.imapserver | ID=2094168905
Error while processing imap request: java.lang.NullPointerException
- null
jvm 1 | DEBUG 07:27:15,901 | james.imapserver | ID=2094168905
Error while processing imap request
jvm 1 | java.lang.NullPointerException
jvm 1 | at
org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMailboxMessage.createUserFlags(AbstractJPAMailboxMessage.java:528)
jvm 1 | at
org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMailboxMessage.createFlags(AbstractJPAMailboxMessage.java:524)
jvm 1 | at
org.apache.james.mailbox.store.MessageResultImpl.getFlags(MessageResultImpl.java:83)
jvm 1 | at
org.apache.james.imap.processor.base.SelectedMailboxImpl.init(SelectedMailboxImpl.java:124)
jvm 1 | at
org.apache.james.imap.processor.base.SelectedMailboxImpl.<init>(SelectedMailboxImpl.java:102)
jvm 1 | at
org.apache.james.imap.processor.AbstractSelectionProcessor.selectMailbox(AbstractSelectionProcessor.java:411)
jvm 1 | at
org.apache.james.imap.processor.AbstractSelectionProcessor.respond(AbstractSelectionProcessor.java:118)
----------------------------
MPT tests activated with -Pjpa profile also catch the problem.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]