9 Replies Latest reply on Jan 17, 2019 2:44 PM by Wolfgang Knauf

    Arquillian + Warp exception in arquillianBeforeTest

    Martin Varga Newbie

      I am trying to replace JSFUnit that no longer works with latest arqullian with Warp in my project to browse to an URL and inspect a session. So far no luck. Here's my setup.

       

      Dependecy Management

       

       

      <arquillian.version>1.1.1.Final</arquillian.version>
      <version.arquillian_drone>1.2.0.Final</version.arquillian_drone>
      <version.arquillian_warp>1.0.0.Alpha4</version.arquillian_warp>
      
      
      ...
      
      
      <dependency>
      <groupId>org.jboss.arquillian.extension</groupId>
      <artifactId>arquillian-warp-bom</artifactId>
      <version>${version.arquillian_warp}</version>
      <type>pom</type>
      <scope>import</scope>
      </dependency>
      
      <dependency>
      <groupId>org.jboss.arquillian.extension</groupId>
      <artifactId>arquillian-drone-bom</artifactId>
      <version>${version.arquillian_drone}</version>
      <type>pom</type>
      <scope>import</scope>
      </dependency>
      
      <dependency>
      <groupId>org.jboss.arquillian</groupId>
      <artifactId>arquillian-bom</artifactId>
      <version>${arquillian.version}</version>
      <scope>import</scope>
      <type>pom</type>
      </dependency>
      

       

      Dependencies:

       

      <dependency>
      <groupId>org.jboss.arquillian.testng</groupId>
      <artifactId>arquillian-testng-container</artifactId>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.arquillian.container</groupId>
      <artifactId>arquillian-container-test-api</artifactId>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.shrinkwrap</groupId>
      <artifactId>shrinkwrap-api</artifactId>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.jboss.shrinkwrap</groupId>
      <artifactId>shrinkwrap-impl-base</artifactId>
      <scope>test</scope>
      </dependency>        
      <dependency>
      <groupId>org.jboss.as</groupId>
      <artifactId>jboss-as-arquillian-container-remote</artifactId>
      </dependency>
      <dependency>
      <groupId>org.jboss.arquillian.protocol</groupId>
      <artifactId>arquillian-protocol-servlet</artifactId>
      <scope>test</scope>
      </dependency>
      
      <dependency>
      <groupId>org.jboss.arquillian.extension</groupId>
      <artifactId>arquillian-seam2</artifactId>
      <scope>test</scope>
      </dependency>
      
      
      <dependency>
      <groupId>org.jboss.arquillian.extension</groupId>
      <artifactId>arquillian-warp</artifactId>
      <type>pom</type>
      <scope>test</scope>
      </dependency>
      
      <dependency>
      <groupId>org.apache.james</groupId>
      <artifactId>apache-mime4j</artifactId>
      <version>0.6</version>
      </dependency>
      
      <dependency>
      <groupId>org.jboss.arquillian.extension</groupId>
      <artifactId>arquillian-warp-jsf</artifactId>
      </dependency>
      
      <dependency>
      <groupId>org.jboss.arquillian.extension</groupId>
      <artifactId>arquillian-drone-webdriver-depchain</artifactId>
      <type>pom</type>
      <scope>test</scope>
      </dependency>
      

       

      Resulting tree:

       

      [INFO] Scanning for projects...
      [INFO]                                                                         
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Common EJB3s 0.1
      [INFO] ------------------------------------------------------------------------
      [INFO] 
      [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ common-ejb3 ---
      [INFO] +- org.testng:testng:jar:5.14.6:test
      [INFO] |  +- org.beanshell:bsh:jar:2.0b4:test
      [INFO] |  +- com.google.inject:guice:jar:2.0:test
      [INFO] |  |  \- aopalliance:aopalliance:jar:1.0:test
      [INFO] |  \- com.beust:jcommander:jar:1.12:test
      [INFO] +- org.richfaces.core:richfaces-core-impl:jar:4.3.2.Final:compile
      [INFO] |  +- org.richfaces.core:richfaces-core-api:jar:4.3.2.Final:compile
      [INFO] |  \- net.sourceforge.cssparser:cssparser:jar:0.9.5:compile
      [INFO] |     \- org.w3c.css:sac:jar:1.3:compile
      [INFO] +- com.google.guava:guava:jar:11.0.2:provided
      [INFO] +- org.richfaces.ui:richfaces-components-ui:jar:4.3.2.Final:compile
      [INFO] |  \- org.richfaces.ui:richfaces-components-api:jar:4.3.2.Final:compile
      [INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.2.4:provided
      [INFO] |  \- javax.xml.bind:jaxb-api:jar:2.2.3:provided
      [INFO] |     \- javax.xml.stream:stax-api:jar:1.0-2:provided
      [INFO] +- args4j:args4j:jar:2.0.8:provided
      [INFO] +- net.sourceforge.javacsv:javacsv:jar:2.0:compile
      [INFO] +- com.h2database:h2:jar:FW:system
      [INFO] +- org.owasp.antisamy:antisamy:jar:1.4.5:compile
      [INFO] |  +- org.apache.xmlgraphics:batik-css:jar:1.7:compile
      [INFO] |  |  +- org.apache.xmlgraphics:batik-ext:jar:1.7:compile
      [INFO] |  |  +- org.apache.xmlgraphics:batik-util:jar:1.7:compile
      [INFO] |  |  \- xml-apis:xml-apis-ext:jar:1.3.04:compile
      [INFO] |  +- net.sourceforge.nekohtml:nekohtml:jar:1.9.14:compile (version managed from 1.9.12)
      [INFO] |  \- commons-httpclient:commons-httpclient:jar:3.1:compile
      [INFO] |     \- commons-logging:commons-logging:jar:1.0.4:compile
      [INFO] +- commons-codec:commons-codec:jar:1.8:compile
      [INFO] +- org.jboss.spec:jboss-javaee-all-6.0:jar:3.0.2.Final:provided
      [INFO] |  +- javax.activation:activation:jar:1.1.1:provided
      [INFO] |  +- javax.enterprise:cdi-api:jar:1.0-SP4:provided
      [INFO] |  +- javax.inject:javax.inject:jar:1:provided
      [INFO] |  +- javax.jws:jsr181-api:jar:1.0-MR1:provided
      [INFO] |  +- javax.mail:mail:jar:1.4.4:provided
      [INFO] |  +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec:jar:1.0.1.Final:provided (version managed from 1.0.2.Final)
      [INFO] |  +- org.jboss.spec.javax.el:jboss-el-api_2.2_spec:jar:1.0.0.Final:provided (version managed from 1.0.2.Final)
      [INFO] |  +- org.jboss.spec.javax.enterprise.deploy:jboss-jad-api_1.2_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec:jar:2.0.1.Final:provided (version managed from 2.0.9.Final)
      [INFO] |  +- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec:jar:1.0.0.Final:provided
      [INFO] |  +- org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.rmi:jboss-rmi-api_1.0_spec:jar:1.0.4.Final:provided
      [INFO] |  +- org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:jar:1.0.1.Final:provided (version managed from 1.0.2.Final)
      [INFO] |  +- org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.0_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.xml.registry:jboss-jaxr-api_1.0_spec:jar:1.0.1.Final:provided (version managed from 1.0.2.Final)
      [INFO] |  +- org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:jar:1.0.0.Final:provided
      [INFO] |  +- org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.servlet.jstl:jboss-jstl-api_1.2_spec:jar:1.0.2.Final:provided (version managed from 1.0.3.Final)
      [INFO] |  +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_1.1_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec:jar:1.0.3.Final:provided (version managed from 1.0.4.Final)
      [INFO] |  +- org.jboss.spec.javax.xml.rpc:jboss-jaxrpc-api_1.1_spec:jar:1.0.0.Final:provided (version managed from 1.0.1.Final)
      [INFO] |  +- org.jboss.spec.javax.xml.soap:jboss-saaj-api_1.3_spec:jar:1.0.1.Final:provided (version managed from 1.0.2.Final)
      [INFO] |  \- org.jboss.spec.javax.xml.ws:jboss-jaxws-api_2.2_spec:jar:2.0.0.Final:provided (version managed from 2.0.1.Final)
      [INFO] +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:provided (scope not updated to compile)
      [INFO] +- org.picketbox:picketbox:jar:4.0.7.Final:provided
      [INFO] +- commons-beanutils:commons-beanutils:jar:1.7.0:compile
      [INFO] +- commons-io:commons-io:jar:2.1:compile
      [INFO] +- com.sun.faces:jsf-impl:jar:2.1.21-jbossorg-1:provided
      [INFO] +- javax.validation:validation-api:jar:1.0.0.GA:compile
      [INFO] +- jgroups:jgroups-all:jar:2.2.9.1:test
      [INFO] +- org.jboss.seam:jboss-seam:ejb:2.3.1.Final:compile
      [INFO] |  \- org.jboss.el:jboss-el:jar:1.0_02.CR6:compile
      [INFO] |     \- javax.el:el-api:jar:1.0:compile
      [INFO] +- org.jboss.seam:jboss-seam-ui:jar:2.3.1.Final:compile
      [INFO] +- org.jboss.seam:jboss-seam-ioc:jar:2.3.1.Final:compile
      [INFO] +- org.jboss.seam:jboss-seam-debug:jar:2.3.1.Final:compile
      [INFO] +- junit:junit:jar:4.8.1:test (scope not updated to compile)
      [INFO] +- log4j:log4j:jar:1.2.15:provided
      [INFO] +- jdom:jdom:jar:SNAPSHOT:system
      [INFO] +- xerces:xercesImpl:jar:2.9.1-jbossas-1:provided
      [INFO] +- xalan:xalan:jar:2.7.1.jbossorg-1:provided
      [INFO] |  \- xalan:serializer:jar:2.7.1.jbossorg-1:provided (version managed from 2.7.1-jbossorg-1)
      [INFO] +- org.jboss.arquillian.testng:arquillian-testng-container:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.arquillian.testng:arquillian-testng-core:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-api:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.1.Final:test
      [INFO] |  |  +- org.jboss.arquillian.config:arquillian-config-api:jar:1.1.1.Final:test
      [INFO] |  |  \- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.1.Final:test
      [INFO] |  \- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.1.Final:test
      [INFO] +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.1.Final:test
      [INFO] +- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.1.2:test
      [INFO] +- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.1.2:test
      [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.1.2:test
      [INFO] +- org.jboss.as:jboss-as-arquillian-container-remote:jar:7.1.1.Final:test
      [INFO] |  +- org.jboss.as:jboss-as-arquillian-common:jar:7.1.1.Final:test
      [INFO] |  |  +- org.jboss.arquillian.container:arquillian-container-osgi:jar:1.0.2.Final:test
      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.1.1.Final:test (version managed from 1.0.0.CR7)
      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.1.1.Final:test (version managed from 1.0.0.CR7)
      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.1.1.Final:test (version managed from 1.0.0.CR7)
      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-osgi:jar:1.0.2.Final:test
      [INFO] |  |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.1.1.Final:test (version managed from 1.0.0.CR7)
      [INFO] |  |  +- org.jboss.as:jboss-as-arquillian-testenricher-msc:jar:7.1.1.Final:test
      [INFO] |  |  |  \- org.jboss.msc:jboss-msc:jar:1.0.2.GA:test
      [INFO] |  |  +- org.jboss.as:jboss-as-controller-client:jar:7.1.1.Final:test
      [INFO] |  |  |  +- org.jboss.as:jboss-as-protocol:jar:7.1.1.Final:test
      [INFO] |  |  |  |  \- org.jboss.xnio:xnio-nio:jar:3.0.3.GA:test
      [INFO] |  |  |  +- org.jboss:jboss-dmr:jar:1.1.1.Final:test
      [INFO] |  |  |  \- org.jboss.threads:jboss-threads:jar:2.0.0.GA:test
      [INFO] |  |  +- org.jboss.as:jboss-as-jmx:jar:7.1.1.Final:test
      [INFO] |  |  |  +- org.jboss:jboss-common-core:jar:2.2.17.GA:test
      [INFO] |  |  |  \- org.jboss.as:jboss-as-server:jar:7.1.1.Final:test
      [INFO] |  |  |     +- org.jboss.as:jboss-as-controller:jar:7.1.1.Final:test
      [INFO] |  |  |     |  \- org.jboss:staxmapper:jar:1.1.0.Final:test
      [INFO] |  |  |     +- org.jboss.as:jboss-as-domain-http-interface:jar:7.1.1.Final:test
      [INFO] |  |  |     |  +- org.jboss.as:jboss-as-domain-management:jar:7.1.1.Final:test
      [INFO] |  |  |     |  \- org.jboss.com.sun.httpserver:httpserver:jar:1.0.0.Final:test
      [INFO] |  |  |     +- org.jboss.as:jboss-as-deployment-repository:jar:7.1.1.Final:test
      [INFO] |  |  |     +- org.jboss.as:jboss-as-embedded:jar:7.1.1.Final:test
      [INFO] |  |  |     +- org.jboss.as:jboss-as-platform-mbean:jar:7.1.1.Final:test
      [INFO] |  |  |     +- org.jboss.as:jboss-as-process-controller:jar:7.1.1.Final:test
      [INFO] |  |  |     |  \- system:jdk-tools:jar:jdk:system
      [INFO] |  |  |     +- org.jboss.as:jboss-as-remoting:jar:7.1.1.Final:test
      [INFO] |  |  |     |  +- org.jboss.as:jboss-as-network:jar:7.1.1.Final:test
      [INFO] |  |  |     |  \- org.jboss.as:jboss-as-threads:jar:7.1.1.Final:test
      [INFO] |  |  |     +- org.jboss:jandex:jar:1.0.3.Final:test
      [INFO] |  |  |     +- org.jboss.invocation:jboss-invocation:jar:1.1.1.Final:test
      [INFO] |  |  |     +- org.jboss.logmanager:jboss-logmanager-log4j:jar:1.0.0.GA:test
      [INFO] |  |  |     +- org.jboss.stdio:jboss-stdio:jar:1.0.1.GA:test
      [INFO] |  |  |     \- org.jboss:jboss-vfs:jar:3.1.0.Final:test
      [INFO] |  |  +- org.jboss.osgi.spi:jbosgi-spi:jar:3.0.1.Final:test
      [INFO] |  |  |  \- org.jboss.osgi.vfs:jbosgi-vfs:jar:1.0.7.Final:test
      [INFO] |  |  +- org.jboss.remotingjmx:remoting-jmx:jar:1.0.2.Final:test
      [INFO] |  |  |  +- org.jboss.logmanager:jboss-logmanager:jar:1.2.2.GA:test
      [INFO] |  |  |  +- org.jboss.remoting3:jboss-remoting:jar:3.2.3.GA:test
      [INFO] |  |  |  \- org.jboss.xnio:xnio-api:jar:3.0.3.GA:test
      [INFO] |  |  +- org.jboss.sasl:jboss-sasl:jar:1.0.0.Final:test
      [INFO] |  |  \- org.osgi:org.osgi.core:jar:4.2.0:test
      [INFO] |  +- org.jboss.as:jboss-as-arquillian-protocol-jmx:jar:7.1.1.Final:test
      [INFO] |  |  +- org.jboss.as:jboss-as-osgi-service:jar:7.1.1.Final:test
      [INFO] |  |  |  +- org.jboss.as:jboss-as-ee:jar:7.1.1.Final:test
      [INFO] |  |  |  |  +- org.jboss.interceptor:jboss-interceptor-spi:jar:2.0.0.Final:test
      [INFO] |  |  |  |  +- org.jboss.metadata:jboss-metadata-common:jar:7.0.1.Final:test
      [INFO] |  |  |  |  \- org.jboss.metadata:jboss-metadata-ear:jar:7.0.1.Final:test
      [INFO] |  |  |  +- org.jboss.as:jboss-as-naming:jar:7.1.1.Final:test
      [INFO] |  |  |  |  \- org.jboss:jboss-remote-naming:jar:1.0.2.Final:test
      [INFO] |  |  |  |     \- org.jboss:jboss-ejb-client:jar:1.0.5.Final:test (version managed from 1.0.0.Final)
      [INFO] |  |  |  +- org.jboss.modules:jboss-modules:jar:1.1.1.GA:test
      [INFO] |  |  |  +- org.jboss.osgi.framework:jbosgi-framework-core:jar:1.1.8.Final:test
      [INFO] |  |  |  |  +- org.jboss.osgi.deployment:jbosgi-deployment:jar:1.0.12.Final:test
      [INFO] |  |  |  |  +- org.jboss.osgi.resolver:jbosgi-resolver-felix:jar:1.0.13.Final:test
      [INFO] |  |  |  |  |  +- org.jboss.osgi.resolver:jbosgi-resolver-api:jar:1.0.13.Final:test
      [INFO] |  |  |  |  |  |  \- org.jboss.osgi.metadata:jbosgi-metadata:jar:2.0.3.Final:test
      [INFO] |  |  |  |  |  \- org.jboss.osgi.resolver:jbosgi-resolver-spi:jar:1.0.13.Final:test
      [INFO] |  |  |  |  +- org.jboss.osgi.vfs:jbosgi-vfs30:jar:1.0.7.Final:test
      [INFO] |  |  |  |  \- org.osgi:org.osgi.compendium:jar:4.2.0:test
      [INFO] |  |  |  +- org.jboss.osgi.repository:jbosgi-repository-core:jar:1.0.5:test
      [INFO] |  |  |  |  \- org.jboss.osgi.repository:jbosgi-repository-api:jar:1.0.5:test
      [INFO] |  |  |  |     \- org.jboss.osgi.resolver:jbosgi-resolver-api-v2:jar:2.0.0.Beta2:test
      [INFO] |  |  |  |        \- org.apache.felix:org.apache.felix.resolver:jar:0.1.0.Beta1:test
      [INFO] |  |  |  \- org.osgi:org.osgi.enterprise:jar:4.2.0:test
      [INFO] |  |  \- org.jboss.arquillian.protocol:arquillian-protocol-jmx:jar:1.1.1.Final:test (version managed from 1.0.0.CR7)
      [INFO] |  +- org.jboss.marshalling:jboss-marshalling-river:jar:1.3.11.GA:test
      [INFO] |  |  \- org.jboss.marshalling:jboss-marshalling:jar:1.3.11.GA:test
      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-api:jar:1.1.1.Final:test
      [INFO] |  \- org.jboss.as:jboss-as-build-config:jar:7.1.1.Final:test
      [INFO] +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.1.Final:test
      [INFO] |  |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-3:test
      [INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-3:test
      [INFO] +- org.jboss.arquillian.extension:arquillian-seam2:jar:1.0.0.Final-SNAPSHOT:test
      [INFO] |  +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.1.Final:test
      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.0.0:test
      [INFO] |  |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.0.0:test
      [INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.0.0:test
      [INFO] |  |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.0.0:test
      [INFO] |  |  |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.0.0:test
      [INFO] |  |  +- org.sonatype.aether:aether-api:jar:1.13.1:test
      [INFO] |  |  +- org.sonatype.aether:aether-impl:jar:1.13.1:test
      [INFO] |  |  +- org.sonatype.aether:aether-spi:jar:1.13.1:test
      [INFO] |  |  +- org.sonatype.aether:aether-util:jar:1.13.1:test
      [INFO] |  |  +- org.sonatype.aether:aether-connector-wagon:jar:1.13.1:test
      [INFO] |  |  +- org.apache.maven:maven-aether-provider:jar:3.0.5:test
      [INFO] |  |  +- org.apache.maven:maven-model:jar:3.0.5:test
      [INFO] |  |  +- org.apache.maven:maven-model-builder:jar:3.0.5:test
      [INFO] |  |  +- org.apache.maven:maven-repository-metadata:jar:3.0.5:test
      [INFO] |  |  +- org.apache.maven:maven-settings:jar:3.0.5:test
      [INFO] |  |  +- org.apache.maven:maven-settings-builder:jar:3.0.5:test
      [INFO] |  |  +- org.codehaus.plexus:plexus-interpolation:jar:1.14:test
      [INFO] |  |  +- org.codehaus.plexus:plexus-utils:jar:2.0.6:test
      [INFO] |  |  +- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:test
      [INFO] |  |  |  \- org.sonatype.plexus:plexus-cipher:jar:1.4:test
      [INFO] |  |  +- org.apache.maven.wagon:wagon-provider-api:jar:2.4:test
      [INFO] |  |  +- org.apache.maven.wagon:wagon-file:jar:2.4:test
      [INFO] |  |  \- org.apache.maven.wagon:wagon-http-lightweight:jar:2.4:test
      [INFO] |  |     \- org.apache.maven.wagon:wagon-http-shared4:jar:2.4:test
      [INFO] |  |        \- org.jsoup:jsoup:jar:1.7.1:test
      [INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-extension-descriptors:jar:1.0.0-beta-5:test
      [INFO] |     \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api:jar:0.1.4:test
      [INFO] +- org.jboss.arquillian.extension:arquillian-warp:pom:1.0.0.Alpha4:test (scope not updated to compile)
      [INFO] |  +- org.jboss.arquillian.extension:arquillian-warp-api:jar:1.0.0.Alpha4:test
      [INFO] |  +- org.jboss.arquillian.extension:arquillian-warp-spi:jar:1.0.0.Alpha4:test
      [INFO] |  \- org.jboss.arquillian.extension:arquillian-warp-impl:jar:1.0.0.Alpha4:test
      [INFO] |     +- org.littleshoot:littleproxy:jar:0.5.3:test
      [INFO] |     |  +- commons-cli:commons-cli:jar:1.2:test
      [INFO] |     |  +- org.apache.commons:commons-lang3:jar:3.1:test
      [INFO] |     |  +- io.netty:netty:jar:3.6.5.Final:test
      [INFO] |     |  \- org.littleshoot:dnssec4j:jar:0.1:test
      [INFO] |     |     +- org.littleshoot:dnsjava:jar:2.1.3:test
      [INFO] |     |     \- org.slf4j:slf4j-log4j12:jar:1.7.2:test
      [INFO] |     \- javassist:javassist:jar:3.12.1.GA:test
      [INFO] +- org.jboss.arquillian.extension:arquillian-warp-jsf:jar:1.0.0.Alpha4:compile
      [INFO] +- org.jboss.arquillian.extension:arquillian-drone-webdriver-depchain:pom:1.2.0.Final:test
      [INFO] |  +- org.jboss.arquillian.extension:arquillian-drone-api:jar:1.2.0.Final:test
      [INFO] |  +- org.jboss.arquillian.extension:arquillian-drone-spi:jar:1.2.0.Final:test
      [INFO] |  +- org.jboss.arquillian.extension:arquillian-drone-configuration:jar:1.2.0.Final:test
      [INFO] |  +- org.jboss.arquillian.extension:arquillian-drone-impl:jar:1.2.0.Final:test
      [INFO] |  +- org.jboss.arquillian.extension:arquillian-drone-webdriver:jar:1.2.0.Final:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-api:jar:2.35.0:test
      [INFO] |  |  \- org.json:json:jar:20080701:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-java:jar:2.35.0:test
      [INFO] |  |  +- org.seleniumhq.selenium:selenium-safari-driver:jar:2.35.0:test
      [INFO] |  |  \- org.webbitserver:webbit:jar:0.4.14:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-support:jar:2.35.0:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-android-driver:jar:2.35.0:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:2.35.0:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-firefox-driver:jar:2.35.0:test
      [INFO] |  |  \- org.apache.commons:commons-exec:jar:1.1:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.35.0:test
      [INFO] |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.8:test (version managed from 2.12)
      [INFO] |  |  |  +- org.apache.httpcomponents:httpmime:jar:4.1.2:test (version managed from 4.0.1)
      [INFO] |  |  |  \- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.8:test
      [INFO] |  |  \- org.apache.httpcomponents:httpclient:jar:4.1.2:test
      [INFO] |  |     \- org.apache.httpcomponents:httpcore:jar:4.1.4:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-ie-driver:jar:2.35.0:test
      [INFO] |  |  +- net.java.dev.jna:jna:jar:3.4.0:test
      [INFO] |  |  \- net.java.dev.jna:platform:jar:3.4.0:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-iphone-driver:jar:2.35.0:test
      [INFO] |  +- org.seleniumhq.selenium:selenium-remote-driver:jar:2.35.0:test
      [INFO] |  |  \- cglib:cglib-nodep:jar:2.1_3:test
      [INFO] |  +- com.opera:operadriver:jar:1.5:test
      [INFO] |  |  +- com.opera:operalaunchers:jar:1.1:test
      [INFO] |  |  +- com.google.protobuf:protobuf-java:jar:2.4.1:test
      [INFO] |  |  +- commons-jxpath:commons-jxpath:jar:1.3:test
      [INFO] |  |  \- org.ini4j:ini4j:jar:0.5.2:test
      [INFO] |  \- org.jboss.arquillian.extension:arquillian-phantom-driver:jar:1.1.0.Final:test
      [INFO] |     +- com.github.detro.ghostdriver:phantomjsdriver:jar:1.0.4:test
      [INFO] |     |  \- org.seleniumhq.selenium:selenium-server:jar:2.35.0:test (version managed from 2.33.0)
      [INFO] |     |     +- org.bouncycastle:bcprov-jdk15on:jar:1.48:test
      [INFO] |     |     +- org.bouncycastle:bcpkix-jdk15on:jar:1.48:test
      [INFO] |     |     +- mx4j:mx4j-tools:jar:3.0.1:test
      [INFO] |     |     +- org.mortbay.jetty:servlet-api-2.5:jar:6.1.9:test
      [INFO] |     |     +- org.seleniumhq.selenium:jetty-repacked:jar:7.6.1:test
      [INFO] |     |     +- net.jcip:jcip-annotations:jar:1.0:test
      [INFO] |     |     \- org.yaml:snakeyaml:jar:1.8:test
      [INFO] |     \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.0.0:test
      [INFO] |        \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.0.0:test
      [INFO] |           +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.0.0:test
      [INFO] |           +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.0.0:test
      [INFO] |           +- org.codehaus.plexus:plexus-compiler-javac:jar:2.1:test
      [INFO] |           |  \- org.codehaus.plexus:plexus-compiler-api:jar:2.1:test
      [INFO] |           \- org.codehaus.plexus:plexus-component-api:jar:1.0-alpha-33:test
      [INFO] |              \- org.codehaus.plexus:plexus-classworlds:jar:1.2-alpha-10:test
      [INFO] +- org.hibernate:hibernate-core:jar:4.0.1.Final:provided (scope not updated to compile)
      [INFO] |  +- commons-collections:commons-collections:jar:3.2.1:provided
      [INFO] |  +- antlr:antlr:jar:2.7.6:provided (version managed from 2.7.7)
      [INFO] |  +- dom4j:dom4j:jar:1.6.1:provided
      [INFO] |  \- org.javassist:javassist:jar:3.15.0-GA:provided
      [INFO] +- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:provided (scope not updated to compile)
      [INFO] +- org.hibernate:hibernate-entitymanager:jar:4.0.1.Final:provided
      [INFO] +- org.hibernate:hibernate-validator:jar:4.2.0.Final:provided
      [INFO] |  \- org.slf4j:slf4j-api:jar:1.6.1:provided
      [INFO] +- org.hibernate:hibernate-search:jar:4.2.0.Final:compile
      [INFO] |  \- org.hibernate:hibernate-search-orm:jar:4.2.0.Final:compile
      [INFO] |     \- org.hibernate:hibernate-search-engine:jar:4.2.0.Final:compile
      [INFO] |        \- org.apache.lucene:lucene-core:jar:3.6.2:compile
      [INFO] \- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:provided
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5.479s
      [INFO] Finished at: Fri Oct 11 13:43:00 SGT 2013
      [INFO] Final Memory: 33M/696M
      [INFO] ------------------------------------------------------------------------
      
      
      

       

       

      Nothing much in arquillian.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>
      <arquillian xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns="http://jboss.org/schema/arquillian"
          xsi:schemaLocation="http://jboss.org/schema/arquillian http://jboss.org/schema/arquillian/arquillian_1_0.xsd">
      
          <defaultProtocol type="Servlet 3.0"></defaultProtocol>
      
        
          <container qualifier="jboss7" default="true">
              <configuration>
                  <property name="managementAddress">${JBOSS_HOST}</property>
                  <property name="managementPort">${JBOSS_PORT}</property>
                  <property name="username">...</property>
                  <property name="password">...</property>
      
              </configuration>
          </container>
      
          <extension qualifier="webdriver">
              <property name="remoteAddress">http://10.3.8.104:14380/test</property>
          </extension>
      
      </arquillian>
      
      
      

       

      package com.example.test
      
      import java.net.URL;
      
      import javax.faces.context.FacesContext;
      
      import org.jboss.arquillian.container.test.api.RunAsClient;
      import org.jboss.arquillian.drone.api.annotation.Drone;
      import org.jboss.arquillian.test.api.ArquillianResource;
      import org.jboss.arquillian.warp.Warp;
      import org.jboss.arquillian.warp.WarpTest;
      import org.openqa.selenium.WebDriver;
      import org.testng.annotations.Test;
      import org.jboss.arquillian.warp.Activity;
      import org.jboss.arquillian.warp.Inspection;
      import org.jboss.arquillian.warp.jsf.AfterPhase;
      import org.jboss.arquillian.warp.jsf.Phase;
      
      import org.jboss.arquillian.testng.Arquillian;
      
      @Test(groups = { "integration-tests" })
      @WarpTest
      @RunAsClient
      public class SimpleWarpWebEJBTest extends Arquillian {
      
          @ArquillianResource
          URL contextPath;
      
          @Drone
          WebDriver browser;
      
          @Test
          public void test() {
              Warp
                  .initiate(new Activity() {
                     
                      public void perform() {
                          browser.navigate().to(contextPath + "index.seam");
                      }})
                      
                  .inspect(new Inspection() {
                      private static final long serialVersionUID = 1L;
      
                      @AfterPhase(Phase.RENDER_RESPONSE)
                      public void theActualTest(@ArquillianResource FacesContext facesContext) {
                          // test here
                      }
                  }
              );
          }
      
      }
      
      
      

       

      And the final result - exception:

       

      Tests run: 4, Failures: 3, Errors: 0, Skipped: 1, Time elapsed: 24.984 sec <<< FAILURE!
      arquillianBeforeTest(com.example.test.SimpleWarpWebEJBTest)  Time elapsed: 20.658 sec  <<< FAILURE!
      java.lang.RuntimeException: Unable to instantiate Drone via org.openqa.selenium.htmlunit.HtmlUnitDriver(Capabilities): java.lang.NoSuchMethodError: com.gargoylesoftware.htmlunit.WebClient.getOptions()Lcom/gargoylesoftware/htmlunit/WebClientOptions;
          at org.openqa.selenium.htmlunit.HtmlUnitDriver.createWebClient(HtmlUnitDriver.java:280)
          at org.openqa.selenium.htmlunit.HtmlUnitDriver.<init>(HtmlUnitDriver.java:144)
          at org.openqa.selenium.htmlunit.HtmlUnitDriver.<init>(HtmlUnitDriver.java:201)
          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:525)
          at org.jboss.arquillian.drone.webdriver.factory.SecurityActions.newInstance(SecurityActions.java:142)
          at org.jboss.arquillian.drone.webdriver.factory.HtmlUnitDriverFactory.createInstance(HtmlUnitDriverFactory.java:85)
          at org.jboss.arquillian.drone.webdriver.factory.HtmlUnitDriverFactory.createInstance(HtmlUnitDriverFactory.java:38)
          at org.jboss.arquillian.drone.webdriver.factory.WebDriverFactory.createInstance(WebDriverFactory.java:130)
          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$Sync.innerRun(FutureTask.java:334)
          at java.util.concurrent.FutureTask.run(FutureTask.java:166)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
          at java.lang.Thread.run(Thread.java:722)
      
      arquillianAfterTest(com.example.test.SimpleWarpWebEJBTest)  Time elapsed: 0.007 sec  <<< FAILURE!
      java.lang.NullPointerException: null
          at org.jboss.arquillian.warp.impl.client.commandBus.CommandBusOnClient.executeRemotely(CommandBusOnClient.java:163)
          at org.jboss.arquillian.warp.impl.client.commandBus.CommandServiceOnClient.execute(CommandServiceOnClient.java:38)
          at org.jboss.arquillian.warp.impl.client.commandBus.RemoteSuiteLifecyclePropagation.sendAfter(RemoteSuiteLifecyclePropagation.java:61)
          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:601)
          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.testenricher.cdi.CreationalContextDestroyer.destory(CreationalContextDestroyer.java:44)
          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:601)
          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.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
          at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createAfterContext(ContainerEventController.java:134)
          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:601)
          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:601)
          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:601)
          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:601)
          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.after(EventTestRunnerAdaptor.java:103)
          at org.jboss.arquillian.testng.Arquillian.arquillianAfterTest(Arquillian.java:149)
          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:601)
          at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
          at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
          at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
          at org.testng.internal.Invoker.invokeMethod(Invoker.java:757)
          at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:846)
          at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1170)
          at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
          at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
          at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
          at org.testng.TestRunner.privateRun(TestRunner.java:749)
          at org.testng.TestRunner.run(TestRunner.java:600)
          at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
          at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
          at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
          at org.testng.SuiteRunner.run(SuiteRunner.java:223)
          at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
          at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
          at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
          at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
          at org.testng.TestNG.run(TestNG.java:856)
          at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
          at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:126)
          at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
          at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:117)
          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:601)
          at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
          at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
          at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
          at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
          at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
      
      arquillianAfterClass(com.example.test.SimpleWarpWebEJBTest)  Time elapsed: 4.221 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.webdriver.augmentation.AugmentingEnhancer.canEnhance(AugmentingEnhancer.java:75)
          at org.jboss.arquillian.drone.impl.DroneEnhancer.deenhanceDrone(DroneEnhancer.java:112)
          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:601)
          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:601)
          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.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:601)
          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:601)
          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:601)
          at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
          at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
          at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
          at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
          at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:222)
          at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)
          at org.testng.TestRunner.runWorkers(TestRunner.java:1125)
          at org.testng.TestRunner.privateRun(TestRunner.java:749)
          at org.testng.TestRunner.run(TestRunner.java:600)
          at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
          at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
          at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
          at org.testng.SuiteRunner.run(SuiteRunner.java:223)
          at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
          at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
          at org.testng.TestNG.runSuitesSequentially(TestNG.java:995)
          at org.testng.TestNG.runSuitesLocally(TestNG.java:920)
          at org.testng.TestNG.run(TestNG.java:856)
          at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:77)
          at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeSingleClass(TestNGDirectoryTestSuite.java:126)
          at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:110)
          at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:117)
          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:601)
          at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray2(ReflectionUtils.java:208)
          at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:159)
          at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:87)
          at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
          at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:95)
      

       

       

      What seems suspicious to me in the dependencies - the versions going up and down:

       

      [INFO] |  +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.35.0:test
      [INFO] |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.8:test (version managed from 2.12)
      [INFO] |  |  |  +- org.apache.httpcomponents:httpmime:jar:4.1.2:test (version managed from 4.0.1)
      
      
      

       

      Any help apprecitated. Sometimes I get the same exception in arqullianBeforeTest as in arquillainAfterTest (the NullPointer)

        • 1. Re: Arquillian + Warp exception in arquillianBeforeTest
          Martin Varga Newbie

          Note that I have apache james dependency in my pom - without it, I am getting classNotDef exception for org/apache/james/mime4j/parser/Field. Looks like something is wrong with the dependencies.

          • 2. Re: Arquillian + Warp exception in arquillianBeforeTest
            Lukáš Fryč Master

            Martin Varga wrote:

             

            What seems suspicious to me in the dependencies - the versions going up and down:

             

            1. [INFO] |  +- org.seleniumhq.selenium:selenium-htmlunit-driver:jar:2.35.0:test 
            2. [INFO] |  |  +- net.sourceforge.htmlunit:htmlunit:jar:2.8:test (version managed from 2.12) 
            3. [INFO] |  |  |  +- org.apache.httpcomponents:httpmime:jar:4.1.2:test (version managed from 4.0.1) 

             

            Any help apprecitated. Sometimes I get the same exception in arqullianBeforeTest as in arquillainAfterTest (the NullPointer)

            Your are close to the solution here - make sure you use HtmlUnit 2.12 (which is Selenium 2.35.0 compiled against).

             

            Btw I would prefer PhantomJS instead of HtmlUnit - it will give you more relialable results.

            • 3. Re: Arquillian + Warp exception in arquillianBeforeTest
              Martin Varga Newbie

              This is coming from the arquillian boms. I can remove them all and then add the dependencies myself - but I thought the whole point of the boms was to prevent this Also I am not using HtmlUnit because I want to, it was added by drone dependency chain: org.jboss.arquillian.extension:arquillian-drone-webdriver-depchain:pom:1.2.0.Final:test

               

              I think I only need drone to invoke the first request to the page. So how can I set it up to make this work? There's not much documentation and this example is basically the jsf test from your GitHub with the stuff I already had for my seam tests.

              • 4. Re: Arquillian + Warp exception in arquillianBeforeTest
                Martin Varga Newbie

                After I included the problematic dependencies with correct versions directly to pom, I am only getting the following exception in both arquillianBeforeTest and arquillianAfterTest. I also added the firefox browser setting to arquillian.xml, because the test was failing with some cyberneko iframe issue.


                <extension qualifier="webdriver">
                <property name="remoteAddress">http://10.3.8.104:14380/test</property>
                <property name="browser">firefox</property>
                </extension>
                
                


                By looking at the code of CommandBusOnClient it looks like null result was returned while trying to access something (why and what in beforeTest and afterTest?). Before I start to debug it, any ideas what can be wrong?

                 

                java.lang.NullPointerException
                    at org.jboss.arquillian.warp.impl.client.commandBus.CommandBusOnClient.executeRemotely(CommandBusOnClient.java:163)
                    at org.jboss.arquillian.warp.impl.client.commandBus.CommandServiceOnClient.execute(CommandServiceOnClient.java:38)
                    at org.jboss.arquillian.warp.impl.client.commandBus.RemoteSuiteLifecyclePropagation.sendBefore(RemoteSuiteLifecyclePropagation.java:55)
                ...
                
                
                

                 

                EDIT: This is from the class CommandBusOnClient

                 

                CommandPayload result = execute(eventUrlForPut, CommandPayload.class, payload);
                
                if (result.getThrowable() != null) {
                
                    Rethrow.asUnchecked(result.getThrowable());
                
                }
                

                 

                The execute method can return null. So I guess I just need to find out why is the result null. Nevertheless, a null check with an error message would be handy.

                • 5. Re: Arquillian + Warp exception in arquillianBeforeTest
                  Martin Varga Newbie

                  So what happens here is a 404 is encountered in CommandBusOnClient.execute(). It returns null result and that's why it fails with NullPointerException.

                   

                  But the main problem is that CommandBusOnClient.locateCommandEventBusURI(HTTPContext context) doesn't count with the fact there can be more than one servlet context root in the archive. Which is exactly my case, because I am using an existing EAR - testing a real applicaiton with plenty of servlets with different context roots.

                   

                  If the code encounters number of servlet context roots different from 1, it assembles the URL:

                   

                  hostname:port/CommandBusOnServer.COMMAND_EVENT_BUS_MAPPING?classname...

                   

                  but it should be:

                   

                  hostname:port/test/CommandBusOnServer.COMMAND_EVENT_BUS_MAPPING?classname...

                   

                  The code should instead look for the servlet context root of the ArquillianTestRunner.

                  • 6. Re: Re: Arquillian + Warp exception in arquillianBeforeTest
                    Colm Roy Newbie

                    I am working with Martin on this. In order to get it running, we applied a work around in CommandBusOnClient.java as follows:

                    if (contextRoots.size() == 1) {
                        try {
                        URI baseURI = context.getServlets().get(0).getBaseURI();
                        String path = baseURI.getPath();
                        if (path.endsWith("/")) {
                        path = path.substring(0, path.length() - 1);
                        }
                        path = path + CommandBusOnServer.COMMAND_EVENT_BUS_MAPPING;
                        return new URI("http", null, baseURI.getHost(), baseURI.getPort(), path, null, null);
                        } catch (URISyntaxException e) {
                        throw new RuntimeException("Could not convert Servlet to URL, " + context.getServlets().get(0), e);
                        }
                        } else if (contextRoots.size() > 4) { // <--- temp hack here : Handle the multiple applications - need this as it will fail with NPE otherwise
                        try {
                        URI baseURI = context.getServlets().get(0).getBaseURI();
                        String path = "/test"; //baseURI.getPath();
                        if (path.endsWith("/")) {
                        path = path.substring(0, path.length() - 1);
                        }
                        path = path + CommandBusOnServer.COMMAND_EVENT_BUS_MAPPING;
                        return new URI("http", null, baseURI.getHost(), baseURI.getPort(), path, null, null);
                        } catch (URISyntaxException e) {
                        throw new RuntimeException("Could not convert Servlet to URL, " + context.getServlets().get(0), e);
                        }
                        } else {
                        try {
                        return new URI("http", null, context.getHost(), context.getPort(),
                        CommandBusOnServer.COMMAND_EVENT_BUS_MAPPING, null, null);
                        } catch (URISyntaxException e) {
                        throw new RuntimeException("Could not convert HTTPContext to URL, " + context, e);
                        }
                        }
                    
                    
                    

                    The problem now is the methods in the inspection part are not being executed.

                    @Test
                    public void test() {
                        System.out.println("Before Test...." + contextPath);
                        Warp
                        .initiate(new Activity() {
                      
                        public void perform() {
                        String resource1 = contextPath + "/test/index.seam";           
                          System.out.println("Navigating to " + resource1);
                          browser.navigate().to(resource1);
                        }})
                      
                        .inspect(new Inspection() {
                        private static final long serialVersionUID = 1L;
                    
                        @AfterPhase(Phase.RESTORE_VIEW)
                        public void beforeServlet() {
                          System.out.println("###!!! beforeServlet");
                        }
                      
                        @BeforePhase(Phase.RENDER_RESPONSE)
                        public void beforePhase() {
                          System.out.println("###!!! Before phase");                                  
                        }
                      
                        @AfterPhase(Phase.RENDER_RESPONSE)
                        public void theActualTest(@ArquillianResource FacesContext facesContext) {  
                              // why is nothing entering here ??
                        }  
                      }
                    System.out.println("After Test ...");
                    );
                    
                    
                    

                    And the output of the maven test run looks like this

                     

                     

                    Configuring TestNG with: TestNGMapConfigurator
                    
                    INFO  17-10 14:59:50,896 [org.xnio.Xnio.<clinit>():63] XNIO Version 3.0.3.GA
                    
                    INFO  17-10 14:59:50,946 [org.xnio.nio.NioXnio.<clinit>():55] XNIO NIO Implementation Version 3.0.3.GA
                    
                    INFO  17-10 14:59:51,016 [org.jboss.remoting3.EndpointImpl.<clinit>():70] JBoss Remoting version 3.2.3.GA
                    
                    DEBUG 17-10 14:59:51,076 [org.xnio.nio.WorkerThread.run():88] Started channel thread 'Remoting "management-client" read-1', selector sun.nio.ch.EPollSelectorImpl@558620f5
                    
                    DEBUG 17-10 14:59:51,081 [org.xnio.nio.WorkerThread.run():88] Started channel thread 'Remoting "management-client" write-1', selector sun.nio.ch.EPollSelectorImpl@225a8897
                    
                    13:59:52,015 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
                    
                    13:59:52,824 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
                    
                    13:59:52,966 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
                    
                    13:59:57,530 INFO  [org.xnio] XNIO Version 3.0.3.GA
                    
                    13:59:57,535 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
                    
                    13:59:57,551 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
                    
                    13:59:57,587 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
                    
                    13:59:57,674 INFO  [org.jboss.as.configadmin] JBAS016200: Activating ConfigAdmin Subsystem
                    
                    13:59:57,659 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
                    
                    DEBUG 17-10 15:00:57,983 [org.xnio.nio.WorkerThread.run():88] Started channel thread 'Remoting "endpoint" read-1', selector sun.nio.ch.EPollSelectorImpl@23a1d5f0
                    
                    DEBUG 17-10 15:00:57,992 [org.xnio.nio.WorkerThread.run():88] Started channel thread 'Remoting "endpoint" write-1', selector sun.nio.ch.EPollSelectorImpl@79681a61
                    
                    INFO  17-10 15:01:00,202 [org.littleshoot.proxy.DefaultHttpProxyServer.start():324] Starting proxy on port: 18080
                    
                    DEBUG 17-10 15:01:00,211 [org.littleshoot.proxy.HttpServerPipelineFactory.<init>():101] Creating server with handshake handler: null
                    
                    DEBUG 17-10 15:01:06,778 [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection():221] Get connection: HttpRoute[{}->http://127.0.0.1:7055], timeout = 120000
                    
                    DEBUG 17-10 15:01:06,781 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking():350] [HttpRoute[{}->http://127.0.0.1:7055]] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
                    
                    DEBUG 17-10 15:01:06,782 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getFreeEntry():523] No free connections [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:06,782 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking():369] Available capacity: 2000 out of 2000 [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:06,783 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.createEntry():549] Creating new connection [HttpRoute[{}->http://127.0.0.1:7055]]
                    
                    DEBUG 17-10 15:01:06,810 [org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection():145] Connecting to 127.0.0.1:7055
                    
                    DEBUG 17-10 15:01:06,867 [org.apache.http.client.protocol.RequestAddCookies.process():132] CookieSpec selected: best-match
                    
                    DEBUG 17-10 15:01:06,895 [org.apache.http.client.protocol.RequestAuthCache.process():75] Auth cache not set in the context
                    
                    DEBUG 17-10 15:01:06,896 [org.apache.http.impl.client.DefaultRequestDirector.tryExecute():643] Attempt 1 to execute request
                    
                    DEBUG 17-10 15:01:06,896 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():264] Sending request: POST /hub/session HTTP/1.1
                    
                    DEBUG 17-10 15:01:06,900 [org.apache.http.impl.conn.Wire.wire():63] >> "POST /hub/session HTTP/1.1[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,905 [org.apache.http.impl.conn.Wire.wire():63] >> "Accept: application/json, image/png[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,906 [org.apache.http.impl.conn.Wire.wire():63] >> "Content-Type: application/json; charset=utf-8[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,906 [org.apache.http.impl.conn.Wire.wire():63] >> "Content-Length: 221[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,907 [org.apache.http.impl.conn.Wire.wire():63] >> "Host: 127.0.0.1:7055[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,907 [org.apache.http.impl.conn.Wire.wire():63] >> "Connection: Keep-Alive[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,909 [org.apache.http.impl.conn.Wire.wire():63] >> "[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,909 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():268] >> POST /hub/session HTTP/1.1
                    
                    DEBUG 17-10 15:01:06,910 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Accept: application/json, image/png
                    
                    DEBUG 17-10 15:01:06,911 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Content-Type: application/json; charset=utf-8
                    
                    DEBUG 17-10 15:01:06,911 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Content-Length: 221
                    
                    DEBUG 17-10 15:01:06,912 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Host: 127.0.0.1:7055
                    
                    DEBUG 17-10 15:01:06,913 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Connection: Keep-Alive
                    
                    DEBUG 17-10 15:01:06,914 [org.apache.http.impl.conn.Wire.wire():77] >> "{"desiredCapabilities":{"loggingPrefs":{"profiling":"INFO","driver":"INFO"},"platform":"ANY","browserName":"firefox","webdriver.firefox.profile":"selenium","webStorageEnabled":true,"version":""},"requiredCapabilities":{}}"
                    
                    DEBUG 17-10 15:01:06,984 [org.apache.http.impl.conn.Wire.wire():63] << "HTTP/1.1 200 OK[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,990 [org.apache.http.impl.conn.Wire.wire():63] << "content-type: application/json; charset=UTF-8[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,991 [org.apache.http.impl.conn.Wire.wire():63] << "connection: close[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,991 [org.apache.http.impl.conn.Wire.wire():63] << "content-length: 421[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,992 [org.apache.http.impl.conn.Wire.wire():63] << "server: httpd.js[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,992 [org.apache.http.impl.conn.Wire.wire():63] << "date: Thu, 17 Oct 2013 14:01:06 GMT[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,993 [org.apache.http.impl.conn.Wire.wire():63] << "[\r][\n]"
                    
                    DEBUG 17-10 15:01:06,996 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():249] Receiving response: HTTP/1.1 200 OK
                    
                    DEBUG 17-10 15:01:06,996 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():252] << HTTP/1.1 200 OK
                    
                    DEBUG 17-10 15:01:06,997 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << content-type: application/json; charset=UTF-8
                    
                    DEBUG 17-10 15:01:06,997 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << connection: close
                    
                    DEBUG 17-10 15:01:06,998 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << content-length: 421
                    
                    DEBUG 17-10 15:01:06,999 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << server: httpd.js
                    
                    DEBUG 17-10 15:01:06,999 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << date: Thu, 17 Oct 2013 14:01:06 GMT
                    
                    DEBUG 17-10 15:01:07,014 [org.apache.http.impl.conn.Wire.wire():77] << "{"name":"newSession","sessionId":"8698d75e-5989-4284-9070-99d798831019","status":0,"value":{"cssSelectorsEnabled":true,"browserName":"firefox","handlesAlerts":true,"javascriptEnabled":true,"nativeEvents":false,"platform":"Linux","rotatable":false,"takesScreenshot":true,"version":"10.0.5","webStorageEnabled":true,"applicationCacheEnabled":true,"databaseEnabled":true,"locationContextEnabled":true,"acceptSslCerts":true}}"
                    
                    DEBUG 17-10 15:01:07,015 [org.apache.http.impl.conn.DefaultClientConnection.shutdown():152] Connection shut down
                    
                    DEBUG 17-10 15:01:07,016 [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection():272] Released connection is not reusable.
                    
                    DEBUG 17-10 15:01:07,016 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.freeEntry():434] Releasing connection [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:07,017 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.notifyWaitingThread():679] Notifying no-one, there are no waiting threads
                    
                    Before Test....http://10.0.21.62:18080
                    
                    Navigating to http://10.0.21.62:18080/test/index.seam
                    
                    DEBUG 17-10 15:01:07,131 [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection():221] Get connection: HttpRoute[{}->http://127.0.0.1:7055], timeout = 120000
                    
                    DEBUG 17-10 15:01:07,133 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking():350] [HttpRoute[{}->http://127.0.0.1:7055]] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
                    
                    DEBUG 17-10 15:01:07,135 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getFreeEntry():523] No free connections [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:07,137 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking():369] Available capacity: 2000 out of 2000 [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:07,140 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.createEntry():549] Creating new connection [HttpRoute[{}->http://127.0.0.1:7055]]
                    
                    DEBUG 17-10 15:01:07,142 [org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection():145] Connecting to 127.0.0.1:7055
                    
                    DEBUG 17-10 15:01:07,144 [org.apache.http.client.protocol.RequestAddCookies.process():132] CookieSpec selected: best-match
                    
                    DEBUG 17-10 15:01:07,161 [org.apache.http.client.protocol.RequestAuthCache.process():75] Auth cache not set in the context
                    
                    DEBUG 17-10 15:01:07,162 [org.apache.http.impl.client.DefaultRequestDirector.tryExecute():643] Attempt 1 to execute request
                    
                    DEBUG 17-10 15:01:07,165 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():264] Sending request: POST /hub/session/8698d75e-5989-4284-9070-99d798831019/url HTTP/1.1
                    
                    DEBUG 17-10 15:01:07,168 [org.apache.http.impl.conn.Wire.wire():63] >> "POST /hub/session/8698d75e-5989-4284-9070-99d798831019/url HTTP/1.1[\r][\n]"
                    
                    DEBUG 17-10 15:01:07,170 [org.apache.http.impl.conn.Wire.wire():63] >> "Accept: application/json, image/png[\r][\n]"
                    
                    DEBUG 17-10 15:01:07,171 [org.apache.http.impl.conn.Wire.wire():63] >> "Content-Type: application/json; charset=utf-8[\r][\n]"
                    
                    DEBUG 17-10 15:01:07,172 [org.apache.http.impl.conn.Wire.wire():63] >> "Content-Length: 49[\r][\n]"
                    
                    DEBUG 17-10 15:01:07,173 [org.apache.http.impl.conn.Wire.wire():63] >> "Host: 127.0.0.1:7055[\r][\n]"
                    
                    DEBUG 17-10 15:01:07,175 [org.apache.http.impl.conn.Wire.wire():63] >> "Connection: Keep-Alive[\r][\n]"
                    
                    DEBUG 17-10 15:01:07,176 [org.apache.http.impl.conn.Wire.wire():63] >> "[\r][\n]"
                    
                    DEBUG 17-10 15:01:07,177 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():268] >> POST /hub/session/8698d75e-5989-4284-9070-99d798831019/url HTTP/1.1
                    
                    DEBUG 17-10 15:01:07,179 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Accept: application/json, image/png
                    
                    DEBUG 17-10 15:01:07,180 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Content-Type: application/json; charset=utf-8
                    
                    DEBUG 17-10 15:01:07,181 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Content-Length: 49
                    
                    DEBUG 17-10 15:01:07,182 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Host: 127.0.0.1:7055
                    
                    DEBUG 17-10 15:01:07,183 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Connection: Keep-Alive
                    
                    DEBUG 17-10 15:01:07,184 [org.apache.http.impl.conn.Wire.wire():77] >> "{"url":"http://10.0.21.62:18080/test/index.seam"}"
                    
                    DEBUG 17-10 15:01:07,230 [org.littleshoot.proxy.HttpServerPipelineFactory.getPipeline():142] Accessing pipeline
                    
                    INFO  17-10 15:01:07,344 [org.littleshoot.proxy.HttpRequestHandler.<init>():212] Creating new request handler...
                    
                    DEBUG 17-10 15:01:07,409 [org.littleshoot.proxy.HttpRequestHandler.channelOpen():754] New channel opened: [id: 0xb447a5c1, /10.0.21.62:38548 => /10.0.21.62:18080]
                    
                    DEBUG 17-10 15:01:07,409 [org.littleshoot.proxy.HttpRequestHandler.channelOpen():757] Now 1 browser to proxy channels...
                    
                    DEBUG 17-10 15:01:07,410 [org.littleshoot.proxy.HttpRequestHandler.channelOpen():759] Now this class has 1 browser to proxy channels...
                    
                    DEBUG 17-10 15:01:07,457 [org.littleshoot.proxy.HttpRequestHandler.messageReceived():274] Received 1 total messages
                    
                    DEBUG 17-10 15:01:07,460 [org.littleshoot.proxy.HttpRequestHandler.processRequest():369] Got request: DefaultHttpRequest(chunked: false)
                    
                    GET /test/index.seam HTTP/1.1
                    
                    Host: 10.0.21.62:18080
                    
                    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5
                    
                    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
                    
                    Accept-Language: en-us,en;q=0.5
                    
                    Accept-Encoding: gzip, deflate
                    
                    Connection: keep-alive on channel: [id: 0xb447a5c1, /10.0.21.62:38548 => /10.0.21.62:18080]
                    
                    DEBUG 17-10 15:01:07,462 [org.littleshoot.proxy.HttpRequestHandler.processRequest():457] Establishing new connection
                    
                    DEBUG 17-10 15:01:07,468 [org.littleshoot.proxy.HttpRequestHandler.newChannelFuture():722] Starting new connection to: 127.0.0.1:19916
                    
                    DEBUG 17-10 15:01:07,469 [org.littleshoot.proxy.DefaultRelayPipelineFactory.getPipeline():88] Querying for host and port: 127.0.0.1:19916
                    
                    DEBUG 17-10 15:01:07,469 [org.littleshoot.proxy.DefaultRelayPipelineFactory.getPipeline():101] Using filter: org.jboss.arquillian.warp.impl.client.proxy.DefaultProxyService$7@698114b1
                    
                    DEBUG 17-10 15:01:07,474 [org.littleshoot.proxy.DefaultRelayPipelineFactory.getPipeline():112] Filtering: true
                    
                    INFO  17-10 15:01:07,474 [org.littleshoot.proxy.DefaultRelayPipelineFactory.getPipeline():122] Creating relay handler with filter
                    
                    DEBUG 17-10 15:01:07,523 [org.littleshoot.proxy.HttpRelayingHandler.channelOpen():471] New channel opened from proxy to web: [id: 0xa68e2916]
                    
                    DEBUG 17-10 15:01:07,531 [org.littleshoot.proxy.HttpRelayingHandler.channelConnected():338] CHANNEL CONNECTED!!
                    
                    DEBUG 17-10 15:01:07,532 [org.littleshoot.proxy.HttpRequestHandler$1LocalChannelFutureListener.operationComplete():486] Connected successfully to: [id: 0xa68e2916, /127.0.0.1:37432 => /127.0.0.1:19916]
                    
                    DEBUG 17-10 15:01:07,533 [org.littleshoot.proxy.HttpRequestHandler$1LocalChannelFutureListener.operationComplete():487] Writing message on channel...
                    
                    DEBUG 17-10 15:01:07,831 [org.littleshoot.proxy.HttpRequestHandler$1LocalChannelFutureListener$1.operationComplete():493] Finished write: org.jboss.netty.channel.DefaultChannelFuture@26bef3ab to: GET /test/index.seam
                    
                    DEBUG 17-10 15:01:07,834 [org.littleshoot.proxy.HttpRequestHandler$1LocalChannelFutureListener$1.operationComplete():498] Channel is readable: true
                    
                    DEBUG 17-10 15:01:08,690 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():133] Received raw response: DefaultHttpResponse(chunked: false)
                    
                    HTTP/1.1 200 OK
                    
                    Server: Apache-Coyote/1.1
                    
                    X-Arq-Enrichment-Response: 2629940843487249190
                    
                    X-Powered-By: JSF/2.0
                    
                    Set-Cookie: JSESSIONID=Yx6rQV0miWt2x0ivmRAxfju1.main; Path=/test
                    
                    Content-Type: text/html;charset=UTF-8
                    
                    Content-Length: 248
                    
                    Date: Thu, 17 Oct 2013 14:01:07 GMT
                    
                    DEBUG 17-10 15:01:08,785 [org.littleshoot.proxy.HttpRelayingHandler.shouldCloseRemoteConnection():463] Not closing -- response probably keep alive for:
                    
                    DefaultHttpResponse(chunked: false)
                    
                    HTTP/1.1 200 OK
                    
                    Content-Length: 248
                    
                    Content-Type: text/html;charset=UTF-8
                    
                    Date: Thu, 17 Oct 2013 14:01:07 GMT
                    
                    Server: Apache-Coyote/1.1
                    
                    Set-Cookie: JSESSIONID=Yx6rQV0miWt2x0ivmRAxfju1.main; Path=/test
                    
                    X-Arq-Enrichment-Response: 2629940843487249190
                    
                    X-Powered-By: JSF/2.0
                    
                    DEBUG 17-10 15:01:08,785 [org.littleshoot.proxy.HttpRelayingHandler.shouldCloseBrowserConnection():405] Not closing browser/client to proxy connection for request: DefaultHttpRequest(chunked: false)
                    
                    GET /test/index.seam HTTP/1.1
                    
                    Host: 10.0.21.62:18080
                    
                    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5
                    
                    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
                    
                    Accept-Language: en-us,en;q=0.5
                    
                    Accept-Encoding: gzip, deflate
                    
                    Connection: keep-alive
                    
                    X-Arq-Enrichment-Request: 2629940843487249190
                    
                    DEBUG 17-10 15:01:08,792 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():255] Notifying request handler of completed response.
                    
                    INFO  17-10 15:01:08,795 [org.littleshoot.proxy.HttpRequestHandler.onRelayHttpResponse():865] Not closing browser to proxy channel. Still awaiting 0 responses...receivedChannelClosed=false
                    
                    DEBUG 17-10 15:01:08,796 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():299] Making remote channel available for requests
                    
                    DEBUG 17-10 15:01:08,798 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():326] Finished processing message
                    
                    DEBUG 17-10 15:01:08,948 [org.littleshoot.proxy.HttpRequestHandler.messageReceived():274] Received 2 total messages
                    
                    DEBUG 17-10 15:01:08,950 [org.littleshoot.proxy.HttpRequestHandler.processRequest():369] Got request: DefaultHttpRequest(chunked: false)
                    
                    GET /favicon.ico HTTP/1.1
                    
                    Host: 10.0.21.62:18080
                    
                    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5
                    
                    Accept: image/png,image/*;q=0.8,*/*;q=0.5
                    
                    Accept-Language: en-us,en;q=0.5
                    
                    Accept-Encoding: gzip, deflate
                    
                    Connection: keep-alive on channel: [id: 0xb447a5c1, /10.0.21.62:38548 => /10.0.21.62:18080]
                    
                    DEBUG 17-10 15:01:08,950 [org.littleshoot.proxy.HttpRequestHandler.processRequest():434] Using existing connection...
                    
                    DEBUG 17-10 15:01:08,951 [org.apache.http.impl.conn.Wire.wire():63] << "HTTP/1.1 200 OK[\r][\n]"
                    
                    DEBUG 17-10 15:01:08,953 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():133] Received raw response: DefaultHttpResponse(chunked: false)
                    
                    HTTP/1.1 404 Not Found
                    
                    Server: Apache-Coyote/1.1
                    
                    Content-Length: 0
                    
                    Date: Thu, 17 Oct 2013 14:01:08 GMT
                    
                    DEBUG 17-10 15:01:08,954 [org.apache.http.impl.conn.Wire.wire():63] << "content-type: application/json; charset=UTF-8[\r][\n]"
                    
                    DEBUG 17-10 15:01:08,956 [org.apache.http.impl.conn.Wire.wire():63] << "connection: close[\r][\n]"
                    
                    DEBUG 17-10 15:01:08,957 [org.apache.http.impl.conn.Wire.wire():63] << "content-length: 87[\r][\n]"
                    
                    DEBUG 17-10 15:01:08,958 [org.apache.http.impl.conn.Wire.wire():63] << "server: httpd.js[\r][\n]"
                    
                    DEBUG 17-10 15:01:08,955 [org.littleshoot.proxy.HttpRelayingHandler.shouldCloseRemoteConnection():463] Not closing -- response probably keep alive for:
                    
                    DefaultHttpResponse(chunked: false)
                    
                    HTTP/1.1 404 Not Found
                    
                    Content-Length: 0
                    
                    Date: Thu, 17 Oct 2013 14:01:08 GMT
                    
                    Server: Apache-Coyote/1.1
                    
                    DEBUG 17-10 15:01:08,960 [org.littleshoot.proxy.HttpRelayingHandler.shouldCloseBrowserConnection():405] Not closing browser/client to proxy connection for request: DefaultHttpRequest(chunked: false)
                    
                    GET /favicon.ico HTTP/1.1
                    
                    Host: 10.0.21.62:18080
                    
                    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5
                    
                    Accept: image/png,image/*;q=0.8,*/*;q=0.5
                    
                    Accept-Language: en-us,en;q=0.5
                    
                    Accept-Encoding: gzip, deflate
                    
                    Connection: keep-alive
                    
                    DEBUG 17-10 15:01:08,960 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():255] Notifying request handler of completed response.
                    
                    DEBUG 17-10 15:01:08,961 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():299] Making remote channel available for requests
                    
                    DEBUG 17-10 15:01:08,962 [org.apache.http.impl.conn.Wire.wire():63] << "date: Thu, 17 Oct 2013 14:01:08 GMT[\r][\n]"
                    
                    INFO  17-10 15:01:08,962 [org.littleshoot.proxy.HttpRequestHandler.onRelayHttpResponse():865] Not closing browser to proxy channel. Still awaiting 0 responses...receivedChannelClosed=false
                    
                    DEBUG 17-10 15:01:08,962 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():326] Finished processing message
                    
                    DEBUG 17-10 15:01:08,963 [org.apache.http.impl.conn.Wire.wire():63] << "[\r][\n]"
                    
                    DEBUG 17-10 15:01:08,966 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():249] Receiving response: HTTP/1.1 200 OK
                    
                    DEBUG 17-10 15:01:08,967 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():252] << HTTP/1.1 200 OK
                    
                    DEBUG 17-10 15:01:08,968 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << content-type: application/json; charset=UTF-8
                    
                    DEBUG 17-10 15:01:08,969 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << connection: close
                    
                    DEBUG 17-10 15:01:08,972 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << content-length: 87
                    
                    DEBUG 17-10 15:01:08,973 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << server: httpd.js
                    
                    DEBUG 17-10 15:01:08,975 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << date: Thu, 17 Oct 2013 14:01:08 GMT
                    
                    DEBUG 17-10 15:01:08,976 [org.apache.http.impl.conn.Wire.wire():77] << "{"name":"get","sessionId":"8698d75e-5989-4284-9070-99d798831019","status":0,"value":""}"
                    
                    DEBUG 17-10 15:01:08,978 [org.apache.http.impl.conn.DefaultClientConnection.shutdown():152] Connection shut down
                    
                    DEBUG 17-10 15:01:08,979 [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection():272] Released connection is not reusable.
                    
                    DEBUG 17-10 15:01:08,980 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.freeEntry():434] Releasing connection [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:08,982 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.notifyWaitingThread():679] Notifying no-one, there are no waiting threads
                    
                    Navigating to http://10.0.21.62:18080/nothing.here
                    
                    DEBUG 17-10 15:01:08,984 [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection():221] Get connection: HttpRoute[{}->http://127.0.0.1:7055], timeout = 120000
                    
                    DEBUG 17-10 15:01:08,986 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking():350] [HttpRoute[{}->http://127.0.0.1:7055]] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
                    
                    DEBUG 17-10 15:01:08,987 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getFreeEntry():523] No free connections [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:08,988 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking():369] Available capacity: 2000 out of 2000 [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:08,989 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.createEntry():549] Creating new connection [HttpRoute[{}->http://127.0.0.1:7055]]
                    
                    DEBUG 17-10 15:01:08,990 [org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection():145] Connecting to 127.0.0.1:7055
                    
                    DEBUG 17-10 15:01:08,992 [org.apache.http.client.protocol.RequestAddCookies.process():132] CookieSpec selected: best-match
                    
                    DEBUG 17-10 15:01:08,994 [org.apache.http.client.protocol.RequestAuthCache.process():75] Auth cache not set in the context
                    
                    DEBUG 17-10 15:01:08,995 [org.apache.http.impl.client.DefaultRequestDirector.tryExecute():643] Attempt 1 to execute request
                    
                    DEBUG 17-10 15:01:08,996 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():264] Sending request: POST /hub/session/8698d75e-5989-4284-9070-99d798831019/url HTTP/1.1
                    
                    DEBUG 17-10 15:01:08,998 [org.apache.http.impl.conn.Wire.wire():63] >> "POST /hub/session/8698d75e-5989-4284-9070-99d798831019/url HTTP/1.1[\r][\n]"
                    
                    DEBUG 17-10 15:01:08,999 [org.apache.http.impl.conn.Wire.wire():63] >> "Accept: application/json, image/png[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,001 [org.apache.http.impl.conn.Wire.wire():63] >> "Content-Type: application/json; charset=utf-8[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,002 [org.apache.http.impl.conn.Wire.wire():63] >> "Content-Length: 46[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,003 [org.apache.http.impl.conn.Wire.wire():63] >> "Host: 127.0.0.1:7055[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,004 [org.apache.http.impl.conn.Wire.wire():63] >> "Connection: Keep-Alive[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,005 [org.apache.http.impl.conn.Wire.wire():63] >> "[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,007 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():268] >> POST /hub/session/8698d75e-5989-4284-9070-99d798831019/url HTTP/1.1
                    
                    DEBUG 17-10 15:01:09,008 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Accept: application/json, image/png
                    
                    DEBUG 17-10 15:01:09,009 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Content-Type: application/json; charset=utf-8
                    
                    DEBUG 17-10 15:01:09,010 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Content-Length: 46
                    
                    DEBUG 17-10 15:01:09,011 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Host: 127.0.0.1:7055
                    
                    DEBUG 17-10 15:01:09,012 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Connection: Keep-Alive
                    
                    DEBUG 17-10 15:01:09,014 [org.apache.http.impl.conn.Wire.wire():77] >> "{"url":"http://10.0.21.62:18080/nothing.here"}"
                    
                    DEBUG 17-10 15:01:09,037 [org.littleshoot.proxy.HttpRequestHandler.messageReceived():274] Received 3 total messages
                    
                    DEBUG 17-10 15:01:09,038 [org.littleshoot.proxy.HttpRequestHandler.processRequest():369] Got request: DefaultHttpRequest(chunked: false)
                    
                    GET /favicon.ico HTTP/1.1
                    
                    Host: 10.0.21.62:18080
                    
                    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5
                    
                    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
                    
                    Accept-Language: en-us,en;q=0.5
                    
                    Accept-Encoding: gzip, deflate
                    
                    Connection: keep-alive on channel: [id: 0xb447a5c1, /10.0.21.62:38548 => /10.0.21.62:18080]
                    
                    DEBUG 17-10 15:01:09,039 [org.littleshoot.proxy.HttpRequestHandler.processRequest():434] Using existing connection...
                    
                    DEBUG 17-10 15:01:09,041 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():133] Received raw response: DefaultHttpResponse(chunked: false)
                    
                    HTTP/1.1 404 Not Found
                    
                    Server: Apache-Coyote/1.1
                    
                    Content-Length: 0
                    
                    Date: Thu, 17 Oct 2013 14:01:08 GMT
                    
                    DEBUG 17-10 15:01:09,042 [org.littleshoot.proxy.HttpRelayingHandler.shouldCloseRemoteConnection():463] Not closing -- response probably keep alive for:
                    
                    DefaultHttpResponse(chunked: false)
                    
                    HTTP/1.1 404 Not Found
                    
                    Content-Length: 0
                    
                    Date: Thu, 17 Oct 2013 14:01:08 GMT
                    
                    Server: Apache-Coyote/1.1
                    
                    DEBUG 17-10 15:01:09,043 [org.littleshoot.proxy.HttpRelayingHandler.shouldCloseBrowserConnection():405] Not closing browser/client to proxy connection for request: DefaultHttpRequest(chunked: false)
                    
                    GET /favicon.ico HTTP/1.1
                    
                    Host: 10.0.21.62:18080
                    
                    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5
                    
                    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
                    
                    Accept-Language: en-us,en;q=0.5
                    
                    Accept-Encoding: gzip, deflate
                    
                    Connection: keep-alive
                    
                    DEBUG 17-10 15:01:09,043 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():255] Notifying request handler of completed response.
                    
                    DEBUG 17-10 15:01:09,044 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():299] Making remote channel available for requests
                    
                    DEBUG 17-10 15:01:09,044 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():326] Finished processing message
                    
                    INFO  17-10 15:01:09,045 [org.littleshoot.proxy.HttpRequestHandler.onRelayHttpResponse():865] Not closing browser to proxy channel. Still awaiting 0 responses...receivedChannelClosed=false
                    
                    DEBUG 17-10 15:01:09,109 [org.littleshoot.proxy.HttpRequestHandler.messageReceived():274] Received 4 total messages
                    
                    DEBUG 17-10 15:01:09,109 [org.littleshoot.proxy.HttpRequestHandler.processRequest():369] Got request: DefaultHttpRequest(chunked: false)
                    
                    GET /nothing.here HTTP/1.1
                    
                    Host: 10.0.21.62:18080
                    
                    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5
                    
                    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
                    
                    Accept-Language: en-us,en;q=0.5
                    
                    Accept-Encoding: gzip, deflate
                    
                    Connection: keep-alive on channel: [id: 0xb447a5c1, /10.0.21.62:38548 => /10.0.21.62:18080]
                    
                    DEBUG 17-10 15:01:09,110 [org.littleshoot.proxy.HttpRequestHandler.processRequest():434] Using existing connection...
                    
                    DEBUG 17-10 15:01:09,112 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():133] Received raw response: DefaultHttpResponse(chunked: false)
                    
                    HTTP/1.1 404 Not Found
                    
                    Server: Apache-Coyote/1.1
                    
                    Content-Length: 0
                    
                    Date: Thu, 17 Oct 2013 14:01:08 GMT
                    
                    DEBUG 17-10 15:01:09,114 [org.littleshoot.proxy.HttpRelayingHandler.shouldCloseRemoteConnection():463] Not closing -- response probably keep alive for:
                    
                    DefaultHttpResponse(chunked: false)
                    
                    HTTP/1.1 404 Not Found
                    
                    Content-Length: 0
                    
                    Date: Thu, 17 Oct 2013 14:01:08 GMT
                    
                    Server: Apache-Coyote/1.1
                    
                    DEBUG 17-10 15:01:09,115 [org.littleshoot.proxy.HttpRelayingHandler.shouldCloseBrowserConnection():405] Not closing browser/client to proxy connection for request: DefaultHttpRequest(chunked: false)
                    
                    GET /nothing.here HTTP/1.1
                    
                    Host: 10.0.21.62:18080
                    
                    User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.5) Gecko/20120601 Firefox/10.0.5
                    
                    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
                    
                    Accept-Language: en-us,en;q=0.5
                    
                    Accept-Encoding: gzip, deflate
                    
                    Connection: keep-alive
                    
                    DEBUG 17-10 15:01:09,116 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():255] Notifying request handler of completed response.
                    
                    INFO  17-10 15:01:09,117 [org.littleshoot.proxy.HttpRequestHandler.onRelayHttpResponse():865] Not closing browser to proxy channel. Still awaiting 0 responses...receivedChannelClosed=false
                    
                    DEBUG 17-10 15:01:09,117 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():299] Making remote channel available for requests
                    
                    DEBUG 17-10 15:01:09,118 [org.littleshoot.proxy.HttpRelayingHandler.messageReceived():326] Finished processing message
                    
                    DEBUG 17-10 15:01:09,366 [org.apache.http.impl.conn.Wire.wire():63] << "HTTP/1.1 200 OK[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,367 [org.apache.http.impl.conn.Wire.wire():63] << "content-type: application/json; charset=UTF-8[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,367 [org.apache.http.impl.conn.Wire.wire():63] << "connection: close[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,368 [org.apache.http.impl.conn.Wire.wire():63] << "content-length: 87[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,369 [org.apache.http.impl.conn.Wire.wire():63] << "server: httpd.js[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,369 [org.apache.http.impl.conn.Wire.wire():63] << "date: Thu, 17 Oct 2013 14:01:09 GMT[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,370 [org.apache.http.impl.conn.Wire.wire():63] << "[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,370 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():249] Receiving response: HTTP/1.1 200 OK
                    
                    DEBUG 17-10 15:01:09,371 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():252] << HTTP/1.1 200 OK
                    
                    DEBUG 17-10 15:01:09,371 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << content-type: application/json; charset=UTF-8
                    
                    DEBUG 17-10 15:01:09,372 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << connection: close
                    
                    DEBUG 17-10 15:01:09,373 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << content-length: 87
                    
                    DEBUG 17-10 15:01:09,374 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << server: httpd.js
                    
                    DEBUG 17-10 15:01:09,375 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << date: Thu, 17 Oct 2013 14:01:09 GMT
                    
                    DEBUG 17-10 15:01:09,376 [org.apache.http.impl.conn.Wire.wire():77] << "{"name":"get","sessionId":"8698d75e-5989-4284-9070-99d798831019","status":0,"value":""}"
                    
                    DEBUG 17-10 15:01:09,377 [org.apache.http.impl.conn.DefaultClientConnection.shutdown():152] Connection shut down
                    
                    DEBUG 17-10 15:01:09,377 [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection():272] Released connection is not reusable.
                    
                    DEBUG 17-10 15:01:09,378 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.freeEntry():434] Releasing connection [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:09,379 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.notifyWaitingThread():679] Notifying no-one, there are no waiting threads
                    
                    After Test....
                    
                    DEBUG 17-10 15:01:09,410 [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection():221] Get connection: HttpRoute[{}->http://127.0.0.1:7055], timeout = 120000
                    
                    DEBUG 17-10 15:01:09,411 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking():350] [HttpRoute[{}->http://127.0.0.1:7055]] total kept alive: 0, total issued: 0, total allocated: 0 out of 2000
                    
                    DEBUG 17-10 15:01:09,412 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getFreeEntry():523] No free connections [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:09,412 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking():369] Available capacity: 2000 out of 2000 [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:09,413 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.createEntry():549] Creating new connection [HttpRoute[{}->http://127.0.0.1:7055]]
                    
                    DEBUG 17-10 15:01:09,414 [org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection():145] Connecting to 127.0.0.1:7055
                    
                    DEBUG 17-10 15:01:09,414 [org.apache.http.client.protocol.RequestAddCookies.process():132] CookieSpec selected: best-match
                    
                    DEBUG 17-10 15:01:09,415 [org.apache.http.client.protocol.RequestAuthCache.process():75] Auth cache not set in the context
                    
                    DEBUG 17-10 15:01:09,416 [org.apache.http.impl.client.DefaultRequestDirector.tryExecute():643] Attempt 1 to execute request
                    
                    DEBUG 17-10 15:01:09,417 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():264] Sending request: DELETE /hub/session/8698d75e-5989-4284-9070-99d798831019 HTTP/1.1
                    
                    DEBUG 17-10 15:01:09,417 [org.apache.http.impl.conn.Wire.wire():63] >> "DELETE /hub/session/8698d75e-5989-4284-9070-99d798831019 HTTP/1.1[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,418 [org.apache.http.impl.conn.Wire.wire():63] >> "Accept: application/json, image/png[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,418 [org.apache.http.impl.conn.Wire.wire():63] >> "Host: 127.0.0.1:7055[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,419 [org.apache.http.impl.conn.Wire.wire():63] >> "Connection: Keep-Alive[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,420 [org.apache.http.impl.conn.Wire.wire():63] >> "[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,420 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():268] >> DELETE /hub/session/8698d75e-5989-4284-9070-99d798831019 HTTP/1.1
                    
                    DEBUG 17-10 15:01:09,420 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Accept: application/json, image/png
                    
                    DEBUG 17-10 15:01:09,421 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Host: 127.0.0.1:7055
                    
                    DEBUG 17-10 15:01:09,421 [org.apache.http.impl.conn.DefaultClientConnection.sendRequestHeader():271] >> Connection: Keep-Alive
                    
                    DEBUG 17-10 15:01:09,426 [org.apache.http.impl.conn.Wire.wire():63] << "HTTP/1.1 200 OK[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,426 [org.apache.http.impl.conn.Wire.wire():63] << "content-type: application/json; charset=UTF-8[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,427 [org.apache.http.impl.conn.Wire.wire():63] << "connection: close[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,427 [org.apache.http.impl.conn.Wire.wire():63] << "content-length: 88[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,428 [org.apache.http.impl.conn.Wire.wire():63] << "server: httpd.js[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,428 [org.apache.http.impl.conn.Wire.wire():63] << "date: Thu, 17 Oct 2013 14:01:09 GMT[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,429 [org.apache.http.impl.conn.Wire.wire():63] << "[\r][\n]"
                    
                    DEBUG 17-10 15:01:09,429 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():249] Receiving response: HTTP/1.1 200 OK
                    
                    DEBUG 17-10 15:01:09,430 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():252] << HTTP/1.1 200 OK
                    
                    DEBUG 17-10 15:01:09,430 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << content-type: application/json; charset=UTF-8
                    
                    DEBUG 17-10 15:01:09,430 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << connection: close
                    
                    DEBUG 17-10 15:01:09,431 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << content-length: 88
                    
                    DEBUG 17-10 15:01:09,431 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << server: httpd.js
                    
                    DEBUG 17-10 15:01:09,432 [org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader():255] << date: Thu, 17 Oct 2013 14:01:09 GMT
                    
                    DEBUG 17-10 15:01:09,432 [org.apache.http.impl.conn.Wire.wire():77] << "{"name":"quit","sessionId":"8698d75e-5989-4284-9070-99d798831019","status":0,"value":""}"
                    
                    DEBUG 17-10 15:01:09,433 [org.apache.http.impl.conn.DefaultClientConnection.shutdown():152] Connection shut down
                    
                    DEBUG 17-10 15:01:09,433 [org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager.releaseConnection():272] Released connection is not reusable.
                    
                    DEBUG 17-10 15:01:09,433 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.freeEntry():434] Releasing connection [HttpRoute[{}->http://127.0.0.1:7055]][null]
                    
                    DEBUG 17-10 15:01:09,434 [org.apache.http.impl.conn.tsccm.ConnPoolByRoute.notifyWaitingThread():679] Notifying no-one, there are no waiting threads
                    
                    DEBUG 17-10 15:01:09,460 [org.littleshoot.proxy.HttpRequestHandler.channelClosed():771] Channel closed: [id: 0xb447a5c1, /10.0.21.62:38548 :> /10.0.21.62:18080]
                    
                    DEBUG 17-10 15:01:09,460 [org.littleshoot.proxy.HttpRequestHandler.channelClosed():775] Now 0 total browser to proxy channels...
                    
                    DEBUG 17-10 15:01:09,460 [org.littleshoot.proxy.HttpRequestHandler.channelClosed():777] Now this class has 0 browser to proxy channels...
                    
                    DEBUG 17-10 15:01:09,460 [org.littleshoot.proxy.HttpRequestHandler.channelClosed():783] Closing all proxy to web channels for this browser to proxy connection!!!
                    
                    DEBUG 17-10 15:01:09,461 [org.littleshoot.proxy.HttpRequestHandler.channelClosed():788] Closing future...
                    
                    DEBUG 17-10 15:01:09,467 [org.littleshoot.proxy.HttpRelayingHandler.channelClosed():480] Got closed event on proxy -> web connection: [id: 0xa68e2916, /127.0.0.1:37432 :> /127.0.0.1:19916]
                    
                    DEBUG 17-10 15:01:09,467 [org.littleshoot.proxy.HttpRelayingHandler.channelClosed():487] Unanswered requests: 0
                    
                    DEBUG 17-10 15:01:09,468 [org.littleshoot.proxy.HttpRequestHandler.onRelayChannelClose():809] this.receivedChannelClosed: true
                    
                    DEBUG 17-10 15:01:09,468 [org.littleshoot.proxy.HttpRequestHandler.onRelayChannelClose():826] Closing browser to proxy channel
                    
                    DEBUG 17-10 15:01:09,468 [org.littleshoot.proxy.ProxyUtils.closeOnFlush():345] Closing on flush: [id: 0xb447a5c1, /10.0.21.62:38548 :> /10.0.21.62:18080]
                    
                    INFO  17-10 15:01:16,249 [org.littleshoot.proxy.DefaultHttpProxyServer.stop():374] Shutting down proxy
                    
                    INFO  17-10 15:01:16,250 [org.littleshoot.proxy.DefaultHttpProxyServer.stop():381] Closing all channels...
                    
                    INFO  17-10 15:01:16,276 [org.littleshoot.proxy.DefaultHttpProxyServer.stop():397] Stopping timer
                    
                    INFO  17-10 15:01:16,295 [org.littleshoot.proxy.DefaultHttpProxyServer.stop():402] Done shutting down proxy
                    
                    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 88.06 sec
                    
                    INFO  17-10 15:01:16,480 [org.littleshoot.proxy.DefaultHttpProxyServer.stop():374] Shutting down proxy
                    
                    INFO  17-10 15:01:16,482 [org.littleshoot.proxy.DefaultHttpProxyServer.stop():376] Already stopped
                    
                    Results :
                    
                    Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
                    
                    [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
                    
                    [INFO]
                    
                    [INFO] --- maven-failsafe-plugin:2.14.1:verify (arq) @ common-ejb3 ---
                    
                    [INFO] Failsafe report directory: /localhome/userabc/tmp/FW-trunk.build.x86_64/_build/core/OAM/common-ejb3/failsafe-reports
                    
                    [WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
                    
                    [INFO] ------------------------------------------------------------------------
                    
                    [INFO] BUILD SUCCESS
                    
                    [INFO] ------------------------------------------------------------------------
                    
                    [INFO] Total time: 3:43.742s
                    
                    [INFO] Finished at: Thu Oct 17 15:01:16 IST 2013
                    
                    [INFO] Final Memory: 52M/418M
                    
                    [INFO] ------------------------------------------------------------------------
                    
                    
                    
                    

                    Any ideas why the inspection methods are not executing ?

                    • 7. Re: Re: Re: Arquillian + Warp exception in arquillianBeforeTest
                      Martin Varga Newbie
                      @BeforePhase(Phase.APPLY_REQUEST_VALUES)
                      public void thismustberun() {
                          System.out.println("###!!! Before APPLY_REQUEST_VALUES");
                      }
                      
                      @AfterPhase(Phase.APPLY_REQUEST_VALUES)
                      public void thismustberuntoo() {
                          System.out.println("###!!! After APPLY_REQUEST_VALUES");
                      }
                      
                      

                       

                      When I add this, I get the following exception:

                       

                      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 35.361 sec <<< FAILURE!
                      test(com.example.test.SimpleWarpWebEJBTest)  Time elapsed: 0.742 sec  <<< FAILURE!
                      org.jboss.arquillian.warp.impl.client.verification.InspectionMethodWasNotInvokedException: Lifecycle test declared on public void com.example.test.SimpleWarpWebEJBTest$1.thismustberun() with qualifiers [@org.jboss.arquillian.warp.jsf.BeforePhase(value=APPLY_REQUEST_VALUES)] was not executed
                          at org.jboss.arquillian.warp.impl.client.verification.ResponsePayloadVerifier.verifyAllLifecycleTestsExecuted(ResponsePayloadVerifier.java:74)
                          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:601)
                          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.warp.impl.client.execution.DefaultResponseDeenrichmentService.deenrichResponse(DefaultResponseDeenrichmentService.java:86)
                          at org.jboss.arquillian.warp.impl.client.execution.EnrichmentObserver.deenrichResponse(EnrichmentObserver.java:98)
                          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:601)
                          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.warp.impl.client.execution.EnrichmentObserver.tryDeenrichResponse(EnrichmentObserver.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:601)
                          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.warp.impl.client.execution.DefaultResponseDeenrichmentFilter.filterResponse(DefaultResponseDeenrichmentFilter.java:55)
                          at org.jboss.arquillian.warp.impl.client.proxy.DefaultProxyService$4.performInContext(DefaultProxyService.java:124)
                          at org.jboss.arquillian.warp.impl.client.proxy.DefaultProxyService$4.performInContext(DefaultProxyService.java:121)
                          at org.jboss.arquillian.warp.impl.client.context.operation.Contextualizer$2.performInContext(Contextualizer.java:54)
                          at org.jboss.arquillian.warp.impl.client.proxy.DefaultProxyService$7.filterResponse(DefaultProxyService.java:149)
                          at org.littleshoot.proxy.HttpRelayingHandler.messageReceived(HttpRelayingHandler.java:190)
                          at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
                          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
                          at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
                          at org.jboss.netty.channel.SimpleChannelHandler.messageReceived(SimpleChannelHandler.java:142)
                          at org.jboss.netty.channel.SimpleChannelHandler.handleUpstream(SimpleChannelHandler.java:88)
                          at org.jboss.netty.handler.timeout.IdleStateAwareChannelHandler.handleUpstream(IdleStateAwareChannelHandler.java:36)
                          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
                          at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
                          at org.jboss.netty.handler.timeout.IdleStateHandler.messageReceived(IdleStateHandler.java:294)
                          at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
                          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
                          at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
                          at org.jboss.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:148)
                          at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
                          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
                          at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
                          at org.jboss.netty.handler.codec.http.HttpContentDecoder.messageReceived(HttpContentDecoder.java:108)
                          at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
                          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
                          at org.jboss.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
                          at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
                          at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:459)
                          at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:536)
                          at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:435)
                          at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
                          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
                          at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
                          at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
                          at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
                          at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
                          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:107)
                          at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
                          at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:88)
                          at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
                          at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
                          at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
                          at java.lang.Thread.run(Thread.java:722)
                      
                      
                      • 8. Re: Arquillian + Warp exception in arquillianBeforeTest
                        Wolfgang Knauf Master

                        Five years later, I run into the same error message - but using WildFly 15. Does anybody have any hints on the reasons for this?

                         

                        I can post a full maven sample.

                         

                        Best regards

                         

                        Wolfgang

                        • 9. Re: Arquillian + Warp exception in arquillianBeforeTest
                          Wolfgang Knauf Master

                          I found the reason why the "InspectionMethodWasNotInvokedException" was thrown in my situation, with the help of the Arquillian Warp unit tests.

                          It happened because my test case was the first request to the JSF page (without any other request). After this, I filled some form fields and performed a "submit" click:

                           

                          Warp
                          .initiate(new Activity() {
                            @Override
                            public void perform() {
                               
                               browser.navigate().to(deploymentUrl.toExternalForm() + "mypage.faces");
                               
                               ...write values to some form elements...
                               
                               WebElement btn = browser.findElement(By.id("myInputForm:submitButton"));
                              btn.click();
                            }
                            .inspect(new Inspection() {
                               private static final long serialVersionUID = 1L;
                          
                              @AfterPhase(Phase.INVOKE_APPLICATION)
                              public void afterInvokeApplication() {
                                 System.out.println("afterInvokeApplication");
                              } 
                            });

                          The "afterInvokeApplication" phase method caused the exception.

                           

                          To make it work, I had to split the two calls:

                          First call the start page:

                          Warp
                          .initiate(new Activity() {
                            @Override
                            public void perform() {
                               
                               browser.navigate().to(deploymentUrl.toExternalForm() + "mypage.faces");
                            }
                            .inspect(new Inspection() {
                               private static final long serialVersionUID = 1L;
                               
                              //No relevant methods here, but the Inspection seems to be required...
                            });

                          Next, submit the form:

                          Warp
                          .initiate(new Activity() {
                            @Override
                            public void perform() {
                               
                               ...write values to some form elements...
                               
                               WebElement btn = browser.findElement(By.id("myInputForm:submitButton"));
                              btn.click();
                            }
                            .inspect(new Inspection() {
                               private static final long serialVersionUID = 1L;
                          
                              @AfterPhase(Phase.INVOKE_APPLICATION)
                              public void afterInvokeApplication() {
                                 System.out.println("afterInvokeApplication");
                              } 
                            });

                          Magically, it works now ;-).

                           

                          My theory is that in my first snippet, two JSF requests are made, and the Inspection seems to be triggered for the first request. At this stage, the JSF page is initialized, but as there is no invocation of a JSF method, some phases are not passed through. Only the phases Phase.RENDER_RESPONSE and Phase.RESTORE_VIEW are possible here. The second request to the JSF page is not handled by the inspection.

                           

                          Wolfgang