Agile (MOSC)

MOSC Banner

sendMail is not working

edited Mar 6, 2012 2:12PM in Agile (MOSC) 13 commentsAnswered
Hi,

I am trying to use sendMail api in agile

Code:

IUser user = (IUser)agileSession.getObject(IUser.OBJECT_TYPE, "smithar");

IUser[] user1 = new IUser[] {user};

agileSession.sendMail(user1, "Test");

agileSession.sendMail(user1, "Test"); is failing with the below error:

java.lang.ClassCastException: com.agile.util.CMObjectID
        at com.agile.api.pc.Session$SendMailAction.doSdkAction(Session.java:1999)
        at com.agile.api.common.SDKAction.run(SDKAction.java:23)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authenticate
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:
        at weblogic.security.Security.runAs(Security.java:61)
        at com.agile.api.common.WebLogicAuthenticator.doAs(WebLogicAuthenticator
        at com.agile.api.common.Security.doAs(Security.java:54)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center