IBM Support

"Unexpected Error ... Something unexpected happened ... CompanyUserMapping incompatible with java.lang.String" error when click on column header (to sort a list) in Java-based functions, caused by APAR PH14417

Troubleshooting


Problem

User launches any JAVA-based function, for example:
  • Maintain --> System Audit Log --> Overview and Data (on both tabs "Overview" and "Data Changes")
  • Maintain --> User --> User Role
User starts using some functionality where information is supplied inside a table. User wants to sort the table (for example alphabetically) so therefore clicks on a column header.
  • An error appears.

Symptom

Example #1:
image-20191217112317-1
Unexpected Error
Something unexpected happened. You may have to restart the application to continue.
Reason:
[ClassCastException] com.ibm.cognos.ccr.role.CompanyUserMapping incompatible with java.lang.String
com.ibm.cognos.ccr.role.CompanyUserMapping incompatible with java.lang.String
  
  --- stack trace ---
  java.lang.ClassCastException: com.ibm.cognos.ccr.role.CompanyUserMapping incompatible with java.lang.String
      at com.ibm.cognos.ccr.core.ui.util.CyclicGridViewerColumnComparator.compare(Unknown Source)
      at org.eclipse.jface.viewers.ViewerComparator.lambda$0(ViewerComparator.java:203)
      at org.eclipse.jface.viewers.ViewerComparator$$Lambda$235.000000001C0A22F0.compare(Unknown Source)
      at java.util.TimSort.countRunAndMakeAscending(TimSort.java:366)
      at java.util.TimSort.sort(TimSort.java:245)
      at java.util.Arrays.sort(Arrays.java:1782)
      at org.eclipse.jface.viewers.ViewerComparator.sort(ViewerComparator.java:203)
      at org.eclipse.jface.viewers.StructuredViewer.getSortedChildren(StructuredViewer.java:1081)
      at org.eclipse.jface.viewers.AbstractTableViewer.internalRefreshAll(AbstractTableViewer.java:664)
      at org.eclipse.jface.viewers.AbstractTableViewer.internalRefresh
<.............>
Example #2:
Full Details: [ClassCastException] com.ibm.cognos.ccr.happening.HappeningNode incompatible with java.lang.String com.ibm.cognos.ccr.happening.HappeningNode incompatible with java.lang.String

Document Location

Worldwide

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SS9S6B","label":"IBM Cognos Controller"},"Component":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.4.1","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSMRTZ","label":"IBM Cognos Controller on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
09 May 2025

UID

ibm11137400