Hi,
It seems like this is a bug. This exception is raising when the program tries to cast from String[] to String or from String to String[].
If you take a look at the source of NotificationEventListener at line 114 it reads "recipients" property from context and casts to String[].
Simple search in the nuxeo source code can you show you that there are some places which fill the event context properties with a single String value for recipients, instead
of String[]. For example - Jbpm service is filling String[] as value for this property, but EmailNotificationSenderActionsBean is filling String as value.
If you are trying to send email from web interface it should rise such an exception.
Regards,
Stefan
Hi nuxeo people,

I have configured the file mail-service.xml (only change the attribute mail.smtp.host="localhost"). Postfix is installed, listen
on port 25 and works fine with the command system mail, but I get the following error in server.log :

2009-05-26 12:07:07,494 ERROR [org.nuxeo.ecm.platform.ec.notification.NotificationEventListener] Error during Notification processing for event emailDocumentSend
java.lang.ClassCastException: java.lang.String cannot be cast to [Ljava.lang.String;
        at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleNotifications(NotificationEventListener.java:114)
        at org.nuxeo.ecm.platform.ec.notification.NotificationEventListener.handleEvent(NotificationEventListener.java:79)
        at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor$Job.run(AsyncEventExecutor.java:109)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

Can you help me ?

Thanks in advance


Jean-Louis Barrois
Université Paris 5 René Descartes

_______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm


--

Setelis Ltd

Stefan Dimov
tel/fax : +359 2 987 08 15
mobile: +359 888 52 54 88
web : http://www.setelis.com




_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to