java.lang.RuntimeException: Failed to copy from source object: class org.kuali.rice.kim.impl.role.RoleMemberBo to target object: org.kuali.rice.kim.bo.ui.KimDocumentRoleMember@2754199f[roleMemberId=<null>,roleId=<null>,memberId=<null>,memberTypeCode=P,memberName=<null>,memberNamespaceCode=<null>,memberFullName=<null>,qualifiers=[],qualifiersToDisplay=<null>,roleRspActions=[],active=true,edit=false,activeFromDate=<null>,activeToDate=<null>,documentNumber=<null>,versionNumber=<null>,objectId=<null>,newCollectionRecord=false]

Kuali JIRA | Jannie Louwrens | 5 years ago
  1. 0

    Adding a Person as a delegate results in an IllegalArgumentException - argument type mismatch error. The steps to reproduce this error are: {noformat} 1. Log in to Rice as admin. 2. Go to the Administration tab. 3. Click on the Person link under Identity. 4. Fill in admin in the Pricial Name textbox. 5. Click on the Search button. 6. Click the edit link in the Action column of the results returned from the search. 7. Expand (Show) the Memebership tab. 8. Click on the magnifying glass icon for Role Memeber under the Delegation heading. 9. Hit the Search button. 10. Select any of the returned results and clicked on its return value link. 11. Exception is thrown and written to teh server log while the view shows an appropriate error message. {noformat} Here is an excerpt of the stack trace: {noformat} 2012-03-16 09:44:11,824 [http-8081-2] u:admin/d:133717 ERROR org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean - Method invocation failed. java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.invokeMethod(PojoPropertyUtilsBean.java:420) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.setSimpleProperty(PojoPropertyUtilsBean.java:406) at org.apache.commons.beanutils.PropertyUtilsBean.copyProperties(PropertyUtilsBean.java:293) at org.apache.commons.beanutils.PropertyUtils.copyProperties(PropertyUtils.java:183) at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:39) at org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(UiDocumentServiceImpl.java:2846) ... 2012-03-16 09:44:11,829 [http-8081-2] u:admin/d:133717 FATAL org.kuali.rice.core.framework.persistence.jta.KualiTransactionInterceptor - Exception caught by Transaction Interceptor, this will cause a rollback at the end of the transaction. java.lang.RuntimeException: Failed to copy from source object: class org.kuali.rice.kim.impl.role.RoleMemberBo to target object: org.kuali.rice.kim.bo.ui.KimDocumentRoleMember@2754199f[roleMemberId=<null>,roleId=<null>,memberId=<null>,memberTypeCode=P,memberName=<null>,memberNamespaceCode=<null>,memberFullName=<null>,qualifiers=[],qualifiersToDisplay=<null>,roleRspActions=[],active=true,edit=false,activeFromDate=<null>,activeToDate=<null>,documentNumber=<null>,versionNumber=<null>,objectId=<null>,newCollectionRecord=false] at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:41) at org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(UiDocumentServiceImpl.java:2846) ... Caused by: java.lang.IllegalArgumentException: Cannot invoke org.kuali.rice.kim.bo.ui.KimDocumentBoActivatableToFromEditableBase.setActiveFromDate - argument type mismatch at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.invokeMethod(PojoPropertyUtilsBean.java:425) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.setSimpleProperty(PojoPropertyUtilsBean.java:406) at org.apache.commons.beanutils.PropertyUtilsBean.copyProperties(PropertyUtilsBean.java:293) at org.apache.commons.beanutils.PropertyUtils.copyProperties(PropertyUtils.java:183) at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:39) ... 2012-03-16 09:44:11,835 [http-8081-2] u:admin/d:133717 ERROR org.kuali.rice.kns.web.struts.form.pojo.StrutsExceptionIncidentHandler - Exception being handled by Exception Handler java.lang.RuntimeException: Failed to copy from source object: class org.kuali.rice.kim.impl.role.RoleMemberBo to target object: org.kuali.rice.kim.bo.ui.KimDocumentRoleMember@2754199f[roleMemberId=<null>,roleId=<null>,memberId=<null>,memberTypeCode=P,memberName=<null>,memberNamespaceCode=<null>,memberFullName=<null>,qualifiers=[],qualifiersToDisplay=<null>,roleRspActions=[],active=true,edit=false,activeFromDate=<null>,activeToDate=<null>,documentNumber=<null>,versionNumber=<null>,objectId=<null>,newCollectionRecord=false] at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:41) at org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(UiDocumentServiceImpl.java:2846) ... {noformat} I have traced this bug to a ActiveFromToBo.groovy script which getActiveFromDate() method is called that translates the sql Timestamp object to a joda DateTime object. This return joda DateTime object is then the cause of the argument type mismatch error.

    Kuali JIRA | 5 years ago | Jannie Louwrens
    java.lang.RuntimeException: Failed to copy from source object: class org.kuali.rice.kim.impl.role.RoleMemberBo to target object: org.kuali.rice.kim.bo.ui.KimDocumentRoleMember@2754199f[roleMemberId=<null>,roleId=<null>,memberId=<null>,memberTypeCode=P,memberName=<null>,memberNamespaceCode=<null>,memberFullName=<null>,qualifiers=[],qualifiersToDisplay=<null>,roleRspActions=[],active=true,edit=false,activeFromDate=<null>,activeToDate=<null>,documentNumber=<null>,versionNumber=<null>,objectId=<null>,newCollectionRecord=false]
  2. 0

    Adding a Person as a delegate results in an IllegalArgumentException - argument type mismatch error. The steps to reproduce this error are: {noformat} 1. Log in to Rice as admin. 2. Go to the Administration tab. 3. Click on the Person link under Identity. 4. Fill in admin in the Pricial Name textbox. 5. Click on the Search button. 6. Click the edit link in the Action column of the results returned from the search. 7. Expand (Show) the Memebership tab. 8. Click on the magnifying glass icon for Role Memeber under the Delegation heading. 9. Hit the Search button. 10. Select any of the returned results and clicked on its return value link. 11. Exception is thrown and written to teh server log while the view shows an appropriate error message. {noformat} Here is an excerpt of the stack trace: {noformat} 2012-03-16 09:44:11,824 [http-8081-2] u:admin/d:133717 ERROR org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean - Method invocation failed. java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.invokeMethod(PojoPropertyUtilsBean.java:420) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.setSimpleProperty(PojoPropertyUtilsBean.java:406) at org.apache.commons.beanutils.PropertyUtilsBean.copyProperties(PropertyUtilsBean.java:293) at org.apache.commons.beanutils.PropertyUtils.copyProperties(PropertyUtils.java:183) at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:39) at org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(UiDocumentServiceImpl.java:2846) ... 2012-03-16 09:44:11,829 [http-8081-2] u:admin/d:133717 FATAL org.kuali.rice.core.framework.persistence.jta.KualiTransactionInterceptor - Exception caught by Transaction Interceptor, this will cause a rollback at the end of the transaction. java.lang.RuntimeException: Failed to copy from source object: class org.kuali.rice.kim.impl.role.RoleMemberBo to target object: org.kuali.rice.kim.bo.ui.KimDocumentRoleMember@2754199f[roleMemberId=<null>,roleId=<null>,memberId=<null>,memberTypeCode=P,memberName=<null>,memberNamespaceCode=<null>,memberFullName=<null>,qualifiers=[],qualifiersToDisplay=<null>,roleRspActions=[],active=true,edit=false,activeFromDate=<null>,activeToDate=<null>,documentNumber=<null>,versionNumber=<null>,objectId=<null>,newCollectionRecord=false] at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:41) at org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(UiDocumentServiceImpl.java:2846) ... Caused by: java.lang.IllegalArgumentException: Cannot invoke org.kuali.rice.kim.bo.ui.KimDocumentBoActivatableToFromEditableBase.setActiveFromDate - argument type mismatch at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.invokeMethod(PojoPropertyUtilsBean.java:425) at org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.setSimpleProperty(PojoPropertyUtilsBean.java:406) at org.apache.commons.beanutils.PropertyUtilsBean.copyProperties(PropertyUtilsBean.java:293) at org.apache.commons.beanutils.PropertyUtils.copyProperties(PropertyUtils.java:183) at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:39) ... 2012-03-16 09:44:11,835 [http-8081-2] u:admin/d:133717 ERROR org.kuali.rice.kns.web.struts.form.pojo.StrutsExceptionIncidentHandler - Exception being handled by Exception Handler java.lang.RuntimeException: Failed to copy from source object: class org.kuali.rice.kim.impl.role.RoleMemberBo to target object: org.kuali.rice.kim.bo.ui.KimDocumentRoleMember@2754199f[roleMemberId=<null>,roleId=<null>,memberId=<null>,memberTypeCode=P,memberName=<null>,memberNamespaceCode=<null>,memberFullName=<null>,qualifiers=[],qualifiersToDisplay=<null>,roleRspActions=[],active=true,edit=false,activeFromDate=<null>,activeToDate=<null>,documentNumber=<null>,versionNumber=<null>,objectId=<null>,newCollectionRecord=false] at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:41) at org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(UiDocumentServiceImpl.java:2846) ... {noformat} I have traced this bug to a ActiveFromToBo.groovy script which getActiveFromDate() method is called that translates the sql Timestamp object to a joda DateTime object. This return joda DateTime object is then the cause of the argument type mismatch error.

    Kuali JIRA | 5 years ago | Jannie Louwrens
    java.lang.RuntimeException: Failed to copy from source object: class org.kuali.rice.kim.impl.role.RoleMemberBo to target object: org.kuali.rice.kim.bo.ui.KimDocumentRoleMember@2754199f[roleMemberId=<null>,roleId=<null>,memberId=<null>,memberTypeCode=P,memberName=<null>,memberNamespaceCode=<null>,memberFullName=<null>,qualifiers=[],qualifiersToDisplay=<null>,roleRspActions=[],active=true,edit=false,activeFromDate=<null>,activeToDate=<null>,documentNumber=<null>,versionNumber=<null>,objectId=<null>,newCollectionRecord=false]
  3. 0

    If you create a lookup of a BO and include the foreign key into the result field then KRAD tries to create an inquiry link for that field. This causes the following error: 2011-06-29 17:24:56,578 [http-8080-4] u:admin/d: ERROR org.kuali.rice.krad.web.spring.UifHandlerExceptionResolver - The following error was caught by the UifHandlerExceptionResolver : java.lang.RuntimeException: Error getting property 'null' from org.kuali.rice.krms.impl.repository.TermBo@1933426[id=TERM_001,specificationId=TERMSPEC_001,specification=org.kuali.rice.krms.impl.repository.TermSpecificationBo@144e50a[id=TERMSPEC_001,contextId=CONTEXT1,name=campusCodeTermSpec,type=java.lang.String,categories=[],versionNumber=1,objectId=<null>,newCollectionRecord=false,extension=<null>],parameters=[],versionNumber=1,objectId=<null>,newCollectionRecord=false,extension=<null>] at org.kuali.rice.krad.uif.util.ObjectPropertyUtils.getPropertyValue(ObjectPropertyUtils.java:58) at org.kuali.rice.krad.uif.widget.Inquiry.buildInquiryLink(Inquiry.java:156)

    Kuali JIRA | 5 years ago | Claus Niesen
    java.lang.RuntimeException: Error getting property 'null' from org.kuali.rice.krms.impl.repository.TermBo@1933426[id=TERM_001,specificationId=TERMSPEC_001,specification=org.kuali.rice.krms.impl.repository.TermSpecificationBo@144e50a[id=TERMSPEC_001,contextId=CONTEXT1,name=campusCodeTermSpec,type=java.lang.String,categories=[],versionNumber=1,objectId=<null>,newCollectionRecord=false,extension=<null>],parameters=[],versionNumber=1,objectId=<null>,newCollectionRecord=false,extension=<null>]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If you create a lookup of a BO and include the foreign key into the result field then KRAD tries to create an inquiry link for that field. This causes the following error: 2011-06-29 17:24:56,578 [http-8080-4] u:admin/d: ERROR org.kuali.rice.krad.web.spring.UifHandlerExceptionResolver - The following error was caught by the UifHandlerExceptionResolver : java.lang.RuntimeException: Error getting property 'null' from org.kuali.rice.krms.impl.repository.TermBo@1933426[id=TERM_001,specificationId=TERMSPEC_001,specification=org.kuali.rice.krms.impl.repository.TermSpecificationBo@144e50a[id=TERMSPEC_001,contextId=CONTEXT1,name=campusCodeTermSpec,type=java.lang.String,categories=[],versionNumber=1,objectId=<null>,newCollectionRecord=false,extension=<null>],parameters=[],versionNumber=1,objectId=<null>,newCollectionRecord=false,extension=<null>] at org.kuali.rice.krad.uif.util.ObjectPropertyUtils.getPropertyValue(ObjectPropertyUtils.java:58) at org.kuali.rice.krad.uif.widget.Inquiry.buildInquiryLink(Inquiry.java:156)

    Kuali JIRA | 5 years ago | Claus Niesen
    java.lang.RuntimeException: Error getting property 'null' from org.kuali.rice.krms.impl.repository.TermBo@1933426[id=TERM_001,specificationId=TERMSPEC_001,specification=org.kuali.rice.krms.impl.repository.TermSpecificationBo@144e50a[id=TERMSPEC_001,contextId=CONTEXT1,name=campusCodeTermSpec,type=java.lang.String,categories=[],versionNumber=1,objectId=<null>,newCollectionRecord=false,extension=<null>],parameters=[],versionNumber=1,objectId=<null>,newCollectionRecord=false,extension=<null>]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Failed to copy from source object: class org.kuali.rice.kim.impl.role.RoleMemberBo to target object: org.kuali.rice.kim.bo.ui.KimDocumentRoleMember@2754199f[roleMemberId=<null>,roleId=<null>,memberId=<null>,memberTypeCode=P,memberName=<null>,memberNamespaceCode=<null>,memberFullName=<null>,qualifiers=[],qualifiersToDisplay=<null>,roleRspActions=[],active=true,edit=false,activeFromDate=<null>,activeToDate=<null>,documentNumber=<null>,versionNumber=<null>,objectId=<null>,newCollectionRecord=false]

      at org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties()
    2. org.kuali.rice
      UiDocumentServiceImpl.getRoleMembers
      1. org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:41)
      2. org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(UiDocumentServiceImpl.java:2846)
      2 frames