01-21-2014 11:06 AM
Hello,
I identify that Nuxeo Quota has problem with custom listeners in a nuxeo 5.8 last HF 05.
Without Nuxeo Quota, my custom listeners are ok.
With Nuxeo Quota, I obtain errors with my custom listeners :
1- with the one that listen on event documentModified :
2014-01-21 15:50:23,090 ERROR [Nuxeo-Work-quota-1] [org.nuxeo.ecm.core.work.AbstractWork] Exception during work: org.nuxeo.ecm.quota.QuotaStatsInitialWork@35bc0c[updaterName=documentsCountUpdater,repositoryName=default]
java.lang.RuntimeException: Exception during docDessinSPCETLifecycleStoreListener sync listener execution, rolling back
at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:257)
at org.nuxeo.ecm.core.api.AbstractSession.fireEvent(AbstractSession.java:385)
at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:437)
at org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:2010)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:136)
at com.sun.proxy.$Proxy101.saveDocument(Unknown Source)
at org.nuxeo.ecm.quota.count.DocumentsCountUpdater.saveDocumentsCount(DocumentsCountUpdater.java:343)
at org.nuxeo.ecm.quota.count.DocumentsCountUpdater.saveDocumentsCount(DocumentsCountUpdater.java:310)
at org.nuxeo.ecm.quota.count.DocumentsCountUpdater.computeInitialStatistics(DocumentsCountUpdater.java:223)
at org.nuxeo.ecm.quota.QuotaStatsServiceImpl.computeInitialStatistics(QuotaStatsServiceImpl.java:110)
at org.nuxeo.ecm.quota.QuotaStatsInitialWork$1.run(QuotaStatsInitialWork.java:72)
at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:156)
at org.nuxeo.ecm.quota.QuotaStatsInitialWork.work(QuotaStatsInitialWork.java:68)
at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:65)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
2- With another custom listener that listen on documentCreated, I can't create a document. Error is :
2014-01-21 16:02:53,987 ERROR [http-bio-0.0.0.0-8080-exec-35] [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Error during quotaStatsListener sync listener execution, transaction won't be rolled back since event.markRollBack() was not called by the Listener
java.lang.RuntimeException: Exception during docInitialVersionArchiveStoreListener sync listener execution, rolling back
at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:257)
at org.nuxeo.ecm.core.api.AbstractSession.fireEvent(AbstractSession.java:385)
at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:437)
at org.nuxeo.ecm.core.api.AbstractSession.notifyCheckedInVersion(AbstractSession.java:2371)
at org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:2007)
at org.nuxeo.ecm.quota.size.QuotaAwareDocumentFactory.make(QuotaAwareDocumentFactory.java:44)
at org.nuxeo.ecm.quota.size.QuotaSyncListenerChecker.processDocumentCreated(QuotaSyncListenerChecker.java:190)
at org.nuxeo.ecm.quota.AbstractQuotaStatsUpdater.updateStatistics(AbstractQuotaStatsUpdater.java:108)
at org.nuxeo.ecm.quota.QuotaStatsServiceImpl$1.run(QuotaStatsServiceImpl.java:99)
at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:115)
at org.nuxeo.ecm.quota.QuotaStatsServiceImpl.updateStatistics(QuotaStatsServiceImpl.java:92)
at org.nuxeo.ecm.quota.QuotaStatsListener.handleEvent(QuotaStatsListener.java:79)
at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:215)
at org.nuxeo.ecm.core.api.AbstractSession.fireEvent(AbstractSession.java:385)
at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:437)
at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:931)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at ....
I use custom type of document.
I observe too problems with refresh statistics like this answer http://answers.nuxeo.com/questions/6324/nuxeo-quota-initial-computation-freezes-nuxeo (not enough in large folders since we doesn't yet in production 5.8).
So, is Nuxeo Quota really usable in 5.8 ?
Thanks.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.