java.lang.IllegalArgumentException: argument type mismatch

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.IllegalArgumentException: argument type mismatch
  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.IllegalArgumentException: argument type mismatch
  3. 0

    Cluster / Node Manager « WebLogic

    middlewaremagic.com | 4 months ago
    org.apache.cxf.interceptor.Fault: argument type mismatch while invoking public com.nsn.see.application.callerid.Registration com.nsn.see.application.callerid.CallerIdService.registration(com.nsn.see.application.callerid.Register) with params [com.nsn.see.application.callerid.Register@1d03015d].
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    error when it scans for hbase

    GitHub | 4 years ago | junyoungkim
    javax.persistence.PersistenceException: java.lang.RuntimeException: com.impetus.kundera.property.PropertyAccessException: > > java.lang.IllegalArgumentException: argument type mismatch

  1. Aria Pahlavan 16 times, last 3 weeks ago
  2. kjhdofjosvs 2 times, last 1 month ago
  3. tyson925 2 times, last 1 month ago
  4. kuldeep 2 times, last 2 months ago
  5. aldrinleal 1 times, last 5 months ago
6 more registered users
72 unregistered visitors
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.IllegalArgumentException

    argument type mismatch

    at sun.reflect.NativeMethodAccessorImpl.invoke0()
  2. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  3. org.kuali.rice
    PojoPropertyUtilsBean.setSimpleProperty
    1. org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.invokeMethod(PojoPropertyUtilsBean.java:420)
    2. org.kuali.rice.kns.web.struts.form.pojo.PojoPropertyUtilsBean.setSimpleProperty(PojoPropertyUtilsBean.java:406)
    2 frames
  4. Apache Commons BeanUtils
    PropertyUtils.copyProperties
    1. org.apache.commons.beanutils.PropertyUtilsBean.copyProperties(PropertyUtilsBean.java:293)
    2. org.apache.commons.beanutils.PropertyUtils.copyProperties(PropertyUtils.java:183)
    2 frames
  5. org.kuali.rice
    UiDocumentServiceImpl.getRoleMembers
    1. org.kuali.rice.kim.util.KimCommonUtilsInternal.copyProperties(KimCommonUtilsInternal.java:39)
    2. org.kuali.rice.kim.service.impl.UiDocumentServiceImpl.getRoleMembers(UiDocumentServiceImpl.java:2846)
    2 frames