- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
ERROR:Multiple administrators attempting to update data at the same time.
Hi there.
An error occurred while executing UpdateAMPrincipalCommand.
===============source codes==================
AMPrincipalDTO currAMprincipal = new AMPrincipalDTO();
currAMprincipal.setGuid(userGuid);
currAMprincipal .setRadiusProfileGuid(radiusid);
UpdateAMPrincipalCommand uapcmd = new UpdateAMPrincipalCommand(currAMprincipal);
ses = newSession();
uapcmd.execute(ses);
ses.logout();
~~~~~~
public static ClientSession newSession() {
ClientSession session = null;
try {
Connection conn = ConnectionFactory.getConnection();
session = conn.connect("root", "Password");
System.out.println("sessionid : " + session.getSessionId());
} catch (CommandException e) {
}
return session;
}
===============ERROR======================
ERROR, PCxxx,,,,Exception during command execution.
com.rsa.command.exception.ConcurrentUpdateException: Multiple administrators attempting to update data at the same time.
at com.rsa.authmgr.internal.admin.principalmgt.impl.AMPrincipalAdministrationImpl.update(AMPrincipalAdministrationImpl.java:258)
at com.rsa.authmgr.internal.admin.principalmgt.impl.AMPrincipalAdministrationImpl.update(AMPrincipalAdministrationImpl.java:707)
at com.rsa.authmgr.internal.admin.principalmgt.impl.AMPrincipalAdministrationImpl.update(AMPrincipalAdministrationImpl.java:573)
...
..
.
===========================================
need help thanks
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Rather than create a new AMPrincipalDTO you must retrieve the existing one (using LookupAMPrincipalCommand for example), modify it, and then perform the update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Rather than create a new AMPrincipalDTO you must retrieve the existing one (using LookupAMPrincipalCommand for example), modify it, and then perform the update.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Thanks Ted.
I am glad to inform you that the problem is now solved.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Great, glad that helped,
Ted
