[arquillian-issues] [JBoss JIRA] (ARQ-1576) RuntimeException after testng suite switched

Karel Piwko (JIRA) jira-events at lists.jboss.org
Tue Nov 19 11:32:06 EST 2013


    [ https://issues.jboss.org/browse/ARQ-1576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924995#comment-12924995 ] 

Karel Piwko edited comment on ARQ-1576 at 11/19/13 11:31 AM:
-------------------------------------------------------------

This bug is not related to Drone, but rather to Arquillian TestNG integration. See following event modeling, which shows that SuiteScope is created per every Before* event, leading to the fact that DroneRegistry is empty at the time of browser injection.

{code}
Running TestSuite
(E) ManagerProcessing
        (O) LoadableExtensionLoader.load
        (E) ServiceLoader
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
(E) ManagerStarted
        (O) ConfigurationRegistrar.loadConfiguration
        (E) ArquillianDescriptor
                (O) ProtocolRegistryCreator.createRegistry
                (E) ProtocolRegistry
                (O) ContainerRegistryCreator.createRegistry
                (E) ContainerRegistry
(E) BeforeSuite
        (I) TestContextHandler.createSuiteContext
        (O) GrapheneRuntimeInitializer.injectGrapheneRuntime
        (O) ReusableRemoteWebDriverExtension.initialize
        (E) ReusedSessionPernamentStorage
        (E) ReusedSessionStore
        (E) InitializationParametersMap
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.setupContainers
                (E) SetupContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.setupContainer
                        (E) BeforeSetup
                        (E) Container
                        (E) AfterSetup
                (O) ClientContainerControllerCreator.createClientSideContainerController
                (E) ContainerController
                (O) ClientDeployerCreator.createClientSideDeployer
                (E) Deployer
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.startSuiteContainers
                (E) StartContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.startContainer
                        (E) BeforeStart
                        (E) ManagementClient
                        (E) ArchiveDeployer
                        (E) InitialContext
Nov 19, 2013 4:58:25 PM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
INFO: Starting container with: [/usr/lib/jvm/java-1.7.0-oracle.x86_64/bin/java, -Xmx512m, -XX:MaxPermSize=128m, -Xverify:none, -XX:+UseFastAccessorMethods, -ea, -Djboss.home.dir=target/jboss-as-7.1.1.Final, -Dorg.jboss.boot.log.file=target/jboss-as-7.1.1.Final/standalone/log/boot.log, -Dlogging.configuration=file:target/jboss-as-7.1.1.Final/standalone/configuration/logging.properties, -Djboss.modules.dir=/home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/modules, -Djboss.bundles.dir=/home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/bundles, -jar, /home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/jboss-modules.jar, -mp, target/jboss-as-7.1.1.Final/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml]
16:58:26,034 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
16:58:26,433 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
16:58:26,490 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
16:58:28,140 INFO  [org.xnio] XNIO Version 3.0.3.GA
16:58:28,146 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
16:58:28,155 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
16:58:28,163 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
16:58:28,197 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
16:58:28,201 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
16:58:28,224 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
16:58:28,275 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
16:58:28,282 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
16:58:28,288 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
16:58:28,328 INFO  [org.jboss.as.security] (MSC service thread 1-5) JBAS013100: Current PicketBox version=4.0.7.Final
16:58:28,337 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
16:58:28,407 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
16:58:28,431 INFO  [org.jboss.as.naming] (MSC service thread 1-7) JBAS011802: Starting Naming Service
16:58:28,466 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
16:58:28,508 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:58:28,788 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-7) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
16:58:28,930 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-5) JBoss Web Services - Stack CXF Server 4.0.2.GA
16:58:29,523 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
16:58:29,902 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory /home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/standalone/deployments
16:58:29,915 INFO  [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on /127.0.0.1:9999
16:58:29,914 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:4447
16:58:30,011 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
16:58:30,011 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 4615ms - Started 133 of 208 services (74 services are passive or on-demand)
                        (E) AfterStart
        (O) DroneRegistrar.register
        (E) DroneRegistry
        (O) BrowserCapabilitiesRegistrar.register
        (E) BrowserCapabilitiesRegistry
(E) BeforeClass
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (O) GrapheneConfigurator.configureGraphene
        (E) DroneConfiguration
        (E) GrapheneConfigured
        (O) DroneConfigurator.prepareGlobalDroneConfiguration
        (E) DroneContext
        (E) DroneConfigurationEvent
        (E) DroneConfigurationEvent
                (O) DroneCallableCreator.createDroneCallable
                (E) DroneLifecycleEvent
                (E) DroneLifecycleEvent
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.startClassContainers
        (E) Event
                (O) DeploymentGenerator.generateDeployment
                (E) DeploymentScenario
        (E) ContainerMultiControlEvent
                (O) ContainerDeployController.deployManaged
        (O) ContainerRestarter.restart
        (O) DroneConfigurator.prepareDroneConfiguration
        (E) DroneConfigurationEvent
        (E) DroneConfigurationEvent
                (O) DroneCallableCreator.createDroneCallable
                (E) DroneLifecycleEvent
                (E) DroneLifecycleEvent
        (O) ClientBeforeAfterLifecycleEventExecuter.on
(E) Before
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) ContainerEventController.createBeforeContext
        (O) TestInstanceEnricher.enrich
        (E) BeforeEnrichment
                (O) ContextRootStoreInitializer.setupLocationForClass
                (E) ContextRootStore
        (E) DroneLifecycleEvent
                (O) DroneInstanceCreator.createDroneInstance
                (E) DroneLifecycleEvent
                        (O) WindowResizer.resizeBrowserWindow
                        (O) DroneEnhancer.enhanceDrone
                        (E) DroneEnhancementEvent
                        (E) DroneEnhancementEvent
                                (O) WindowResizer.resizeBrowserWindow
        (E) AfterEnrichment
        (O) DroneConfigurator.configureDrone
        (O) ClientBeforeAfterLifecycleEventExecuter.on
(E) Test
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) ContainerEventController.createTestContext
        (O) ClientTestExecuter.execute
        (E) ExecutionEvent
                (O) LocalTestExecuter.execute
                (E) TestResult
(E) After
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) CreationalContextDestroyer.destory
        (I) ContainerEventController.createAfterContext
        (O) ClientBeforeAfterLifecycleEventExecuter.on
        (O) DroneDestructor.destroyMethodScopedDrone
(E) AfterClass
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (O) ClientBeforeAfterLifecycleEventExecuter.on
        (O) DroneDestructor.destroyClassScopedDrone
        (E) DroneLifecycleEvent
                (O) DroneEnhancer.deenhanceDrone
                (E) DroneEnhancementEvent
                (E) DroneEnhancementEvent
        (E) DroneLifecycleEvent
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerDeployController.undeployManaged
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.stopManualContainers
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.stopClassContainers
        (O) ServerSetupObserver.afterTestClass
        (O) GrapheneConfigurator.unconfigureGraphene
        (E) GrapheneUnconfigured
(E) AfterSuite
        (I) TestContextHandler.createSuiteContext
        (O) GrapheneRuntimeInitializer.cleanGrapheneRuntime
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.stopSuiteContainers
                (E) StopContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.stopContainer
                        (E) BeforeStop
                                (O) ArquillianServiceDeployer.undeploy
                        (E) AfterStop
(E) ManagerStopping
(E) ManagerProcessing
        (O) LoadableExtensionLoader.load
        (E) ServiceLoader
(E) ManagerStarted
        (O) ConfigurationRegistrar.loadConfiguration
        (E) ArquillianDescriptor
                (O) ProtocolRegistryCreator.createRegistry
                (E) ProtocolRegistry
                (O) ContainerRegistryCreator.createRegistry
                (E) ContainerRegistry
(E) BeforeSuite
        (I) TestContextHandler.createSuiteContext
        (O) GrapheneRuntimeInitializer.injectGrapheneRuntime
        (O) ReusableRemoteWebDriverExtension.initialize
        (E) ReusedSessionPernamentStorage
        (E) ReusedSessionStore
        (E) InitializationParametersMap
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.setupContainers
                (E) SetupContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.setupContainer
                        (E) BeforeSetup
                        (E) Container
                        (E) AfterSetup
                (O) ClientContainerControllerCreator.createClientSideContainerController
                (E) ContainerController
                (O) ClientDeployerCreator.createClientSideDeployer
                (E) Deployer
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.startSuiteContainers
                (E) StartContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.startContainer
                        (E) BeforeStart
                        (E) ManagementClient
                        (E) ArchiveDeployer
                        (E) InitialContext
Nov 19, 2013 4:58:39 PM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
INFO: Starting container with: [/usr/lib/jvm/java-1.7.0-oracle.x86_64/bin/java, -Xmx512m, -XX:MaxPermSize=128m, -Xverify:none, -XX:+UseFastAccessorMethods, -ea, -Djboss.home.dir=target/jboss-as-7.1.1.Final, -Dorg.jboss.boot.log.file=target/jboss-as-7.1.1.Final/standalone/log/boot.log, -Dlogging.configuration=file:target/jboss-as-7.1.1.Final/standalone/configuration/logging.properties, -Djboss.modules.dir=/home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/modules, -Djboss.bundles.dir=/home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/bundles, -jar, /home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/jboss-modules.jar, -mp, target/jboss-as-7.1.1.Final/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml]
16:58:39,694 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
16:58:40,065 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
16:58:40,133 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
16:58:41,575 INFO  [org.xnio] XNIO Version 3.0.3.GA
16:58:41,581 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
16:58:41,590 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
16:58:41,599 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
16:58:41,643 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
16:58:41,650 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
16:58:41,661 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
16:58:41,726 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
16:58:41,754 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
16:58:41,787 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
16:58:41,791 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
16:58:41,794 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
16:58:41,800 INFO  [org.jboss.as.security] (MSC service thread 1-7) JBAS013100: Current PicketBox version=4.0.7.Final
16:58:41,802 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:58:41,813 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
16:58:41,867 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
16:58:42,219 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
16:58:42,237 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
16:58:42,864 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
16:58:43,122 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999
16:58:43,123 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:4447
16:58:43,149 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory /home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/standalone/deployments
16:58:43,261 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
16:58:43,262 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 4023ms - Started 133 of 208 services (74 services are passive or on-demand)
                        (E) AfterStart
        (O) DroneRegistrar.register
        (E) DroneRegistry
        (O) BrowserCapabilitiesRegistrar.register
        (E) BrowserCapabilitiesRegistry
(E) BeforeClass
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (O) GrapheneConfigurator.configureGraphene
        (E) DroneConfiguration
        (E) GrapheneConfigured
        (O) DroneConfigurator.prepareGlobalDroneConfiguration
        (E) DroneContext
        (E) DroneConfigurationEvent
        (E) DroneConfigurationEvent
                (O) DroneCallableCreator.createDroneCallable
                (E) DroneLifecycleEvent
                (E) DroneLifecycleEvent
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.startClassContainers
        (E) Event
                (O) DeploymentGenerator.generateDeployment
                (E) DeploymentScenario
        (E) ContainerMultiControlEvent
                (O) ContainerDeployController.deployManaged
        (O) ContainerRestarter.restart
        (O) DroneConfigurator.prepareDroneConfiguration
        (E) DroneConfigurationEvent
        (E) DroneConfigurationEvent
                (O) DroneCallableCreator.createDroneCallable
                (E) DroneLifecycleEvent
                (E) DroneLifecycleEvent
        (O) ClientBeforeAfterLifecycleEventExecuter.on
(E) Before
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) ContainerEventController.createBeforeContext
        (O) TestInstanceEnricher.enrich
        (E) BeforeEnrichment
                (O) ContextRootStoreInitializer.setupLocationForClass
                (E) ContextRootStore
        (E) DroneLifecycleEvent
                (O) DroneInstanceCreator.createDroneInstance
                (E) RuntimeException
                (E) RuntimeException
        (E) RuntimeException
        (E) RuntimeException
(E) After
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) CreationalContextDestroyer.destory
        (I) ContainerEventController.createAfterContext
        (O) ClientBeforeAfterLifecycleEventExecuter.on
        (O) DroneDestructor.destroyMethodScopedDrone
(E) AfterClass
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (O) ClientBeforeAfterLifecycleEventExecuter.on
        (O) DroneDestructor.destroyClassScopedDrone
        (E) DroneLifecycleEvent
                (O) DroneEnhancer.deenhanceDrone
                (E) DroneEnhancementEvent
                (E) IllegalStateException
                (E) IllegalStateException
        (E) IllegalStateException
        (E) IllegalStateException
(E) AfterSuite
        (I) TestContextHandler.createSuiteContext
        (O) GrapheneRuntimeInitializer.cleanGrapheneRuntime
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.stopSuiteContainers
                (E) StopContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.stopContainer
                        (E) BeforeStop
                                (O) ArquillianServiceDeployer.undeploy
                        (E) AfterStop
(E) ManagerStopping
Tests run: 4, Failures: 2, Errors: 0, Skipped: 1, Time elapsed: 23.26 sec <<< FAILURE!

Results :

Failed tests:   arquillianBeforeTest(org.arquillian.example.Test2)
  arquillianAfterClass(org.arquillian.example.Test2): Unexpected callable present in Drone Context, should be already instantiated at this moment.

Tests run: 4, Failures: 2, Errors: 0, Skipped: 1
{code}
                
      was (Author: kpiwko):
    This bug is not related to Drone, but rather to TestNG. See following event modeling, which shows that SuiteScope is created per every Before* event, leading to the fact that DroneRegistry is empty at the time of browser injection.

{code}
Running TestSuite
(E) ManagerProcessing
        (O) LoadableExtensionLoader.load
        (E) ServiceLoader
log4j:WARN No appenders could be found for logger (org.jboss.logging).
log4j:WARN Please initialize the log4j system properly.
(E) ManagerStarted
        (O) ConfigurationRegistrar.loadConfiguration
        (E) ArquillianDescriptor
                (O) ProtocolRegistryCreator.createRegistry
                (E) ProtocolRegistry
                (O) ContainerRegistryCreator.createRegistry
                (E) ContainerRegistry
(E) BeforeSuite
        (I) TestContextHandler.createSuiteContext
        (O) GrapheneRuntimeInitializer.injectGrapheneRuntime
        (O) ReusableRemoteWebDriverExtension.initialize
        (E) ReusedSessionPernamentStorage
        (E) ReusedSessionStore
        (E) InitializationParametersMap
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.setupContainers
                (E) SetupContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.setupContainer
                        (E) BeforeSetup
                        (E) Container
                        (E) AfterSetup
                (O) ClientContainerControllerCreator.createClientSideContainerController
                (E) ContainerController
                (O) ClientDeployerCreator.createClientSideDeployer
                (E) Deployer
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.startSuiteContainers
                (E) StartContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.startContainer
                        (E) BeforeStart
                        (E) ManagementClient
                        (E) ArchiveDeployer
                        (E) InitialContext
Nov 19, 2013 4:58:25 PM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
INFO: Starting container with: [/usr/lib/jvm/java-1.7.0-oracle.x86_64/bin/java, -Xmx512m, -XX:MaxPermSize=128m, -Xverify:none, -XX:+UseFastAccessorMethods, -ea, -Djboss.home.dir=target/jboss-as-7.1.1.Final, -Dorg.jboss.boot.log.file=target/jboss-as-7.1.1.Final/standalone/log/boot.log, -Dlogging.configuration=file:target/jboss-as-7.1.1.Final/standalone/configuration/logging.properties, -Djboss.modules.dir=/home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/modules, -Djboss.bundles.dir=/home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/bundles, -jar, /home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/jboss-modules.jar, -mp, target/jboss-as-7.1.1.Final/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml]
16:58:26,034 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
16:58:26,433 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
16:58:26,490 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
16:58:28,140 INFO  [org.xnio] XNIO Version 3.0.3.GA
16:58:28,146 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
16:58:28,155 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
16:58:28,163 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
16:58:28,197 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
16:58:28,201 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
16:58:28,224 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
16:58:28,275 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
16:58:28,282 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
16:58:28,288 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
16:58:28,328 INFO  [org.jboss.as.security] (MSC service thread 1-5) JBAS013100: Current PicketBox version=4.0.7.Final
16:58:28,337 INFO  [org.jboss.as.connector] (MSC service thread 1-2) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
16:58:28,407 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
16:58:28,431 INFO  [org.jboss.as.naming] (MSC service thread 1-7) JBAS011802: Starting Naming Service
16:58:28,466 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]
16:58:28,508 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:58:28,788 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-7) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
16:58:28,930 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-5) JBoss Web Services - Stack CXF Server 4.0.2.GA
16:58:29,523 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
16:58:29,902 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory /home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/standalone/deployments
16:58:29,915 INFO  [org.jboss.as.remoting] (MSC service thread 1-5) JBAS017100: Listening on /127.0.0.1:9999
16:58:29,914 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:4447
16:58:30,011 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
16:58:30,011 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 4615ms - Started 133 of 208 services (74 services are passive or on-demand)
                        (E) AfterStart
        (O) DroneRegistrar.register
        (E) DroneRegistry
        (O) BrowserCapabilitiesRegistrar.register
        (E) BrowserCapabilitiesRegistry
(E) BeforeClass
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (O) GrapheneConfigurator.configureGraphene
        (E) DroneConfiguration
        (E) GrapheneConfigured
        (O) DroneConfigurator.prepareGlobalDroneConfiguration
        (E) DroneContext
        (E) DroneConfigurationEvent
        (E) DroneConfigurationEvent
                (O) DroneCallableCreator.createDroneCallable
                (E) DroneLifecycleEvent
                (E) DroneLifecycleEvent
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.startClassContainers
        (E) Event
                (O) DeploymentGenerator.generateDeployment
                (E) DeploymentScenario
        (E) ContainerMultiControlEvent
                (O) ContainerDeployController.deployManaged
        (O) ContainerRestarter.restart
        (O) DroneConfigurator.prepareDroneConfiguration
        (E) DroneConfigurationEvent
        (E) DroneConfigurationEvent
                (O) DroneCallableCreator.createDroneCallable
                (E) DroneLifecycleEvent
                (E) DroneLifecycleEvent
        (O) ClientBeforeAfterLifecycleEventExecuter.on
(E) Before
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) ContainerEventController.createBeforeContext
        (O) TestInstanceEnricher.enrich
        (E) BeforeEnrichment
                (O) ContextRootStoreInitializer.setupLocationForClass
                (E) ContextRootStore
        (E) DroneLifecycleEvent
                (O) DroneInstanceCreator.createDroneInstance
                (E) DroneLifecycleEvent
                        (O) WindowResizer.resizeBrowserWindow
                        (O) DroneEnhancer.enhanceDrone
                        (E) DroneEnhancementEvent
                        (E) DroneEnhancementEvent
                                (O) WindowResizer.resizeBrowserWindow
        (E) AfterEnrichment
        (O) DroneConfigurator.configureDrone
        (O) ClientBeforeAfterLifecycleEventExecuter.on
(E) Test
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) ContainerEventController.createTestContext
        (O) ClientTestExecuter.execute
        (E) ExecutionEvent
                (O) LocalTestExecuter.execute
                (E) TestResult
(E) After
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) CreationalContextDestroyer.destory
        (I) ContainerEventController.createAfterContext
        (O) ClientBeforeAfterLifecycleEventExecuter.on
        (O) DroneDestructor.destroyMethodScopedDrone
(E) AfterClass
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (O) ClientBeforeAfterLifecycleEventExecuter.on
        (O) DroneDestructor.destroyClassScopedDrone
        (E) DroneLifecycleEvent
                (O) DroneEnhancer.deenhanceDrone
                (E) DroneEnhancementEvent
                (E) DroneEnhancementEvent
        (E) DroneLifecycleEvent
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerDeployController.undeployManaged
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.stopManualContainers
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.stopClassContainers
        (O) ServerSetupObserver.afterTestClass
        (O) GrapheneConfigurator.unconfigureGraphene
        (E) GrapheneUnconfigured
(E) AfterSuite
        (I) TestContextHandler.createSuiteContext
        (O) GrapheneRuntimeInitializer.cleanGrapheneRuntime
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.stopSuiteContainers
                (E) StopContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.stopContainer
                        (E) BeforeStop
                                (O) ArquillianServiceDeployer.undeploy
                        (E) AfterStop
(E) ManagerStopping
(E) ManagerProcessing
        (O) LoadableExtensionLoader.load
        (E) ServiceLoader
(E) ManagerStarted
        (O) ConfigurationRegistrar.loadConfiguration
        (E) ArquillianDescriptor
                (O) ProtocolRegistryCreator.createRegistry
                (E) ProtocolRegistry
                (O) ContainerRegistryCreator.createRegistry
                (E) ContainerRegistry
(E) BeforeSuite
        (I) TestContextHandler.createSuiteContext
        (O) GrapheneRuntimeInitializer.injectGrapheneRuntime
        (O) ReusableRemoteWebDriverExtension.initialize
        (E) ReusedSessionPernamentStorage
        (E) ReusedSessionStore
        (E) InitializationParametersMap
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.setupContainers
                (E) SetupContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.setupContainer
                        (E) BeforeSetup
                        (E) Container
                        (E) AfterSetup
                (O) ClientContainerControllerCreator.createClientSideContainerController
                (E) ContainerController
                (O) ClientDeployerCreator.createClientSideDeployer
                (E) Deployer
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.startSuiteContainers
                (E) StartContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.startContainer
                        (E) BeforeStart
                        (E) ManagementClient
                        (E) ArchiveDeployer
                        (E) InitialContext
Nov 19, 2013 4:58:39 PM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
INFO: Starting container with: [/usr/lib/jvm/java-1.7.0-oracle.x86_64/bin/java, -Xmx512m, -XX:MaxPermSize=128m, -Xverify:none, -XX:+UseFastAccessorMethods, -ea, -Djboss.home.dir=target/jboss-as-7.1.1.Final, -Dorg.jboss.boot.log.file=target/jboss-as-7.1.1.Final/standalone/log/boot.log, -Dlogging.configuration=file:target/jboss-as-7.1.1.Final/standalone/configuration/logging.properties, -Djboss.modules.dir=/home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/modules, -Djboss.bundles.dir=/home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/bundles, -jar, /home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/jboss-modules.jar, -mp, target/jboss-as-7.1.1.Final/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml]
16:58:39,694 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
16:58:40,065 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
16:58:40,133 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
16:58:41,575 INFO  [org.xnio] XNIO Version 3.0.3.GA
16:58:41,581 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
16:58:41,590 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
16:58:41,599 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
16:58:41,643 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
16:58:41,650 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
16:58:41,661 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
16:58:41,726 INFO  [org.jboss.as.connector] (MSC service thread 1-1) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
16:58:41,754 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
16:58:41,787 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
16:58:41,791 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
16:58:41,794 INFO  [org.jboss.as.naming] (MSC service thread 1-4) JBAS011802: Starting Naming Service
16:58:41,800 INFO  [org.jboss.as.security] (MSC service thread 1-7) JBAS013100: Current PicketBox version=4.0.7.Final
16:58:41,802 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
16:58:41,813 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-3) JBAS015400: Bound mail session [java:jboss/mail/Default]
16:58:41,867 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
16:58:42,219 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Starting Coyote HTTP/1.1 on http--127.0.0.1-8080
16:58:42,237 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-3) JBoss Web Services - Stack CXF Server 4.0.2.GA
16:58:42,864 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
16:58:43,122 INFO  [org.jboss.as.remoting] (MSC service thread 1-1) JBAS017100: Listening on /127.0.0.1:9999
16:58:43,123 INFO  [org.jboss.as.remoting] (MSC service thread 1-6) JBAS017100: Listening on /127.0.0.1:4447
16:58:43,149 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory /home/kpiwko/temp/reproducer/target/jboss-as-7.1.1.Final/standalone/deployments
16:58:43,261 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
16:58:43,262 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 4023ms - Started 133 of 208 services (74 services are passive or on-demand)
                        (E) AfterStart
        (O) DroneRegistrar.register
        (E) DroneRegistry
        (O) BrowserCapabilitiesRegistrar.register
        (E) BrowserCapabilitiesRegistry
(E) BeforeClass
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (O) GrapheneConfigurator.configureGraphene
        (E) DroneConfiguration
        (E) GrapheneConfigured
        (O) DroneConfigurator.prepareGlobalDroneConfiguration
        (E) DroneContext
        (E) DroneConfigurationEvent
        (E) DroneConfigurationEvent
                (O) DroneCallableCreator.createDroneCallable
                (E) DroneLifecycleEvent
                (E) DroneLifecycleEvent
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.startClassContainers
        (E) Event
                (O) DeploymentGenerator.generateDeployment
                (E) DeploymentScenario
        (E) ContainerMultiControlEvent
                (O) ContainerDeployController.deployManaged
        (O) ContainerRestarter.restart
        (O) DroneConfigurator.prepareDroneConfiguration
        (E) DroneConfigurationEvent
        (E) DroneConfigurationEvent
                (O) DroneCallableCreator.createDroneCallable
                (E) DroneLifecycleEvent
                (E) DroneLifecycleEvent
        (O) ClientBeforeAfterLifecycleEventExecuter.on
(E) Before
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) ContainerEventController.createBeforeContext
        (O) TestInstanceEnricher.enrich
        (E) BeforeEnrichment
                (O) ContextRootStoreInitializer.setupLocationForClass
                (E) ContextRootStore
        (E) DroneLifecycleEvent
                (O) DroneInstanceCreator.createDroneInstance
                (E) RuntimeException
                (E) RuntimeException
        (E) RuntimeException
        (E) RuntimeException
(E) After
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (I) TestContextHandler.createTestContext
        (I) CreationalContextDestroyer.destory
        (I) ContainerEventController.createAfterContext
        (O) ClientBeforeAfterLifecycleEventExecuter.on
        (O) DroneDestructor.destroyMethodScopedDrone
(E) AfterClass
        (I) TestContextHandler.createSuiteContext
        (I) TestContextHandler.createClassContext
        (E) TestClass
        (O) ClientBeforeAfterLifecycleEventExecuter.on
        (O) DroneDestructor.destroyClassScopedDrone
        (E) DroneLifecycleEvent
                (O) DroneEnhancer.deenhanceDrone
                (E) DroneEnhancementEvent
                (E) IllegalStateException
                (E) IllegalStateException
        (E) IllegalStateException
        (E) IllegalStateException
(E) AfterSuite
        (I) TestContextHandler.createSuiteContext
        (O) GrapheneRuntimeInitializer.cleanGrapheneRuntime
        (O) ContainerEventController.execute
        (E) ContainerMultiControlEvent
                (O) ContainerLifecycleController.stopSuiteContainers
                (E) StopContainer
                        (I) ContainerDeploymentContextHandler.createContainerContext
                        (O) ContainerLifecycleController.stopContainer
                        (E) BeforeStop
                                (O) ArquillianServiceDeployer.undeploy
                        (E) AfterStop
(E) ManagerStopping
Tests run: 4, Failures: 2, Errors: 0, Skipped: 1, Time elapsed: 23.26 sec <<< FAILURE!

Results :

Failed tests:   arquillianBeforeTest(org.arquillian.example.Test2)
  arquillianAfterClass(org.arquillian.example.Test2): Unexpected callable present in Drone Context, should be already instantiated at this moment.

Tests run: 4, Failures: 2, Errors: 0, Skipped: 1
{code}
                  
> RuntimeException after testng suite switched
> --------------------------------------------
>
>                 Key: ARQ-1576
>                 URL: https://issues.jboss.org/browse/ARQ-1576
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Test Protocol SPIs and Implementation
>    Affects Versions: 1.1.2.Final
>            Reporter: Jiří Štefek
>         Attachments: reproducer.zip
>
>
> Having a suite consisting of two suites.
> After first suite finishes, then I get this:
> {code}
> arquillianBeforeTest(org.arquillian.example.Test2)  Time elapsed: 6.373 sec  <<< FAILURE!
> java.lang.RuntimeException
> 	at org.jboss.arquillian.drone.impl.DroneInstanceCreator.createDroneInstance(DroneInstanceCreator.java:96)
> 	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.EventImpl.fire(EventImpl.java:67)
> 	at org.jboss.arquillian.drone.impl.DroneTestEnricher.getDroneInstance(DroneTestEnricher.java:111)
> 	at org.jboss.arquillian.drone.impl.DroneTestEnricher.enrich(DroneTestEnricher.java:72)
> 	at org.jboss.arquillian.test.impl.TestInstanceEnricher.enrich(TestInstanceEnricher.java:52)
> 	at org.jboss.arquillian.container.test.impl.ClientTestInstanceEnricher.enrich(ClientTestInstanceEnricher.java:51)
> 	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.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
> 	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)
> 	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.proceed(EventContextImpl.java:88)
> 	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
> 	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.proceed(EventContextImpl.java:88)
> 	at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:89)
> 	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.proceed(EventContextImpl.java:88)
> 	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
> 	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.proceed(EventContextImpl.java:88)
> 	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.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:95)
> 	at org.jboss.arquillian.testng.Arquillian.arquillianBeforeTest(Arquillian.java:130)
> 	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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> 	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
> 	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
> 	at org.testng.internal.Invoker.invokeMethod(Invoker.java:653)
> 	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
> 	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
> 	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> 	at org.testng.TestRunner.privateRun(TestRunner.java:767)
> 	at org.testng.TestRunner.run(TestRunner.java:617)
> 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
> 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> 	at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> 	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> 	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
> 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1220)
> 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
> 	at org.testng.TestNG.run(TestNG.java:1057)
> 	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
> 	at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> 	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
> 	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> Caused by: java.lang.NullPointerException
> 	at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:124)
> 	at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)
> 	at org.jboss.arquillian.drone.impl.DroneCallableCreator$1.call(DroneCallableCreator.java:89)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:744)
> Caused by: java.lang.NullPointerException
> 	at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:124)
> 	at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:41)
> 	at org.jboss.arquillian.drone.impl.DroneCallableCreator$1.call(DroneCallableCreator.java:89)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:744)
> {code}
> and this:
> {code}
> arquillianAfterClass(org.arquillian.example.Test2)  Time elapsed: 0.003 sec  <<< FAILURE!
> java.lang.IllegalStateException: Unexpected callable present in Drone Context, should be already instantiated at this moment.
> 	at org.jboss.arquillian.drone.impl.InstanceOrCallableInstanceImpl.asInstance(InstanceOrCallableInstanceImpl.java:57)
> 	at org.jboss.arquillian.drone.impl.DroneEnhancer.deenhanceDrone(DroneEnhancer.java:119)
> 	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.EventImpl.fire(EventImpl.java:67)
> 	at org.jboss.arquillian.drone.impl.DroneDestructor.destroyClassScopedDrone(DroneDestructor.java:83)
> 	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.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)
> 	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.proceed(EventContextImpl.java:88)
> 	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)
> 	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.proceed(EventContextImpl.java:88)
> 	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.test.impl.EventTestRunnerAdaptor.afterClass(EventTestRunnerAdaptor.java:87)
> 	at org.jboss.arquillian.testng.Arquillian.arquillianAfterClass(Arquillian.java:122)
> 	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.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:84)
> 	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:564)
> 	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:213)
> 	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:138)
> 	at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:225)
> 	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
> 	at org.testng.TestRunner.privateRun(TestRunner.java:767)
> 	at org.testng.TestRunner.run(TestRunner.java:617)
> 	at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> 	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
> 	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
> 	at org.testng.SuiteRunner.run(SuiteRunner.java:240)
> 	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
> 	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
> 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1224)
> 	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1220)
> 	at org.testng.TestNG.runSuitesLocally(TestNG.java:1149)
> 	at org.testng.TestNG.run(TestNG.java:1057)
> 	at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:177)
> 	at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
> 	at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:105)
> 	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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> 	at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> 	at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> 	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:103)
> 	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:74)
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the arquillian-issues mailing list