spring-test and JUnit conflict versions

java.lang.IllegalStateException
Javadoc
Signals that a method has been invoked at an illegal or inappropriate time. In other words, the Java environment or Java application is not in an appropriate state for the requested operation. @author Jonni Kanerva @since JDK1.1
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.<clinit>
java.lang.ExceptionInInitializerError
Javadoc
Signals that an unexpected exception has occurred in a static initializer. An ExceptionInInitializerError is thrown to indicate that an exception occurred during evaluation of a static initializer or the initializer for a static variable.

As of release 1.4, this exception has been retrofitted to conform to the general purpose exception-chaining mechanism. The "saved throwable object" that may be provided at construction time and accessed via the {@link #getException()} method is now known as the cause, and may be accessed via the {@link Throwable#getCause()} method, as well as the aforementioned "legacy method." @author Frank Yellin @since JDK1.1

at sun.reflect.NativeConstructorAccessorImpl.newInstance0
(source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(source)
at java.lang.reflect.Constructor.newInstance
(source)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner
(source)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass
(source)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass
(source)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass
(source)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass
(source)
at org.junit.internal.requests.ClassRequest.getRunner
(source)
10 frames hidden

Typical Exception Messages

  1. <No message>

Specific cases

Solution

JaviRpo, 3 weeks ago

This error occurs when the casandra-unit version is not compatible with the casandra-unit-spring version.

You can take a look of your casandra-unit version in Maven Central to check which is the suggested casandra-unit-spring version in Maven Central

External results for this pattern (6)

  1. Unknown authorvia csdn.net3 months ago
    No message found for this stack trace.
    Show stack trace
  2. Unknown authorvia 07net01.com3 months ago
  3. Unknown authorvia csdn.net3 months ago
  4. wilkinsonavia GitHub4 months ago
    No message found for this stack trace.
    Show stack trace
  5. No message found for this stack trace.
    Show stack trace
  6. No message found for this stack trace.
    Show stack trace