IBM Support

PK63326; 6.1.0.15: Attribute query get() fails with ClassCastException

Download


Abstract

An exception is thrown when getting all available attributes of a user with get() API.

Download Description

PK63326 resolves the following problem:

ERROR DESCRIPTION:
When all available attributes of a user are queried during a get() operation and there is at least one attribute that is problematic (for example, the attribute type in LDAP does not match the attribute type in Virtual Member Manager), then the whole query fails with a ClassCastException.

LOCAL FIX:
None

PROBLEM SUMMARY

USERS AFFECTED:
All users of IBM WebSphere Application Server V6.1 who use federated repositories (Virtual Member Manager - VMM).

PROBLEM DESCRIPTION:
An exception is thrown when getting all available attributes of a user with get() API.

RECOMMENDATION:
None

When all available attributes of a user are queried with get() API and there is at least one attribute definition in VMM that is different than the definition in LDAP (for example, the attribute type such as String in LDAP does not match the attribute type such as identifierType in Virtual Member Manager), then the whole query fails with ClassCastException:

Caused by: java.lang.ClassCastException: java.lang.String
incompatible with org.eclipse.emf.ecore.InternalEObject
at
org.eclipse.emf.ecore.util.EcoreEList.inverseAdd(EcoreEList.java
:249)
at
org.eclipse.emf.common.notify.impl.NotifyingListImpl.addUnique(N
otifyingListImpl.java:310)
at
org.eclipse.emf.common.util.BasicEList.add(BasicEList.java:600)
at
com.ibm.ws.wim.adapter.ldap.LdapAdapter.setPropertyValue(LdapAda
pter.java:3183)
at
com.ibm.ws.wim.adapter.ldap.LdapAdapter.populateEntity(LdapAdapt
er.java:2987)
at
com.ibm.ws.wim.adapter.ldap.LdapAdapter.createEntityFromLdapEntr
y(LdapAdapter.java:1255)
at
com.ibm.ws.wim.adapter.ldap.LdapAdapter.get(LdapAdapter.java:129
5)
at
com.ibm.ws.wim.ProfileManager.getImpl(ProfileManager.java:1338)
at
com.ibm.ws.wim.ProfileManager.genericProfileManagerMethod(Profil
eManager.java:277)
at com.ibm.ws.wim.ProfileManager.get
(ProfileManager.java:326)
at
com.ibm.websphere.wim.ServiceProvider.get(ServiceProvider.java:3
45)
... 218 more

PROBLEM CONCLUSION:
The problem has been fixed. The ClassCastException will be logged as a warning in the trace and the whole get operation will not be failed again.

The fix for this APAR is currently targeted for inclusion in Fix Pack 6.1.0.19. Please refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?uid=swg27004980

Prerequisites

Download the UpdateInstaller below to install this fix.

[{"PRLabel":"UpdateInstaller","PRLang":"US English","PRSize":"7250000","PRPlat":{"label":"AIX","code":"PF002"},"PRURL":"http://www.ibm.com/support/docview.wss?uid=swg21205991"}]

Installation Instructions

Review the readme.txt for detailed installation instructions.

[{"INLabel":"Readme","INLang":"US English","INSize":"6206","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PK63326/readme.txt"}]

Download Package

Download package
What is Fix Central (FC)?
What is DD?
Download RELEASE DATE LANGUAGE SIZE(Bytes) Download Options
6.1.0.0-WS-WAS-IFPK633264/20/2008US English62860FCFTPDD
6.1.0.15-WS-WAS-IFPK633264/29/2008US English62940FCFTPDD
6.1.0.17-WS-WAS-IFPK633266/4/2008US English62915FCFTPDD
6.1.0.13-WS-WAS-IFPK6332610/15/2008US English62932FCFTPDD

On
[{"DNLabel":"6.1.0.0-WS-WAS-IFPK63326","DNDate":"4/20/2008","DNLang":"US English","DNSize":"62860","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":null,"DNURL_FTP":null,"DDURL":null},{"DNLabel":"6.1.0.15-WS-WAS-IFPK63326","DNDate":"4/29/2008","DNLang":"US English","DNSize":"62940","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":null,"DNURL_FTP":null,"DDURL":null},{"DNLabel":"6.1.0.17-WS-WAS-IFPK63326","DNDate":"6/4/2008","DNLang":"US English","DNSize":"62915","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":null,"DNURL_FTP":null,"DDURL":null},{"DNLabel":"6.1.0.13-WS-WAS-IFPK63326","DNDate":"10/15/2008","DNLang":"US English","DNSize":"62932","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":null,"DNURL_FTP":null,"DDURL":null}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server Support Web site (http://www.ibm.com/support/entry/portal/Overview/Software/WebSphere/WebSphere_Application_Server), or contact 1-800-IBM-SERV(U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Security","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"6.1.0.17;6.1.0.15;6.1.0.13","Edition":"Advanced;Base;Developer;Enterprise;Express;Network Deployment;Single Server","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24018990