java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Editing a role that has a Kim attribute defined for it may have an AttributeDefinition bean defined in ks-lum/ks-lum-rice/src/main/resources/org/kuali/rice/student/bo/KualiStudentKimAttributes.xml The attribute beans there are defined to have a "control" property, which creates a KRAD control which is added as an additional column to the Role Member search when editing a role. You can see this working if you compare the fields that show up in the "Add Member:" area when editing these two roles: Senate Committee Reviewer (no additional fields) Organization Role (two additional fields) The controls for some of these Kim attributes are dropdowns that have their values filled in by KeyValue classes, such as this one for the "department" attribute: {quote} <property name="control" > <bean parent="SelectControlDefinition" p:valuesFinderClass="org.kuali.rice.student.lookup.keyvalues.DepartmentCocValuesFinder" /> </property> {quote} The DepartmentCocValuesFinder is attempting to search for Orgs using a search type of "org.search.orgQuickViewByRelationTypeOrgTypeRelatedOrgType", which is defined in the deprecated SearchManager framework, and is configured in this file: ks-core/ks-core-impl/src/main/resources/organization-search-config.xml This search is looking for org-org relations with (among other things) an org-org relation type of 'kuali.org.CurriculumParent', which has not existed in the KSOR_ORG_ORG_RELTN_TYPE table since before the UMD baseline data was introduced in 01/16/2013. This results in no matching records being returned for this search, which makes the dropdown box empty, and the exception being thrown by editing the role is saying it must have at least one value in the dropdown: java.lang.IllegalStateException: the keyLabels or groups must be set to a non-empty collection at org.kuali.rice.core.api.uif.RemotableSelect$Builder.build(RemotableSelect.java:206) at org.kuali.rice.core.api.uif.RemotableSelect$Builder.build(RemotableSelect.java:123) at org.kuali.rice.core.api.uif.RemotableAttributeField.(RemotableAttributeField.java:211) at org.kuali.rice.core.api.uif.RemotableAttributeField.(RemotableAttributeField.java:65) at org.kuali.rice.core.api.uif.RemotableAttributeField$Builder.build(RemotableAttributeField.java:627) at org.kuali.rice.kim.api.type.KimAttributeField.(KimAttributeField.java:69) at org.kuali.rice.kim.api.type.KimAttributeField.(KimAttributeField.java:42) at org.kuali.rice.kim.api.type.KimAttributeField$Builder.build(KimAttributeField.java:146)
    via by Andrew Lubbers,
  • Editing a role that has a Kim attribute defined for it may have an AttributeDefinition bean defined in ks-lum/ks-lum-rice/src/main/resources/org/kuali/rice/student/bo/KualiStudentKimAttributes.xml The attribute beans there are defined to have a "control" property, which creates a KRAD control which is added as an additional column to the Role Member search when editing a role. You can see this working if you compare the fields that show up in the "Add Member:" area when editing these two roles: Senate Committee Reviewer (no additional fields) Organization Role (two additional fields) The controls for some of these Kim attributes are dropdowns that have their values filled in by KeyValue classes, such as this one for the "department" attribute: {quote} <property name="control" > <bean parent="SelectControlDefinition" p:valuesFinderClass="org.kuali.rice.student.lookup.keyvalues.DepartmentCocValuesFinder" /> </property> {quote} The DepartmentCocValuesFinder is attempting to search for Orgs using a search type of "org.search.orgQuickViewByRelationTypeOrgTypeRelatedOrgType", which is defined in the deprecated SearchManager framework, and is configured in this file: ks-core/ks-core-impl/src/main/resources/organization-search-config.xml This search is looking for org-org relations with (among other things) an org-org relation type of 'kuali.org.CurriculumParent', which has not existed in the KSOR_ORG_ORG_RELTN_TYPE table since before the UMD baseline data was introduced in 01/16/2013. This results in no matching records being returned for this search, which makes the dropdown box empty, and the exception being thrown by editing the role is saying it must have at least one value in the dropdown: java.lang.IllegalStateException: the keyLabels or groups must be set to a non-empty collection at org.kuali.rice.core.api.uif.RemotableSelect$Builder.build(RemotableSelect.java:206) at org.kuali.rice.core.api.uif.RemotableSelect$Builder.build(RemotableSelect.java:123) at org.kuali.rice.core.api.uif.RemotableAttributeField.(RemotableAttributeField.java:211) at org.kuali.rice.core.api.uif.RemotableAttributeField.(RemotableAttributeField.java:65) at org.kuali.rice.core.api.uif.RemotableAttributeField$Builder.build(RemotableAttributeField.java:627) at org.kuali.rice.kim.api.type.KimAttributeField.(KimAttributeField.java:69) at org.kuali.rice.kim.api.type.KimAttributeField.(KimAttributeField.java:42) at org.kuali.rice.kim.api.type.KimAttributeField$Builder.build(KimAttributeField.java:146)
    via by Andrew Lubbers,
    • java.lang.IllegalStateException: the keyLabels or groups must be set to a non-empty collection at org.kuali.rice.core.api.uif.RemotableSelect$Builder.build(RemotableSelect.java:206) at org.kuali.rice.core.api.uif.RemotableSelect$Builder.build(RemotableSelect.java:123) at org.kuali.rice.core.api.uif.RemotableAttributeField.<init>(RemotableAttributeField.java:211) at org.kuali.rice.core.api.uif.RemotableAttributeField.<init>(RemotableAttributeField.java:65) at org.kuali.rice.core.api.uif.RemotableAttributeField$Builder.build(RemotableAttributeField.java:627) at org.kuali.rice.kim.api.type.KimAttributeField.<init>(KimAttributeField.java:69) at org.kuali.rice.kim.api.type.KimAttributeField.<init>(KimAttributeField.java:42) at org.kuali.rice.kim.api.type.KimAttributeField$Builder.build(KimAttributeField.java:146)
    No Bugmate found.