java.lang.IllegalArgumentException

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.

  • 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.
    via by Jannie Louwrens,
  • 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.
    via by Jannie Louwrens,
  • Cluster / Node Manager « WebLogic
    via by Unknown author,
  • Can't checkout a Document
    via GitHub by nicolas-zozol
    ,
  • inoke setter method giving exceptions
    via Stack Overflow by pradeep cs
    ,
    • 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)

    Users with the same issue

    musketyrmusketyr
    4 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor2 times, last one,
    94 more bugmates