I'm having trouble setting up email notification for an approval workflow
activity where I want the activity to be addressed to one group, but have
email notifications sent to that group and to a second group. I have the
addressee working fine, but not the email notification setup.

I'm using IDM 3.5.0 and Designer 2.0.1. In Designer, in the Email
Notification tab for the approval item, I have checked the "Show System
Tokens" box. In the Source of the TO token, I have this formula:
function getRecipients() {
v = new java.util.Vector();
v.add("{DN of first group object}");
v.add("{DN of second group object}");
return v;
}

getRecipients()

When the workflow gets to the email notification for this step, I see this
in the JBoss server log output:
2007-11-01 09:57:30,350 ERROR
[com.novell.soa.notification.impl.NotificationThrea d] Error sending email.
com.novell.soa.notification.impl.NotificationExcep tion: Error sending
email.
at
com.novell.soa.notification.impl.SimpleEmailMessag e.send(SimpleEmailMessage.java:218)
at
com.novell.soa.notification.impl.NotificationThrea d.run(NotificationThread.java:93)
Caused by: com.novell.soa.notification.impl.NotificationExcep tion: Error
sending email.
at
com.novell.soa.notification.impl.SimpleEmailMessag e.send(SimpleEmailMessage.java:281)
at
com.novell.soa.notification.impl.SimpleEmailMessag e.send(SimpleEmailMessage.java:216)
... 1 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at
com.novell.soa.notification.impl.SimpleEmailMessag eCreator.getEmailAddressFromList(SimpleEmailMessag eCreator.java:222)
at
com.novell.soa.notification.impl.SimpleEmailMessag eCreator.getEmailAddress(SimpleEmailMessageCreator .java:206)
at
com.novell.soa.notification.impl.SimpleEmailMessag eCreator.createMessage(SimpleEmailMessageCreator.j ava:114)
at
com.novell.soa.notification.impl.SimpleEmailMessag e.send(SimpleEmailMessage.java:270)
... 2 more

Any thoughts?