Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-17839

Cannot change jbossHome property in Arquillian launcher

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Critical
    • 4.2.0.CR1
    • 4.2.0.Beta3
    • arquillian
    • None
    • Hide

      PRE-CONDITIONS

      1. Arquillian test
      2. Arquillian profile with e.g. JBoss 7 managed in pom.xml

      STEPS:

      1. Open Arquillian test run configuration, Arquillian tab
      2. Select maven profile
      3. Wait until the configuration is loaded
      4. Change the value of jbossHome
      5. Run the test

      RESULT:
      Exception in console

      Show
      PRE-CONDITIONS Arquillian test Arquillian profile with e.g. JBoss 7 managed in pom.xml STEPS: Open Arquillian test run configuration, Arquillian tab Select maven profile Wait until the configuration is loaded Change the value of jbossHome Run the test RESULT: Exception in console

    Description

      When I change jbossHome property in the launch configuration dialog, it is saved in arquillian.properties file. However, when I actually run the test, the following error occurs.

      java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
      	at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:160)
      	at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:111)
      	at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:97)
      	at org.jboss.arquillian.test.spi.TestRunnerAdaptorBuilder.build(TestRunnerAdaptorBuilder.java:52)
      	at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:93)
      	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
      	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      Caused by: java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      	at org.jboss.arquillian.test.spi.SecurityActions.newInstance(SecurityActions.java:156)
      	... 10 more
      Caused by: java.lang.RuntimeException: Unknown arquillian container attribute[jbossHome] with value[/home/ljelinko/programs/server/jbossas/jboss-as-7.1.1.Final]
      	at org.jboss.arquillian.config.impl.extension.PropertiesParser$Container.handle(PropertiesParser.java:274)
      	at org.jboss.arquillian.config.impl.extension.PropertiesParser$Handler.handle(PropertiesParser.java:354)
      	at org.jboss.arquillian.config.impl.extension.PropertiesParser.addProperties(PropertiesParser.java:99)
      	at org.jboss.arquillian.config.impl.extension.ConfigurationRegistrar.loadConfiguration(ConfigurationRegistrar.java:56)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)
      	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
      	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
      	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)
      	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)
      	at org.jboss.arquillian.core.impl.ManagerImpl.start(ManagerImpl.java:261)
      	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.<init>(EventTestRunnerAdaptor.java:56)
      	... 15 more
      
      

      Attachments

        Activity

          People

            snjeza_jira Snjezana Peco (Inactive)
            ljelinko@redhat.com Lucia Jelinkova (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: