java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

Stack Overflow | ytg | 10 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Conflict on IntelliJ's classpath?

    Stack Overflow | 10 months ago | ytg
    java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Attempted to register the same Observer: org.jboss.as.arquillian.container.ServerSetupObserver multiple times, please check classpath for conflicting jar versions

      at org.jboss.arquillian.core.impl.ManagerImpl$2.observer()
    2. Arquillian Core Implementation Base
      LoadableExtensionLoader$1.observer
      1. org.jboss.arquillian.core.impl.ManagerImpl$2.observer(ManagerImpl.java:323)
      2. org.jboss.arquillian.core.impl.loadable.LoadableExtensionLoader$1.observer(LoadableExtensionLoader.java:100)
      2 frames
    3. JBoss Application Server: Arquillian Common
      CommonContainerExtension.register
      1. org.jboss.as.arquillian.container.CommonContainerExtension.register(CommonContainerExtension.java:41)
      1 frame
    4. JBoss Application Server: Arquillian Remote Container
      RemoteContainerExtension.register
      1. org.jboss.as.arquillian.container.remote.RemoteContainerExtension.register(RemoteContainerExtension.java:33)
      1 frame
    5. Arquillian Core Implementation Base
      LoadableExtensionLoader.load
      1. org.jboss.arquillian.core.impl.loadable.LoadableExtensionLoader.load(LoadableExtensionLoader.java:78)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    7. Arquillian Core Implementation Base
      ManagerImpl.<init>
      1. org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      2. org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      3. org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      4. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
      5. org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
      6. org.jboss.arquillian.core.impl.ManagerImpl.fireProcessing(ManagerImpl.java:316)
      7. org.jboss.arquillian.core.impl.ManagerImpl.<init>(ManagerImpl.java:98)
      7 frames
    8. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      4 frames
    9. Arquillian Core SPI
      ManagerBuilder.create
      1. org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:156)
      2. org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:111)
      3. org.jboss.arquillian.core.spi.SecurityActions.newInstance(SecurityActions.java:97)
      4. org.jboss.arquillian.core.spi.ManagerBuilder.create(ManagerBuilder.java:77)
      4 frames
    10. Arquillian Test Implementation Base
      EventTestRunnerAdaptor.<init>
      1. org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:55)
      1 frame
    11. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
      4 frames
    12. Arquillian Test SPI
      TestRunnerAdaptorBuilder.build
      1. org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:156)
      2. org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:111)
      3. org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:97)
      4. org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)
      4 frames
    13. Arquillian TestRunner JUnit Core
      Arquillian.run
      1. org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:93)
      1 frame
    14. JUnit
      JUnitCore.run
      1. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      1 frame
    15. IntelliJ junit4 module
      JUnit4IdeaTestRunner.startRunnerWithArgs
      1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
      2. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
      2 frames
    16. IDEA
      JUnitStarter.main
      1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
      2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
      2 frames
    17. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    18. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      1 frame