java.lang.reflect.InvocationTargetException

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

    Specs2 Tests Fail to Run Natively in IntelliJ

    Stack Overflow | 7 months ago | Jonathan Neufeld
    java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

      Found class scalaz.Tree, but interface was expected

      at org.specs2.mutable.SideEffectingCreationPaths$class.$init$()
    2. specs2-core
      Specification.<init>
      1. org.specs2.mutable.SideEffectingCreationPaths$class.$init$(FragmentsBuilder.scala:245)
      2. org.specs2.mutable.Specification.<init>(Specification.scala:12)
      2 frames
    3. controllers
      VerificationApiSpec.<init>
      1. controllers.VerificationApiSpec.<init>(VerificationApiSpec.scala:26)
      1 frame
    4. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      4 frames
    5. specs2
      Classes$$anonfun$createInstanceOfEither$1.apply
      1. org.specs2.reflect.Classes$class.createInstanceFor(Classes.scala:154)
      2. org.specs2.reflect.Classes$.createInstanceFor(Classes.scala:207)
      3. org.specs2.reflect.Classes$$anonfun$createInstanceOfEither$1.apply(Classes.scala:145)
      4. org.specs2.reflect.Classes$$anonfun$createInstanceOfEither$1.apply(Classes.scala:145)
      4 frames
    6. Scala
      Option.map
      1. scala.Option.map(Option.scala:146)
      1 frame
    7. specs2
      Classes$$anonfun$4.apply
      1. org.specs2.reflect.Classes$class.createInstanceOfEither(Classes.scala:145)
      2. org.specs2.reflect.Classes$.createInstanceOfEither(Classes.scala:207)
      3. org.specs2.reflect.Classes$class.org$specs2$reflect$Classes$$createInstanceForConstructor(Classes.scala:118)
      4. org.specs2.reflect.Classes$$anonfun$4.apply(Classes.scala:98)
      5. org.specs2.reflect.Classes$$anonfun$4.apply(Classes.scala:98)
      5 frames
    8. Scala
      List.map
      1. scala.collection.immutable.List.map(List.scala:273)
      1 frame
    9. specs2
      Classes$.tryToCreateObject
      1. org.specs2.reflect.Classes$class.tryToCreateObjectEither(Classes.scala:98)
      2. org.specs2.reflect.Classes$.tryToCreateObjectEither(Classes.scala:207)
      3. org.specs2.reflect.Classes$class.tryToCreateObject(Classes.scala:70)
      4. org.specs2.reflect.Classes$.tryToCreateObject(Classes.scala:207)
      4 frames
    10. Specs2
      SpecificationStructure$.createSpecification
      1. org.specs2.specification.SpecificationStructure$.createSpecificationFromClassOrObject(BaseSpecification.scala:126)
      2. org.specs2.specification.SpecificationStructure$.createSpecificationOption(BaseSpecification.scala:107)
      3. org.specs2.specification.SpecificationStructure$.createSpecification(BaseSpecification.scala:95)
      3 frames
    11. specs2-core
      NotifierRunner.start
      1. org.specs2.runner.ClassRunner.createSpecification(ClassRunner.scala:60)
      2. org.specs2.runner.ClassRunner.start(ClassRunner.scala:31)
      3. org.specs2.runner.NotifierRunner.start(NotifierRunner.scala:25)
      3 frames
    12. 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
    13. org.jetbrains.plugins
      JavaSpecs2Runner.main
      1. org.jetbrains.plugins.scala.testingSupport.specs2.JavaSpecs2Runner.runSpecs2_old(JavaSpecs2Runner.java:133)
      2. org.jetbrains.plugins.scala.testingSupport.specs2.JavaSpecs2Runner.runSingleTest(JavaSpecs2Runner.java:204)
      3. org.jetbrains.plugins.scala.testingSupport.specs2.JavaSpecs2Runner.main(JavaSpecs2Runner.java:85)
      3 frames