java.lang.AssertionError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check your pattern declaration or check your assert declaration.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • org.kuali.rice.kim.service.KIMServiceLocatorInternalTest.testGetKimTypeService_KimType http://ci.rice.kuali.org/view/rice-2.1/job/rice-2.1-integration-test-mysql/org.kuali.rice$rice-it-kim/422/testReport/org.kuali.rice.kim.service/KIMServiceLocatorInternalTest/testGetKimTypeService_KimType/ {code} Error Message should be the default kim type expected:<class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase> but was:<class $Proxy141> Stacktrace java.lang.AssertionError: should be the default kim type expected:<class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase> but was:<class $Proxy141> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.kuali.rice.kim.service.KIMServiceLocatorInternalTest.testGetKimTypeService_KimType(KIMServiceLocatorInternalTest.java:55) 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.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.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.runChild(RiceUnitTestClassRunner.java:46) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.runChild(RiceUnitTestClassRunner.java:34) 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.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Standard Output Alternate Log4j config resource does not exist! /var/lib/jenkins/workspace/rice-2.1-integration-test-mysql/log4j.properties Using default log4j configuration: classpath:rice-testharness-default-log4j.properties 2013-02-16 03:31:06,047 [main] INFO org.kuali.rice.test.RiceTestCase - ############################################################## 2013-02-16 03:31:06,047 [main] INFO org.kuali.rice.test.RiceTestCase - # Starting test KIMServiceLocatorInternalTest.testGetKimTypeService_KimType... 2013-02-16 03:31:06,048 [main] INFO org.kuali.rice.test.RiceTestCase - # [Memory] max: 1069416448, total: 166395904, free: 49244856 2013-02-16 03:31:06,048 [main] INFO org.kuali.rice.test.RiceTestCase - ############################################################## 2013-02-16 03:31:06,048 [main] INFO org.kuali.rice.test.TransactionalLifecycle - Starting a transaction from TransactionalLifecycle... 2013-02-16 03:31:06,049 [main] WARN org.kuali.rice.test.RiceTestCase - Attempting to stop a lifecycle class org.kuali.rice.kim.test.KIMTestCase$ClearCacheLifecycle 2013-02-16 03:31:06,049 [main] WARN org.kuali.rice.test.RiceTestCase - Attempting to stop a lifecycle class org.kuali.rice.test.RiceTestCase$4 2013-02-16 03:31:06,049 [main] WARN org.kuali.rice.test.RiceTestCase - Attempting to stop a lifecycle class org.kuali.rice.test.lifecycles.PerTestDataLoaderLifecycle 2013-02-16 03:31:06,049 [main] WARN org.kuali.rice.test.RiceTestCase - Attempting to stop a lifecycle class org.kuali.rice.test.BaselineTestCase$1 2013-02-16 03:31:06,050 [main] INFO org.kuali.rice.test.TransactionalLifecycle - ...rolling back transaction from TransactionalLifecycle. 2013-02-16 03:31:06,050 [main] INFO org.kuali.rice.test.RiceTestCase - ############################################################## 2013-02-16 03:31:06,050 [main] INFO org.kuali.rice.test.RiceTestCase - # ...finished test KIMServiceLocatorInternalTest.testGetKimTypeService_KimType 2013-02-16 03:31:06,050 [main] INFO org.kuali.rice.test.RiceTestCase - # [Memory] max: 1069416448, total: 166395904, free: 48872656 2013-02-16 03:31:06,060 [main] INFO org.kuali.rice.test.RiceTestCase - # Time to start all Lifecycles: 0 2013-02-16 03:31:06,060 [main] INFO org.kuali.rice.test.RiceTestCase - ############################################################## {code}
    via by Erik Meade,
  • org.kuali.rice.kim.service.KIMServiceLocatorInternalTest.testGetKimTypeService_KimType http://ci.rice.kuali.org/view/rice-2.1/job/rice-2.1-integration-test-mysql/org.kuali.rice$rice-it-kim/422/testReport/org.kuali.rice.kim.service/KIMServiceLocatorInternalTest/testGetKimTypeService_KimType/ {code} Error Message should be the default kim type expected:<class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase> but was:<class $Proxy141> Stacktrace java.lang.AssertionError: should be the default kim type expected:<class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase> but was:<class $Proxy141> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.kuali.rice.kim.service.KIMServiceLocatorInternalTest.testGetKimTypeService_KimType(KIMServiceLocatorInternalTest.java:55) 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.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.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.runChild(RiceUnitTestClassRunner.java:46) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.runChild(RiceUnitTestClassRunner.java:34) 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.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75) Standard Output Alternate Log4j config resource does not exist! /var/lib/jenkins/workspace/rice-2.1-integration-test-mysql/log4j.properties Using default log4j configuration: classpath:rice-testharness-default-log4j.properties 2013-02-16 03:31:06,047 [main] INFO org.kuali.rice.test.RiceTestCase - ############################################################## 2013-02-16 03:31:06,047 [main] INFO org.kuali.rice.test.RiceTestCase - # Starting test KIMServiceLocatorInternalTest.testGetKimTypeService_KimType... 2013-02-16 03:31:06,048 [main] INFO org.kuali.rice.test.RiceTestCase - # [Memory] max: 1069416448, total: 166395904, free: 49244856 2013-02-16 03:31:06,048 [main] INFO org.kuali.rice.test.RiceTestCase - ############################################################## 2013-02-16 03:31:06,048 [main] INFO org.kuali.rice.test.TransactionalLifecycle - Starting a transaction from TransactionalLifecycle... 2013-02-16 03:31:06,049 [main] WARN org.kuali.rice.test.RiceTestCase - Attempting to stop a lifecycle class org.kuali.rice.kim.test.KIMTestCase$ClearCacheLifecycle 2013-02-16 03:31:06,049 [main] WARN org.kuali.rice.test.RiceTestCase - Attempting to stop a lifecycle class org.kuali.rice.test.RiceTestCase$4 2013-02-16 03:31:06,049 [main] WARN org.kuali.rice.test.RiceTestCase - Attempting to stop a lifecycle class org.kuali.rice.test.lifecycles.PerTestDataLoaderLifecycle 2013-02-16 03:31:06,049 [main] WARN org.kuali.rice.test.RiceTestCase - Attempting to stop a lifecycle class org.kuali.rice.test.BaselineTestCase$1 2013-02-16 03:31:06,050 [main] INFO org.kuali.rice.test.TransactionalLifecycle - ...rolling back transaction from TransactionalLifecycle. 2013-02-16 03:31:06,050 [main] INFO org.kuali.rice.test.RiceTestCase - ############################################################## 2013-02-16 03:31:06,050 [main] INFO org.kuali.rice.test.RiceTestCase - # ...finished test KIMServiceLocatorInternalTest.testGetKimTypeService_KimType 2013-02-16 03:31:06,050 [main] INFO org.kuali.rice.test.RiceTestCase - # [Memory] max: 1069416448, total: 166395904, free: 48872656 2013-02-16 03:31:06,060 [main] INFO org.kuali.rice.test.RiceTestCase - # Time to start all Lifecycles: 0 2013-02-16 03:31:06,060 [main] INFO org.kuali.rice.test.RiceTestCase - ############################################################## {code}
    via by Erik Meade,
  • substring() method for linked list object
    via Stack Overflow by boop
    ,
  • GitHub comment 72#45003047
    via GitHub by Neiko2002
    ,
    • java.lang.AssertionError: should be the default kim type expected:<class org.kuali.rice.kns.kim.type.DataDictionaryTypeServiceBase> but was:<class $Proxy141> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:743) at org.junit.Assert.assertEquals(Assert.java:118) at org.kuali.rice.kim.service.KIMServiceLocatorInternalTest.testGetKimTypeService_KimType(KIMServiceLocatorInternalTest.java:55) 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.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.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.runChild(RiceUnitTestClassRunner.java:46) at org.kuali.rice.test.runners.RiceUnitTestClassRunner.runChild(RiceUnitTestClassRunner.java:34) 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.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112) 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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)

    Users with the same issue

    odd
    17 times, last one,
    jf-ast
    1 times, last one,
    Axelo
    3 times, last one,
    rocday
    1 times, last one,
    andyglick
    2 times, last one,
    95 more bugmates