java.lang.ClassCastException

java.util.Collections$EmptyMap cannot be cast to java.lang.Comparable

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19036

  • via Kuali JIRA by Jonathan Keller, 1 year ago
    java.util.Collections$EmptyMap cannot be cast to java.lang.Comparable
  • via Kuali JIRA by Jonathan Keller, 1 year ago
    java.util.Collections$EmptyMap cannot be cast to java.lang.Comparable
  • via Eclipse Bugzilla by philippe.marschall, 1 year ago
    java.util.Collections$EmptyMap cannot be cast to java.lang.Number
  • Stack trace

    • java.lang.ClassCastException: java.util.Collections$EmptyMap cannot be cast to java.lang.Comparable at java.util.Collections.sort(Collections.java:121) at org.kuali.rice.core.api.cache.CacheKeyUtils.key(CacheKeyUtils.java:71) at $Proxy107.principalHasRole(Unknown Source) at org.kuali.kfs.fp.identity.CashReceiptInitiatorDerivedRoleTypeServiceImpl.hasRoleMembership(CashReceiptInitiatorDerivedRoleTypeServiceImpl.java:82) at org.kuali.kfs.fp.identity.CashReceiptInitiatorDerivedRoleTypeServiceImpl.principalMemberOfSysUsers(CashReceiptInitiatorDerivedRoleTypeServiceImpl.java:59) at org.kuali.kfs.fp.identity.CashReceiptInitiatorDerivedRoleTypeServiceImpl.hasDerivedRole(CashReceiptInitiatorDerivedRoleTypeServiceImpl.java:44) at org.kuali.rice.kim.impl.role.RoleServiceImpl.principalHasRole(RoleServiceImpl.java:1106) at org.kuali.rice.kim.impl.role.RoleServiceImpl.principalHasRole(RoleServiceImpl.java:498) at org.kuali.rice.kim.impl.permission.PermissionServiceImpl.isAuthorizedByTemplate(PermissionServiceImpl.java:172) at org.kuali.rice.kns.document.authorization.DocumentAuthorizerBase.canInitiate(DocumentAuthorizerBase.java:143) at org.kuali.rice.krad.service.impl.DocumentServiceImpl.getNewDocument(DocumentServiceImpl.java:506) at org.kuali.rice.krad.service.impl.DocumentServiceImpl.getNewDocument(DocumentServiceImpl.java:469) at org.kuali.kfs.sys.service.IsDebitTestUtils.getDocument(IsDebitTestUtils.java:110) at org.kuali.kfs.fp.document.validation.impl.CashReceiptDocumentRuleTest.testIsDebit_liability_zeroAmount(CashReceiptDocumentRuleTest.java:191)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago