[
https://jira.nuxeo.com/browse/NXP-7302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thierry Delprat updated NXP-7302:
---------------------------------
Status: Open (was: Triage)
> Exception when there are multiple PostCommit synchronous listeners
> ------------------------------------------------------------------
>
> Key: NXP-7302
> URL: https://jira.nuxeo.com/browse/NXP-7302
> Project: Nuxeo Enterprise Platform
> Issue Type: Bug
> Affects Versions: 5.4.2
> Reporter: Thomas Roger
> Assignee: Thierry Delprat
> Fix For: 5.5
>
>
> They all use the same reconnected events (from the first PostCommitListener).
> The referenced CoreSession in the DocumentModels is closed after the end of
> the first PostCommitListener and then a temp CoreSession is created for the
> other ones, which lead to the following exception:
> {code}
> 18:44:57,434 ERROR [PostCommitSynchronousRunner] Exception during post commit
> sync execution for listener createSocialDocumentListener
> org.nuxeo.ecm.core.api.ClientException: Failed to load repository default
> at
> org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:106)
> at
> org.nuxeo.ecm.core.api.local.LocalSession.getSession(LocalSession.java:166)
> at
> org.nuxeo.ecm.core.api.AbstractSession.connect(AbstractSession.java:214)
> at sun.reflect.GeneratedMethodAccessor456.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:129)
> at $Proxy21.connect(Unknown Source)
> at
> org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:155)
> at
> org.nuxeo.ecm.core.api.repository.Repository.open(Repository.java:113)
> at
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getTempCoreSession(DocumentModelImpl.java:418)
> at
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl$RunWithCoreSession.execute(DocumentModelImpl.java:436)
> at
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl.loadDataModel(DocumentModelImpl.java:536)
> at
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getDataModel(DocumentModelImpl.java:550)
> at
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPart(DocumentModelImpl.java:1428)
> at
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getProperty(DocumentModelImpl.java:1494)
> at
> org.nuxeo.ecm.core.api.impl.DocumentModelImpl.getPropertyValue(DocumentModelImpl.java:1508)
> at
> org.nuxeo.ecm.social.workspace.listeners.VisibilitySocialDocumentListener.handleEvent(VisibilitySocialDocumentListener.java:72)
> at
> org.nuxeo.ecm.social.workspace.listeners.VisibilitySocialDocumentListener.handleEvent(VisibilitySocialDocumentListener.java:55)
> at
> org.nuxeo.ecm.core.event.tx.PostCommitSynchronousRunner$MonoThreadExecutor.run(PostCommitSynchronousRunner.java:115)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception:
> org.nuxeo.ecm.core.api.ClientException. message: Cannot create a core session
> outside a security context. You must login first.
> at
> org.nuxeo.ecm.core.api.local.LocalSession.createSession(LocalSession.java:94)
> ... 20 more
> {code}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets