java.lang.IllegalStateException: method call on the mock needed before setting Throwable

Spring JIRA | Costin Leau | 10 years ago
  1. 0
    The application is unable to connect to the database. It could be resolved by configuring access privileges on the database side.
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0
    Execute mvn dependency:tree from your project's root directory.
  4. 0
    In all ActiveAndroid tables there should be a primary key field with the name "Id" (with a capital "I").

    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.IllegalStateException

      method call on the mock needed before setting Throwable

      at org.easymock.MockControl.setThrowable()
    2. EasyMock
      MockControl.expectAndThrow
      1. org.easymock.MockControl.setThrowable(MockControl.java:231)
      2. org.easymock.MockControl.expectAndThrow(MockControl.java:1298)
      2 frames
    3. spring-modules-cache
      EhCacheFacadeTests.testOnRemoveFromCacheWhenCacheAccessThrowsIllegalStateException
      1. org.springmodules.cache.provider.ehcache.EhCacheFacadeTests.testOnRemoveFromCacheWhenCacheAccessThrowsIllegalStateException(EhCacheFacadeTests.java:352)
      1 frame