000022466 - How to resolve class cast exception in RSA ClearTrust Entitlements Server (EServer) log

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000022466
Applies ToRSA ClearTrust 5.5.3
Sun Solaris 2.9
Oracle 10g
IssueHow to resolve class cast exception in RSA ClearTrust Entitlements Server (EServer) log
The following stack trace appears in the eserver.log file when attempting to log in to the Entitlements Manager after an initial installation of RSA ClearTrust:

15:28:19:279 [*] [APIClientProxy_12] - getUser:SQL <SELECT U.DESCRIPTION,U.INACTIVE_DATE,U.BEGIN_DATE,U.CREATION_DATE,U.DN,U.EMAIL,U.LAST_NAME,U.FIRST_NAME,U.NAME,U.ADMIN_LOCKOUT,U.SUPER_HELP_DESK,U.SUPER_USER,U.PUBLIC_STATE,U.ADMIN_GROUP_ID,U.ID,P.FAILED_COUNT,P.LOCKOUT_EXPIRATION,P.EXPIRATION_DATE,P.PASSWORD_CREATION_DATE,P.LAST_RESET,P.EXPIRATION_STATUS,P.OVERRIDE_POLICY,P.PASSWORD,PR.PROPERTY_DEF_ID,PR.BOOLEAN_VALUE,PR.DATE_VALUE,PR.FLOAT_VALUE,PR.INT_VALUE, PR.STRING_VALUE FROM PASSWORD P, USER_PROPERTY PR, USERS U WHERE (U.ID=P.USER_ID) AND (P.USER_ID=PR.USER_ID(+)) AND  (U.NAME = 'admin')  ORDER BY NAME >
java.lang.ClassCastException
 at sirrus.da.sql.util.SQLResultSetConvertor$DateConvertor.convert(SQLResultSetConvertor.java:312)
 at sirrus.da.sql.util.SQLResultSetConvertor.normalizeData(SQLResultSetConvertor.java:266)
 at sirrus.da.sql.util.SQLResultSetConvertor.makeSQLEntry(SQLResultSetConvertor.java:208)
 at sirrus.da.sql.util.SQLEntityHelper.getUser(SQLEntityHelper.java:277)
 at sirrus.da.sql.util.SQLConnectionImpl.get(SQLConnectionImpl.java:401)
 at sirrus.da.sql.util.SQLConnectionImpl.getAdminUserByName(SQLConnectionImpl.java:1213)
 at sirrus.da.sql.admin.factory.SQLAdministrativeUserFactory.searchForAdministrativeUserByName(SQLAdministrativeUserFactory.java:170)
 at sirrus.da.sql.admin.factory.SQLAdministrativeUserFactory.getAdministrativeUserByName(SQLAdministrativeUserFactory.java:189)
 at sirrus.da.admin.AdministrativeUser.getByName(AdministrativeUser.java:119)
 at sirrus.api.command.server.APISetClientsUserCmd.getUserAndCheckPW(APISetClientsUserCmd.java:85)
 at sirrus.api.command.server.GetAdminRoleIdsForUserCmd.execute(GetAdminRoleIdsForUserCmd.java:55)
 at sirrus.api.command.APICmdStrategy.executeCmd(APICmdStrategy.java:150)
 at sirrus.api.command.APICmdStrategy.executeOn(APICmdStrategy.java:89)
 at sirrus.util.strategy.StrategyManager.executeStrategyFor(StrategyManager.java:94)
 at sirrus.api.server.APIClientProxy.executeCmd(APIClientProxy.java:1016)
 at sirrus.api.server.APIClientProxy.run(APIClientProxy.java:771)
java.lang.ClassCastException
 at sirrus.da.sql.util.SQLResultSetConvertor$DateConvertor.convert(SQLResultSetConvertor.java:312)
 at sirrus.da.sql.util.SQLResultSetConvertor.normalizeData(SQLResultSetConvertor.java:266)
 at sirrus.da.sql.util.SQLResultSetConvertor.makeSQLEntry(SQLResultSetConvertor.java:208)
 at sirrus.da.sql.util.SQLEntityHelper.getUser(SQLEntityHelper.java:277)
 at sirrus.da.sql.util.SQLConnectionImpl.get(SQLConnectionImpl.java:401)
 at sirrus.da.sql.util.SQLConnectionImpl.getAdminUserByName(SQLConnectionImpl.java:1213)
 at sirrus.da.sql.admin.factory.SQLAdministrativeUserFactory.searchForAdministrativeUserByName(SQLAdministrativeUserFactory.java:170)
 at sirrus.da.sql.admin.factory.SQLAdministrativeUserFactory.getAdministrativeUserByName(SQLAdministrativeUserFactory.java:189)
 at sirrus.da.admin.AdministrativeUser.getByName(AdministrativeUser.java:119)
 at sirrus.api.command.server.APISetClientsUserCmd.getUserAndCheckPW(APISetClientsUserCmd.java:85)
 at sirrus.api.command.server.GetAdminRoleIdsForUserCmd.execute(GetAdminRoleIdsForUserCmd.java:55)
 at sirrus.api.command.APICmdStrategy.executeCmd(APICmdStrategy.java:150)
 at sirrus.api.command.APICmdStrategy.executeOn(APICmdStrategy.java:89)
 at sirrus.util.strategy.StrategyManager.executeStrategyFor(StrategyManager.java:94)
 at sirrus.api.server.APIClientProxy.executeCmd(APIClientProxy.java:1016)
 at sirrus.api.server.APIClientProxy.run(APIClientProxy.java:771)
15:28:19:306 [*] [APIClientProxy_12] - Return code is 5 msg is java.lang.ClassCastException
CauseOracle provides two JDBC drivers:  ojdbc14.zip (for JRE 1.4.x and later) and classes12.zip (for JRE 1.3.x and earlier).  ClearTrust 5.5.3 utilizes JRE 1.4.  If classes12.zip is loaded, a class cast exception will occur.
ResolutionTo correct this issue, ensure the classes12.zip file is not loaded by the system classpath. Also, ensure that classes12.zip is not present in the ClearTrust /lib directory, since RSA ClearTrust automatically loads the contents of this folder upon startup.

Ojdcb14.zip can be obtained from Oracle at http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
Legacy Article IDa30355

Attachments

    Outcomes