Could you open a JIRA issue please? Do you have info on what DocumentEventContext it is, and who created it with a SimplePrincipal instead of a NuxeoPrincipal. At this stage, I can't say whose "fault" it is :)
Florent On Wed, Jan 6, 2010 at 5:00 PM, Sean Radford <[email protected]> wrote: > Hi, > > Upgrading some code from Nuxeo 5.2.0 to Nuxeo 5.3.0 and have hit on a class > casting issue in DeleteProcessForDeletedDocumentListener.java > (nuxeo-platform-jbpm-core) (stacktrace at end of email) > > This class is casting the DocumentEventContext#getPrincipal() to a > NuxeoPrincipal when it is just a SimplePrincipal. > > 'Who' is at fault? DeleteProcessForDeletedDocumentListener.java for a bad > cast or whoever has setup the DocumentEventContext? > > Thanks and regards, > > Sean > > > 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) > > -- > Dr. Sean Radford, MBBS, MSc > http://www.tacola.com/ > t: +44 (0)845 KEY HELP > t: +44 (0)845 539 4357 > m: +44 (0)7802 24 24 86 > > _______________________________________________ > ECM mailing list > [email protected] > http://lists.nuxeo.com/mailman/listinfo/ecm > To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm > -- Florent Guillaume, Director of R&D, Nuxeo Open Source, Java EE based, Enterprise Content Management (ECM) http://www.nuxeo.com http://www.nuxeo.org +33 1 40 33 79 87 _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm
