amework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required typ e 'java.lang.Class' for property 'documentClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [edu.sampleu.travel.dataobject.TravelAuthorizationDocument]

Kuali JIRA | Erik Meade | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Might be covered by a new failure {code} java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'TravelAuthorizationDocument' defined in class path resource [org/kuali/rice/krad /test/document/TravelAuthorizationDocument.xml]: Initialization of bean failed; nested exception is org.springfr amework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required typ e 'java.lang.Class' for property 'documentClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [edu.sampleu.travel.dataobject.TravelAuthorizationDocument] at org.kuali.rice.test.RiceTestCase.setUp(RiceTestCase.java:101) at org.kuali.rice.test.BaselineTestCase.setUp(BaselineTestCase.java:115) at org.kuali.rice.krad.test.KRADTestCase.setUp(KRADTestCase.java:81) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.runLeaf(LoadTimeWeavableTestRunner.java:310) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.runChild(LoadTimeWeavableTestRunner.java:499) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner$4.run(LoadTimeWeavableTestRunner.java:271) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner$2.schedule(LoadTimeWeavableTestRunner.java:116 ) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.runChildren(LoadTimeWeavableTestRunner.java:26 9) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.access$000(LoadTimeWeavableTestRunner.java:90) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner$3.evaluate(LoadTimeWeavableTestRunner.java:262 ) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.run(LoadTimeWeavableTestRunner.java:352) at org.junit.runners.Suite.runChild(Suite.java:127) at org.junit.runners.Suite.runChild(Suite.java:26) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) at org.junit.runners.ParentRunner.run(ParentRunner.java:309) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at org.junit.runner.JUnitCore.run(JUnitCore.java:138) at org.junit.runner.JUnitCore.run(JUnitCore.java:128) at org.junit.runner.JUnitCore.runClasses(JUnitCore.java:73) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.runBootstrapTest(LoadTimeWeavableTestRunner.ja va:372) at org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.run(LoadTimeWeavableTestRunner.java:347) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) {code} CountyMaintenanceDocumentTest BusinessObjectDaoProxy called with non-legacy class: CountryBo >>> org.kuali.rice.location.web.CountyMaintenanceDocumentTest.test_MismatchedStateCountry >>> org.kuali.rice.location.web.CountyMaintenanceDocumentTest.test_EditDoc >>> org.kuali.rice.location.web.CountyMaintenanceDocumentTest.test_NewDoc >>> org.kuali.rice.location.web.CountyMaintenanceDocumentTest.test_CopyDoc >>> org.kuali.rice.location.web.CountyMaintenanceDocumentTest.test_SaveNewDoc http://ci.rice.kuali.org/view/rice-2.4/job/rice-2.4-integration-test-mysql-freestyle/lastCompletedBuild/testReport/org.kuali.rice.location.web/ {code} Error Message BusinessObjectDaoProxy called with non-legacy class: class org.kuali.rice.location.impl.country.CountryBo Stacktrace java.lang.IllegalStateException: BusinessObjectDaoProxy called with non-legacy class: class org.kuali.rice.location.impl.country.CountryBo at org.kuali.rice.krad.dao.proxy.BusinessObjectDaoProxy.getDao(BusinessObjectDaoProxy.java:64) at org.kuali.rice.krad.dao.proxy.BusinessObjectDaoProxy.save(BusinessObjectDaoProxy.java:236) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy83.save(Unknown Source) at org.kuali.rice.krad.service.impl.BusinessObjectServiceImpl.save(BusinessObjectServiceImpl.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy87.save(Unknown Source) at org.kuali.rice.location.web.CountyMaintenanceDocumentTest.insertTestCountryAndState(CountyMaintenanceDocumentTest.java:50) {code} Jenkins shows the changeset associated with these failures as: Revision 41031 by ewestfal: KULRICE-10155 - changed LoadTimeWeavableTestRunner to keep a static instance of the custom classloader rather than one per class in order to save memory space The file was modified /trunk/rice-middleware/it/internal-tools/src/main/java/org/kuali/rice/test/runners/LoadTimeWeavableTestRunner.java

    Kuali JIRA | 4 years ago | Erik Meade
    amework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required typ e 'java.lang.Class' for property 'documentClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [edu.sampleu.travel.dataobject.TravelAuthorizationDocument]

    Root Cause Analysis

    1. amework.beans.TypeMismatchException

      Failed to convert property value of type 'java.lang.String' to required typ e 'java.lang.Class' for property 'documentClass'; nested exception is java.lang.IllegalArgumentException: Cannot find class [edu.sampleu.travel.dataobject.TravelAuthorizationDocument]

      at org.kuali.rice.test.RiceTestCase.setUp()
    2. org.kuali.rice
      KRADTestCase.setUp
      1. org.kuali.rice.test.RiceTestCase.setUp(RiceTestCase.java:101)
      2. org.kuali.rice.test.BaselineTestCase.setUp(BaselineTestCase.java:115)
      3. org.kuali.rice.krad.test.KRADTestCase.setUp(KRADTestCase.java:81)
      3 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. JUnit
      RunAfters.evaluate
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      4. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      5. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      5 frames
    5. org.kuali.rice
      LoadTimeWeavableTestRunner.run
      1. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.runLeaf(LoadTimeWeavableTestRunner.java:310)
      2. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.runChild(LoadTimeWeavableTestRunner.java:499)
      3. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner$4.run(LoadTimeWeavableTestRunner.java:271)
      4. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner$2.schedule(LoadTimeWeavableTestRunner.java:116)
      5. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.runChildren(LoadTimeWeavableTestRunner.java:269)
      6. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.access$000(LoadTimeWeavableTestRunner.java:90)
      7. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner$3.evaluate(LoadTimeWeavableTestRunner.java:262)
      8. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.run(LoadTimeWeavableTestRunner.java:352)
      8 frames
    6. JUnit
      JUnitCore.runClasses
      1. org.junit.runners.Suite.runChild(Suite.java:127)
      2. org.junit.runners.Suite.runChild(Suite.java:26)
      3. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      4. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      5. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      6. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      7. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      8. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      9. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      10. org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      11. org.junit.runner.JUnitCore.run(JUnitCore.java:128)
      12. org.junit.runner.JUnitCore.runClasses(JUnitCore.java:73)
      12 frames
    7. org.kuali.rice
      LoadTimeWeavableTestRunner.run
      1. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.runBootstrapTest(LoadTimeWeavableTestRunner.java:372)
      2. org.kuali.rice.test.runners.LoadTimeWeavableTestRunner.run(LoadTimeWeavableTestRunner.java:347)
      2 frames
    8. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      3 frames
    9. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      2. org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      3 frames