My Oracle Support Banner

When to Sync Users Java Client Shows Error java.lang.string cannot be cast to com.agile.admin.ldap.DirUser (Doc ID 2569885.1)

Last updated on FEBRUARY 11, 2021

Applies to:

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

Symptoms

On : 9.3.5.0 version, Directory Access Protocol

When attempting to sync LDAP users into Agile,
the following error occurs.

JAVA CLIENT ERROR
-----------------------
java.lang.string cannot be cast to com.agile.admin.ldap.DirUser

SERVER ERROR
-----------------------
java.lang.ClassCastException: java.lang.String cannot be cast to com.agile.admin.ldap.DirUser
    at com.agile.upgrade.ldap.Migration.getStrUserIDs(Migration.java:379)
    at com.agile.upgrade.ldap.Migration.doIt(Migration.java:258)
    at com.agile.upgrade.ldap.Migration.updateUsersFromLdap(Migration.java:97)
    at com.agile.pc.cmserver.user.UserService.updateUsersFromLdap(UserService.java:284)
    at com.agile.upgrade.ldap.MigrationTask.execute(MigrationTask.java:63)
    at com.agile.common.server.eventmgr.RunnableEvent.run(RunnableEvent.java:44)
com.agile.admin.client.value.AdminException: Only "All Characters without space and Mixed Case" values are allowed for User ID.
    at com.agile.admin.server.AdminUtil.buildInvalidException(AdminUtil.java:859)
    at com.agile.admin.server.AdminUtil.validateStdAllString(AdminUtil.java:802)
    at com.agile.admin.server.AdminUtil.validateString(AdminUtil.java:553)
    at com.agile.admin.server.ADAtt.validateString(ADAtt.java:2510)
    at com.agile.pc.cmserver.base.CMAttInfo.validateString(CMAttInfo.java:532)
    at com.agile.pc.cmserver.base.BaseService.createObjectByNumber(BaseService.java:1657)
    at com.agile.pc.cmserver.user.UserService.batchCreateUsers(UserService.java:450)
    at com.agile.upgrade.ldap.Migration.doIt(Migration.java:255)
    at com.agile.upgrade.ldap.Migration.updateUsersFromLdap(Migration.java:97)


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Logon Java Client and click Referesh LDAP Users
2. Check stderr.log



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
References


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