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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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 Oracle Community by 807606, 10 months ago
golfSoftwarePackage.Stroke cannot be cast to java.lang.Comparable
via Stack Overflow by Paul Verest
, 2 years ago
jdk.nashorn.internal.objects.NativeArray cannot be cast to java.lang.Comparable
via programwith.com by Unknown author, 2 years ago
jdk.nashorn.internal.objects.NativeArray cannot be cast to java.lang.Comparable
via Stack Overflow by user2996028
, 2 years ago
java.util.ArrayList cannot be cast to java.lang.Comparable
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 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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.