[ 
https://jira.nuxeo.com/browse/NXP-4538?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Florent Guillaume resolved NXP-4538.
------------------------------------

    Resolution: Cannot Reproduce

> ClassCastException - SimplePrincipal and NuxeoPrincipal in jbpm-core
> --------------------------------------------------------------------
>
>                 Key: NXP-4538
>                 URL: https://jira.nuxeo.com/browse/NXP-4538
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Workflow
>    Affects Versions: 5.3 GA
>            Reporter: Sean Radford
>            Assignee: Alexandre Russel
>            Priority: Major
>
> As discussed on the forum, with Nuxeo 5.3.0 (not present in Nuxeo 5.2) there 
> is a class casting issue in DeleteProcessForDeletedDocumentListener.java 
> (nuxeo-platform-jbpm-core) (stacktrace at end)
> This class is casting the DocumentEventContext#getPrincipal() to a 
> NuxeoPrincipal when it is just a SimplePrincipal.
> Not sure 'who' is at 'fault'? DeleteProcessForDeletedDocumentListener.java 
> for a bad cast or whoever has setup the DocumentEventContext?
> Probable reason for this issue not to have been seen earlier is that the 
> event is fired as part of a RepositoryInitializationHandler that is removing 
> a document(s).
> 2010-01-06 15:46:34,660 ERROR 
> [org.nuxeo.ecm.core.event.impl.EventServiceImpl] Error during sync listener 
> execution
> java.lang.ClassCastException: org.nuxeo.ecm.core.api.SimplePrincipal
>        at 
> org.nuxeo.ecm.platform.jbpm.core.listener.DeleteProcessForDeletedDocumentListener.handleEvent(DeleteProcessForDeletedDocumentListener.java:61)
>        at 
> org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:144)
>        at 
> org.nuxeo.ecm.core.api.AbstractSession.fireEvent(AbstractSession.java:330)
>        at 
> org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:382)
>        at 
> org.nuxeo.ecm.core.api.AbstractSession.removeNotifyOneDoc(AbstractSession.java:1608)
>        at 
> org.nuxeo.ecm.core.api.AbstractSession.removeDocument(AbstractSession.java:1582)
>        at 
> org.nuxeo.ecm.core.api.ejb.DocumentManagerBean.removeDocument(DocumentManagerBean.java:338)
>        at 
> org.nuxeo.ecm.core.api.AbstractSession.removeDocuments(AbstractSession.java:1654)
>        at 
> org.nuxeo.ecm.core.api.ejb.DocumentManagerBean.removeDocuments(DocumentManagerBean.java:347)
>        at 
> com.tacola.acme.core.repository.RepositoryListener.cleanDomain(RepositoryListener.java:159)
>        at 
> com.tacola.acme.core.repository.RepositoryListener.doInitializeRepository(RepositoryListener.java:85)
>        at 
> org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:97)
>        at 
> org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:95)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
ECM-tickets@lists.nuxeo.com
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to