<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Quota and custom listeners in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/quota-and-custom-listeners/m-p/313855#M856</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I identify that Nuxeo Quota has problem with custom listeners in a nuxeo 5.8 last HF 05.&lt;/P&gt;
&lt;P&gt;Without Nuxeo Quota, my custom listeners are ok.&lt;/P&gt;
&lt;P&gt;With Nuxeo Quota, I obtain errors with my custom listeners :&lt;/P&gt;
&lt;P&gt;1- with the one that listen on event documentModified :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;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)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2- With another custom listener that listen on documentCreated, I can't create a document. Error is :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;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 ....
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I use custom type of document.&lt;/P&gt;
&lt;P&gt;I observe too problems with refresh statistics like this answer &lt;A href="http://answers.nuxeo.com/questions/6324/nuxeo-quota-initial-computation-freezes-nuxeo" target="test_blank"&gt;http://answers.nuxeo.com/questions/6324/nuxeo-quota-initial-computation-freezes-nuxeo&lt;/A&gt; (not enough in large folders since we doesn't yet in production 5.8).&lt;/P&gt;
&lt;P&gt;So, is Nuxeo Quota really usable in 5.8 ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2014 16:06:38 GMT</pubDate>
    <dc:creator>brigitte_</dc:creator>
    <dc:date>2014-01-21T16:06:38Z</dc:date>
    <item>
      <title>Quota and custom listeners</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/quota-and-custom-listeners/m-p/313855#M856</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I identify that Nuxeo Quota has problem with custom listeners in a nuxeo 5.8 last HF 05.&lt;/P&gt;
&lt;P&gt;Without Nuxeo Quota, my custom listeners are ok.&lt;/P&gt;
&lt;P&gt;With Nuxeo Quota, I obtain errors with my custom listeners :&lt;/P&gt;
&lt;P&gt;1- with the one that listen on event documentModified :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;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)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;2- With another custom listener that listen on documentCreated, I can't create a document. Error is :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;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 ....
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I use custom type of document.&lt;/P&gt;
&lt;P&gt;I observe too problems with refresh statistics like this answer &lt;A href="http://answers.nuxeo.com/questions/6324/nuxeo-quota-initial-computation-freezes-nuxeo" target="test_blank"&gt;http://answers.nuxeo.com/questions/6324/nuxeo-quota-initial-computation-freezes-nuxeo&lt;/A&gt; (not enough in large folders since we doesn't yet in production 5.8).&lt;/P&gt;
&lt;P&gt;So, is Nuxeo Quota really usable in 5.8 ?&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2014 16:06:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/quota-and-custom-listeners/m-p/313855#M856</guid>
      <dc:creator>brigitte_</dc:creator>
      <dc:date>2014-01-21T16:06:38Z</dc:date>
    </item>
  </channel>
</rss>

