Hi , I am using the tag as recommended and now I am getting the same error with a small variation(is that because of the logging level?) :
16:20:36.792 [INFO ] o.a.j.m.p.IMAPServerModule - ID=1559016790 Connection established from 10.207.32.65 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. 16:20:37.146 [INFO ] o.a.j.m.p.IMAPServerModule - ID=1559016790 Connection closed for 10.207.32.65 Thank you On Sun, Mar 18, 2018 at 10:49 PM, Benoit Tellier <btell...@linagora.com> wrote: > Hi, > > There is currently two issues: > > - You are using an image based on our 'master' branch. > > While this is very great (you spotted bugs that we might be able to fix) > however this might not be the most confortable for you. > > Thus you can rely on the stable 3.0.1 image, validated by the > community, instead than on a work in progress product. > > $ docker run -p "25:25" -p "143:143" linagora/james-jpa-sample:3.0.1 > > Furthermore, I will propose to reference the fixed version rather than > the on-commit one on the website. (You could still use the on-commit > one: early feedback and bug reports is a great way of contributing!). > > Ticket: https://issues.apache.org/jira/browse/JAMES-2357 > PR: https://github.com/linagora/james-project/pull/1330 > > - We missed JPA object references in some persistence file. I did some > work to fix that issue. > > PR: https://github.com/linagora/james-project/pull/1329 > > Thanks for the report! > > Best regards, > > Benoit Tellier > > Le 16/03/2018 à 22:12, Yeikel a écrit : > > Hi , > > > > Thank you for getting back to me. I upgraded my container to the latest > > version (published 41 minutes ago) and now I am receiving a new error. > This > > error seems worse than the previous one because now I can't even connect > to > > any of the email accounts > > > > > > Here is the trace-log : > > > > > > org.apache.openjpa.persistence.ArgumentException: No metadata was found > for > > type "class > > org.apache.james.mailbox.jpa.quota.model.MaxDomainMessageCount". The > class > > does not appear in the list of persistent types: > > [org.apache.james.mailbox.jpa.quota.model.MaxGlobalMessageCount, > > org.apache.james.mailbox.jpa.mail.model.JPAUserFlag, > > org.apache.james.mailbox.jpa.quota.model.MaxUserStorage, > > org.apache.james.mailbox.jpa.mail.model.openjpa. > AbstractJPAMailboxMessage, > > org.apache.james.mailbox.jpa.quota.model.JpaCurrentQuota, > > org.apache.james.mailbox.jpa.user.model.JPASubscription, > > org.apache.james.rrt.jpa.model.JPARecipientRewrite, > > org.apache.james.mailbox.jpa.quota.model.MaxGlobalStorage, > > org.apache.james.mailbox.jpa.mail.model.JPAMailbox, > > org.apache.james.mailbox.jpa.quota.model.MaxUserMessageCount, > > org.apache.james.domainlist.jpa.model.JPADomain, > > org.apache.james.user.jpa.model.JPAUser, > > org.apache.james.mailbox.jpa.mail.model.JPAProperty, > > org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMailboxMessage]. > > at > > org.apache.openjpa.meta.MetaDataRepository.getMetaDataInternal( > MetaDataRepository.java:414) > > at > > org.apache.openjpa.meta.MetaDataRepository.getMetaData( > MetaDataRepository.java:389) > > at > > org.apache.openjpa.kernel.BrokerImpl.newObjectId(BrokerImpl.java:1274) > > at > > org.apache.openjpa.kernel.DelegatingBroker.newObjectId( > DelegatingBroker.java:315) > > at > > org.apache.openjpa.persistence.EntityManagerImpl. > find(EntityManagerImpl.java:487) > > at > > org.apache.james.mailbox.jpa.quota.JPAPerUserMaxQuotaDAO. > getDomainMaxMessage(JPAPerUserMaxQuotaDAO.java:187) > > at > > org.apache.james.mailbox.jpa.quota.JPAPerUserMaxQuotaManager. > getDomainMaxMessage(JPAPerUserMaxQuotaManager.java:82) > > at java.util.Optional.flatMap(Optional.java:241) > > at > > org.apache.james.mailbox.jpa.quota.JPAPerUserMaxQuotaManager. > lambda$getMaxMessage$4(JPAPerUserMaxQuotaManager.java:134) > > at > > org.apache.james.mailbox.jpa.quota.JPAPerUserMaxQuotaManager. > lambda$getMaxMessage$5(JPAPerUserMaxQuotaManager.java:136) > > at > > java.util.stream.ReferencePipeline$7$1.accept( > ReferencePipeline.java:267) > > at > > java.util.Spliterators$ArraySpliterator.tryAdvance( > Spliterators.java:958) > > at > > java.util.stream.ReferencePipeline.forEachWithCancel( > ReferencePipeline.java:126) > > at > > java.util.stream.AbstractPipeline.copyIntoWithCancel( > AbstractPipeline.java:498) > > at > > java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485) > > at > > java.util.stream.AbstractPipeline.wrapAndCopyInto( > AbstractPipeline.java:471) > > at > > java.util.stream.FindOps$FindOp.evaluateSequential(FindOps.java:152) > > at > > java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) > > at > > java.util.stream.ReferencePipeline.findFirst(ReferencePipeline.java:464) > > at > > org.apache.james.mailbox.jpa.quota.JPAPerUserMaxQuotaManager. > getMaxMessage(JPAPerUserMaxQuotaManager.java:137) > > at > > org.apache.james.mailbox.store.quota.StoreQuotaManager.getMessageQuota( > StoreQuotaManager.java:52) > > at > > org.apache.james.imap.processor.GetQuotaRootProcessor.doProcess( > GetQuotaRootProcessor.java:84) > > at > > org.apache.james.imap.processor.GetQuotaRootProcessor.doProcess( > GetQuotaRootProcessor.java:55) > > at > > org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess( > AbstractMailboxProcessor.java:110) > > at > > org.apache.james.imap.processor.AbstractMailboxProcessor.process( > AbstractMailboxProcessor.java:97) > > at > > org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess( > AbstractMailboxProcessor.java:89) > > at > > org.apache.james.imap.processor.AbstractMailboxProcessor.doProcess( > AbstractMailboxProcessor.java:71) > > at > > org.apache.james.imap.processor.base.AbstractChainedProcessor.process( > AbstractChainedProcessor.java:59) > > at > > org.apache.james.imap.processor.base.AbstractChainedProcessor.process( > AbstractChainedProcessor.java:68) > > at > > org.apache.james.imapserver.netty.ImapChannelUpstreamHandler. > messageReceived(ImapChannelUpstreamHandler.java:196) > > at > > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream( > SimpleChannelUpstreamHandler.java:70) > > at > > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( > DefaultChannelPipeline.java:564) > > at > > org.jboss.netty.channel.DefaultChannelPipeline$ > DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > > at > > org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296) > > at > > org.jboss.netty.handler.codec.frame.FrameDecoder. > unfoldAndFireMessageReceived(FrameDecoder.java:462) > > at > > org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode( > FrameDecoder.java:443) > > at > > org.jboss.netty.handler.codec.frame.FrameDecoder. > messageReceived(FrameDecoder.java:303) > > at > > org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream( > SimpleChannelUpstreamHandler.java:70) > > at > > org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream( > DefaultChannelPipeline.java:564) > > at > > org.jboss.netty.channel.DefaultChannelPipeline$ > DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791) > > at > > org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun( > ChannelUpstreamEventRunnable.java:43) > > at > > org.jboss.netty.handler.execution.ChannelEventRunnable.run( > ChannelEventRunnable.java:67) > > at > > org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolEx > ecutor$ChildExecutor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) > > at > > java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor.java:1149) > > at > > java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:624) > > > > > > Thank you! > > > > > > > > > > > > > > > > On Wed, Mar 14, 2018 at 12:59 AM, Benoit Tellier <btell...@linagora.com> > > wrote: > > > >> Hi, > >> > >> Thanks for reporting this, this is a very interesting bug, we definitely > >> need to investigate... > >> > >> > >> You can follow the issue here : > >> https://issues.apache.org/jira/browse/JAMES-2350 > >> > >> > >> Expect a patch soon, and thanks for the report! > >> > >> Furthermore, I just pushed a `3.0.1` tag on the docker image. I suspect > >> it is due to a recent patch. Using this tag release should solve your > >> issue. > >> > >> See https://hub.docker.com/r/linagora/james-jpa-sample/tags/ > >> > >> Cheers, > >> > >> > >> Benoit > >> > >> Le 14/03/2018 à 10:40, Yeikel Santana a écrit : > >>> Hi , > >>> > >>> > >>> > >>> I installed James using the docker image linagora/james-jpa-sample. > >>> > >>> > >>> > >>> After starting and configuring it , the server works fine for a while. > I > >>> don't know the exact time , but after some activity , I am unable to > >> connect > >>> to the IMAP server. The only way I am able to recover my server is > >>> restarting the container. > >>> > >>> > >>> > >>> The error that I see in the log is the following : > >>> > >>> > >>> > >>> > >>> > >>> 15:24:39.824 [ERROR] o.a.j.i.p.b.AbstractChainedProcessor - 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. > >>> > >>> at > >>> org.apache.openjpa.kernel.BrokerImpl.endOperation( > BrokerImpl.java:1987) > >>> > >>> at > >>> org.apache.openjpa.kernel.BrokerImpl.isActive(BrokerImpl.java:1935) > >>> > >>> at > >>> org.apache.openjpa.kernel.DelegatingBroker.isActive( > >> DelegatingBroker.java:47 > >>> 5) > >>> > >>> at > >>> org.apache.openjpa.persistence.EntityManagerImpl. > >> isActive(EntityManagerImpl. > >>> java:678) > >>> > >>> at > >>> org.apache.openjpa.persistence.PersistenceExceptions$2. > >> translate(Persistence > >>> Exceptions.java:74) > >>> > >>> at > >>> org.apache.openjpa.kernel.DelegatingBroker.translate( > >> DelegatingBroker.java:1 > >>> 06) > >>> > >>> at > >>> org.apache.openjpa.kernel.DelegatingBroker.newObjectId( > >> DelegatingBroker.java > >>> :317) > >>> > >>> at > >>> org.apache.openjpa.persistence.EntityManagerImpl. > >> find(EntityManagerImpl.java > >>> :487) > >>> > >>> at > >>> org.apache.james.mailbox.jpa.quota.JPAPerUserMaxQuotaManager. > >> getMaxMessage(J > >>> PAPerUserMaxQuotaManager.java:104) > >>> > >>> at > >>> org.apache.james.mailbox.store.quota.StoreQuotaManager. > >> getMessageQuota(Store > >>> QuotaManager.java:52) > >>> > >>> at > >>> org.apache.james.imap.processor.GetQuotaRootProcessor. > >> doProcess(GetQuotaRoot > >>> Processor.java:81) > >>> > >>> at > >>> org.apache.james.imap.processor.GetQuotaRootProcessor. > >> doProcess(GetQuotaRoot > >>> Processor.java:53) > >>> > >>> at > >>> org.apache.james.imap.processor.AbstractMailboxProcessor. > >> doProcess(AbstractM > >>> ailboxProcessor.java:110) > >>> > >>> at > >>> org.apache.james.imap.processor.AbstractMailboxProcessor. > >> process(AbstractMai > >>> lboxProcessor.java:97) > >>> > >>> at > >>> org.apache.james.imap.processor.AbstractMailboxProcessor. > >> doProcess(AbstractM > >>> ailboxProcessor.java:89) > >>> > >>> at > >>> org.apache.james.imap.processor.AbstractMailboxProcessor. > >> doProcess(AbstractM > >>> ailboxProcessor.java:71) > >>> > >>> at > >>> org.apache.james.imap.processor.base.AbstractChainedProcessor. > >> process(Abstra > >>> ctChainedProcessor.java:65) > >>> > >>> at > >>> org.apache.james.imap.processor.base.AbstractChainedProcessor. > >> process(Abstra > >>> ctChainedProcessor.java:74) > >>> > >>> at > >>> org.apache.james.imapserver.netty.ImapChannelUpstreamHandler. > >> messageReceived > >>> (ImapChannelUpstreamHandler.java:196) > >>> > >>> at > >>> org.jboss.netty.channel.SimpleChannelUpstreamHandler. > >> handleUpstream(SimpleCh > >>> annelUpstreamHandler.java:70) > >>> > >>> at > >>> org.jboss.netty.channel.DefaultChannelPipeline. > >> sendUpstream(DefaultChannelPi > >>> peline.java:564) > >>> > >>> at > >>> org.jboss.netty.channel.DefaultChannelPipeline$ > >> DefaultChannelHandlerContext. > >>> sendUpstream(DefaultChannelPipeline.java:791) > >>> > >>> at > >>> org.jboss.netty.channel.Channels.fireMessageReceived( > Channels.java:296) > >>> > >>> at > >>> org.jboss.netty.handler.codec.frame.FrameDecoder. > >> unfoldAndFireMessageReceive > >>> d(FrameDecoder.java:462) > >>> > >>> at > >>> org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode( > >> FrameDecoder.jav > >>> a:443) > >>> > >>> at > >>> org.jboss.netty.handler.codec.frame.FrameDecoder. > >> messageReceived(FrameDecode > >>> r.java:303) > >>> > >>> at > >>> org.jboss.netty.channel.SimpleChannelUpstreamHandler. > >> handleUpstream(SimpleCh > >>> annelUpstreamHandler.java:70) > >>> > >>> at > >>> org.jboss.netty.channel.DefaultChannelPipeline. > >> sendUpstream(DefaultChannelPi > >>> peline.java:564) > >>> > >>> at > >>> org.jboss.netty.channel.DefaultChannelPipeline$ > >> DefaultChannelHandlerContext. > >>> sendUpstream(DefaultChannelPipeline.java:791) > >>> > >>> at > >>> org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable. > >> doRun(Channel > >>> UpstreamEventRunnable.java:43) > >>> > >>> at > >>> org.jboss.netty.handler.execution.ChannelEventRunnable.run( > >> ChannelEventRunna > >>> ble.java:67) > >>> > >>> at > >>> org.jboss.netty.handler.execution.OrderedMemoryAwareThreadPoolEx > >> ecutor$Child > >>> Executor.run(OrderedMemoryAwareThreadPoolExecutor.java:314) > >>> > >>> at > >>> java.util.concurrent.ThreadPoolExecutor.runWorker( > >> ThreadPoolExecutor.java:11 > >>> 49) > >>> > >>> at > >>> java.util.concurrent.ThreadPoolExecutor$Worker.run( > >> ThreadPoolExecutor.java:6 > >>> 24) > >>> > >>> at java.lang.Thread.run(Thread.java:748) > >>> > >>> > >>> > >>> > >>> > >>> Any help is welcome. Thank you > >>> > >>> > >>> > >>> > >> > > >