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 Bug Fix
    • Status: Closed Closed
    • Priority: Major 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
    • Similar issues:
      KULRICE-9472Look into krad-data metadata storing/providing information about the "cache-ability" of data object types
      KULRICE-9637Add tests and update code to allow metadata extraction from subclasses of other data objects
      KULRICE-7612Update core and location services to not throw exceptions when passed null arguments
      KULRICE-13943When editing or copying objects supported by the data object service, primary key type conversion is not performed
      KULRICE-1494Create exception objects for the services
      KULRICE-5170BeanPropertyComparator throws exception when a null value is found in sortable non-string data type column.
      KULRICE-2083Change isUniversalUserProperty() to not throw introspection exceptions
      KULRICE-5069Determine best strategy for declaring/throwing exceptions from (remote) service layer
      KULRICE-6086Rice Dev: Service Registry Entries Throwing Error on Click
      KULRICE-7632Improve exception handling in RoleServiceImpl#principalHasRole related to role type services
    • 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)

        Issue Links

          Activity

          Hide
          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
          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:
              Jerry Neal (Inactive)
              Reporter:
              Jerry Neal (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Structure Helper Panel