My Oracle Support Banner

Refresh Users From LDAP Directory Fails with Error "java.lang.String cannot be cast to com .agile.admin.ldap.DirUser" with Insufficient Privilege Error in Application Server Log (Doc ID 2697125.1)

Last updated on AUGUST 03, 2020

Applies to:

Oracle Agile PLM Framework - Version 9.3.3.0 and later
Information in this document applies to any platform.

Symptoms

Clicking on "Refresh Users from LDAP Directory" from Java Client fails with below error occurs:

Error

java.lang.String cannot be cast to com .agile.admin.ldap.DirUser

 

Can see below error in Agile Application Server log:

start to update users from ldap.
com.agile.util.exception.CMAppException: Insufficient privilege.
  at com.agile.pc.cmserver.base.BaseService.createObjectByNumber(BaseService.java:1363)
  at com.agile.pc.cmserver.user.UserService.batchCreateUsers(UserService.java:393)
  at com.agile.upgrade.ldap.Migration.doIt(Migration.java:255)
  at com.agile.upgrade.ldap.Migration.updateUsersFromLdap(Migration.java:97)
  at com.agile.pc.cmserver.user.UserService.updateUsersFromLdap(UserService.java:265)
  at com.agile.pc.cmserver.user.UserSessionBean.updateUsersFromLdap(UserSessionBean.java:2034)
  at com.agile.pc.cmserver.user.UserSessionBean_qy39gj_EOImpl.__WL_invoke(Unknown Source)
  at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:32)
  at com.agile.pc.cmserver.user.UserSessionBean_qy39gj_EOImpl.updateUsersFromLdap(Unknown Source)



Steps

The issue can be reproduced at will with the following steps:
1. Log into Java Client
2. Goto Admin tab > Settings > User Settings > Users
3. Click Refresh Users from LDAP Directory
4. Gets error


Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.