Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

DirOrganizationalRole.fetch

760086Mar 15 2010 — edited Mar 19 2010
Hi



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
This post has been answered by M Peterson on Mar 15 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 15 2010
Added on Mar 15 2010
4 comments
965 views