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 JANUARY 24, 2024

Applies to:

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


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


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(
  at com.agile.pc.cmserver.user.UserService.batchCreateUsers(
  at com.agile.upgrade.ldap.Migration.doIt(
  at com.agile.upgrade.ldap.Migration.updateUsersFromLdap(
  at com.agile.pc.cmserver.user.UserService.updateUsersFromLdap(
  at com.agile.pc.cmserver.user.UserSessionBean.updateUsersFromLdap(
  at com.agile.pc.cmserver.user.UserSessionBean_qy39gj_EOImpl.__WL_invoke(Unknown Source)
  at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(
  at com.agile.pc.cmserver.user.UserSessionBean_qy39gj_EOImpl.updateUsersFromLdap(Unknown Source)


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




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

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