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 "Tellier Benoit (JIRA)" <ji...@apache.org> on 2018/03/23 09:29:00 UTC
[jira] [Resolved] (MAILBOX-325) JPA Entity manager can not be
re-used accross requests
[ https://issues.apache.org/jira/browse/MAILBOX-325?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tellier Benoit resolved MAILBOX-325.
------------------------------------
Resolution: Fixed
https://github.com/linagora/james-project/pull/1329 had been merged
> JPA Entity manager can not be re-used accross requests
> ------------------------------------------------------
>
> Key: MAILBOX-325
> URL: https://issues.apache.org/jira/browse/MAILBOX-325
> Project: James Mailbox
> Issue Type: Bug
> Components: jpa, quota
> Affects Versions: master, 3.0.1
> Reporter: Tellier Benoit
> Priority: Major
>
> Entity manager can not be reused accross user requests, leading to some bugs, as reported by yeikel93@gmail.com .
> {code:java}
> 16:20:37.144 [WARN ] o.a.j.m.p.IMAPServerModule - ID=1559016790 Error while processing imap request: org.apache.openjpa.persistence.PersistenceException - Multiple concurrent threads attempted to access a single broker. By default brokers are not thread safe; if you require and/or intend a broker to be accessed by more than one thread, set the openjpa.Multithreaded property to true to override the default behavior.
> {code}
> We might consider setting the openjpa.Multithreaded environment variable.
> Alternatively, we can ensure quota related code instanciate the manager on a per-request bases, as it is done everywhere else.
--
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