DirOrganizationalRole.fetch
760086Mar 15 2010 — edited Mar 19 2010Hi
I am facing problem to create participant using dirHumanParticipent method please help me to find the solution.
This is the code
currentSession = DirectorySession.currentEngineSession
myOU = DirOrganizationalUnit.fetch(dir : currentSession, id : "Mphasis")
myRole = DirOrganizationalRole.fetch(session : currentSession, id : "Role1")
roleAssignment1[] = RoleAssignment.create(role : myRole, permissions : 255)
myparticipant = DirHumanParticipant.create(session : currentSession, id : "kishore",
firstName : "kishore", lastName : "kumar",
displayName : "kishore kumar", mail : "guddeti.kumar@mphasis.com",
telephone : "9250012300", fax : "9250012300",
password : "", ou : myOU, rolesAssignment : roleAssignment1,
enabled : true);
When I am printing log messages I am getting all values like session, orgUnint, role details. When I am trying to debug it. It is showing that it is failing to fetch role details.
this is the Error message i am getting when i am debug it.
[no message code]
Fuego.components.DirectoryException:Could not obtain In Provider for Project CreationNewUser
at
Fuegoblock.fdi.DirOrganizationRole.fetch(DirOrganizationRole.java:228)
at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Please any one help me to find the solution
Thanks in advance for helping me