Technical
java.lang.ClassCastException occurred. atg.adapter.gsa.ChangeAwareSet cannot be cast to java.util.List
I want to get the category id from parentCategories property of a product in java , then iterate them until a specific category comes up. But , I am getting class cast exception on line number 2 . Please help me. java.lang.ClassCastException: atg.adapter.gsa.ChangeAwareSet cannot be cast to java.util.List 1) RepositoryItem productItem = getCatalogTools().findProduct(id);2) List<RepositoryItem> catList = (List<RepositoryItem>)productItem.getPropertyValue("parentCategories"); 3) for (RepositoryItem category : catList) { vlogDebug("Category:{0}", category.getRepositoryId());}
Related Links
BCC Targeters can display data followed by only one content group ?
How to undo or unclaim the applied coupon for Item !
Pass collections of values to IN sql query in Oracle ATG
QueryBuilder with date range
Catalog is not loding after server bounce in ATG
Bcc Issue
ATG Hardware Sizing document
Index content group based categories
How do I generate Xstore passwords for new users?
PO line Closed code is NULL
Error when startup UCM Server ?? On Outgoing Provider
Inventory User Access
Error with RQL Statement
CRS setup using CIM- error while initializing CRS EAC APP menu, Initialize step.
Unable to connect ACC
ATG Callback Handler