I have this kinds of errors when I add members to a groups in a loop and save my page after my loop (with xwiki 8.4 / tomcat /postgresql)
2017-02-02 11:03:57,129 [https://xxxxxxxxxxx/bin/view/BacASable/UpdateGroup] ERROR o.h.u.JDBCExceptionReporter - L'élément du batch 0 insert into xwikircs (XWR_DATE, XWR_COMMENT, XWR_AUTHOR, XWR_DOCID, XWR_VERSION1, XWR_VERSION2) values ('2017-02-02 11:03:53.000000 +01:00:00', '', 'XWiki.Admin', -8926142983782395498, 6175, 1) a été annulé. Appeler getNextException pour en connaître la cause. 2017-02-02 11:03:57,129 [https://xxxxxxxxxxx/bin/view/BacASable/UpdateGroup] WARN o.h.u.JDBCExceptionReporter - SQL Error: 0, SQLState: 23505 2017-02-02 11:03:57,129 [https://xxxxxxxxxxx/bin/view/BacASable/UpdateGroup] ERROR o.h.u.JDBCExceptionReporter - ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « xwikircs_pkey » Détail : La clé « (xwr_docid, xwr_version1, xwr_version2)=(-8926142983782395498, 6175, 1) » existe déjà. 2017-02-02 11:04:16,431 [https://xxxxxxxxxxx/bin/view/BacASable/UpdateGroup] WARN o.h.u.JDBCExceptionReporter - SQL Error: 0, SQLState: 23505 2017-02-02 11:04:16,431 [https://xxxxxxxxxxx/bin/view/BacASable/UpdateGroup] ERROR o.h.u.JDBCExceptionReporter - L'élément du batch 0 insert into xwikircs (XWR_DATE, XWR_COMMENT, XWR_AUTHOR, XWR_DOCID, XWR_VERSION1, XWR_VERSION2) values ('2017-02-02 11:04:12.000000 +01:00:00', '', 'XWiki.Admin', -8926142983782395498, 6178, 1) a été annulé. Appeler getNextException pour en connaître la cause. 2017-02-02 11:04:16,431 [https://xxxxxxxxxxx/bin/view/BacASable/UpdateGroup] WARN o.h.u.JDBCExceptionReporter - SQL Error: 0, SQLState: 23505 2017-02-02 11:04:16,432 [https://xxxxxxxxxxx/bin/view/BacASable/UpdateGroup] ERROR o.h.u.JDBCExceptionReporter - ERREUR: la valeur d'une clé dupliquée rompt la contrainte unique « xwikircs_pkey » Détail : La clé « (xwr_docid, xwr_version1, xwr_version2)=(-8926142983782395498, 6178, 1) » existe déjà. -------------------------------------------- En date de : Jeu 2.2.17, Pascal BASTIEN <pbasnews-xw...@yahoo.fr> a écrit : Objet: Re : timeout in job scheduler? À: "XWiki Users" <users@xwiki.org> Date: Jeudi 2 février 2017, 10h44 $xwiki API have an "sync" equivalent command (with groovy)? or "sleep"? My scheduled job generate some crash of tomcat: 01-Feb-2017 23:16:40.771 SEVERE [http-nio-8080-ClientPoller-0] org.apache.tomcat.util.net.NioEndpoint$Poller.run java.lang.OutOfMemoryError: Java heap space Thxs. -------------------------------------------- En date de : Mer 1.2.17, Pascal BASTIEN <pbasnews-xw...@yahoo.fr> a écrit : Objet: timeout in job scheduler? À: "XWiki Users" <users@xwiki.org> Date: Mercredi 1 février 2017, 16h17 Hello, I created a job scheduled in scheduler, but sometime my job seem to be failed sometime. In my groovy job I add some logging system: some text sent to a xwiki page+save but didn't find interesting things. Of course I have some loops (I things) in my script (to list groups member): Members = xwiki.rightsmanager.getAllMembersNamesForGroup("${GroupName}") //extrait les users du groupe Members.each { MyMember = xwiki.getDocument(it) I wonder, Is there a timeout associated to the script that runs and is there feedback in the event of an error (or a way to activate logs for job scheduled)? Thxs Pascal BASTIEN