Uploaded image for project: 'Kuali Rice Development'
  1. Kuali Rice Development
  2. KULRICE-9247

Data object metadata service throws exception when it encounters interface/abstract type

    Details

    • Type: Bug Fix
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0-m1, 2.3
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required
    • Include in Release Notes?:
      Yes

      Description

      When recursing the path to find relationships if the parent type is an interface or abstract class the do service throws exception:

      java.lang.RuntimeException: Error occured while trying to create a new instance for class interface org.kuali.rice.krad.bo.PersistableBusinessObjectExtension
      at org.kuali.rice.krad.util.ObjectUtils.createNewObjectFromClass(ObjectUtils.java:1167)
      at org.kuali.rice.krad.service.impl.DataObjectMetaDataServiceImpl.getDataObjectRelationship(DataObjectMetaDataServiceImpl.java:181)
      at org.kuali.rice.krad.service.impl.DataObjectMetaDataServiceImpl.getDataObjectRelationship(DataObjectMetaDataServiceImpl.java:156)

      In these cases we need to ignore the exception and return a null relationship (not found)

        Attachments

          Issue Links

            Activity

            Hide
            jkneal Jerry Neal (Inactive) added a comment -

            Same thing happening in Inquiry#performFinalize

            java.lang.RuntimeException: Error getting property 'dataObject.extension.accountType.codeAndDescription' from org.kuali.rice.krad.web.form.InquiryForm@58baf2ad
            at org.kuali.rice.krad.uif.util.ObjectPropertyUtils.getPropertyValue(ObjectPropertyUtils.java:61)
            at org.kuali.rice.krad.uif.widget.Inquiry.performFinalize(Inquiry.java:115)

            Show
            jkneal Jerry Neal (Inactive) added a comment - Same thing happening in Inquiry#performFinalize java.lang.RuntimeException: Error getting property 'dataObject.extension.accountType.codeAndDescription' from org.kuali.rice.krad.web.form.InquiryForm@58baf2ad at org.kuali.rice.krad.uif.util.ObjectPropertyUtils.getPropertyValue(ObjectPropertyUtils.java:61) at org.kuali.rice.krad.uif.widget.Inquiry.performFinalize(Inquiry.java:115)

              People

              • Assignee:
                jkneal Jerry Neal (Inactive)
                Reporter:
                jkneal Jerry Neal (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: