Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TransactionProviderNotFoundException for client side tests #14

Closed
papegaaij opened this issue Apr 6, 2017 · 18 comments · Fixed by #15
Closed

TransactionProviderNotFoundException for client side tests #14

papegaaij opened this issue Apr 6, 2017 · 18 comments · Fixed by #15

Comments

@papegaaij
Copy link
Contributor

Issue Overview

Client side tests throw the exception below. TransactionProviderProducer:52 seems suspicious. It returns true for client side tests.

<details>
org.jboss.arquillian.transaction.impl.lifecycle.TransactionProviderNotFoundException: Transaction provider for given test case has not been found.
	at org.jboss.arquillian.transaction.impl.lifecycle.TransactionProviderProducer.registerTransactionProvider(TransactionProviderProducer.java:44)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
	at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:85)
	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createContext(ContainerEventController.java:142)
	at org.jboss.arquillian.container.test.impl.client.ContainerEventController.createBeforeContext(ContainerEventController.java:124)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:92)
	at org.jboss.arquillian.test.impl.TestContextHandler.createTestContext(TestContextHandler.java:130)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:92)
	at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:92)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:92)
	at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:73)
	at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:96)
	at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:92)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:143)
	at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
	at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:108)
	at org.jboss.arquillian.spock.ArquillianInterceptor.interceptFeatureMethod(ArquillianInterceptor.java:88)
	at org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:40)
	at org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:87)
	at org.jboss.arquillian.spock.ArquillianSputnik.run(ArquillianSputnik.java:135)
	at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
</details>
@bartoszmajsak
Copy link
Member

bartoszmajsak commented Apr 6, 2017

Thanks for the report. Can you provide your runtime details and version of libraries you are using? Also a test which is failing would be great to look at.

@papegaaij
Copy link
Contributor Author

Do you need anything specific? This arquillian build is quite complex, combining spock with graphene and cube. Below is my dependency tree. The test that is failing is a client side selenium test with graphene.

[INFO] --- maven-dependency-plugin:3.0.0:tree (default-cli) @ keyhub-rest ---
[INFO] nl.topicus.keyhub:keyhub-rest:war:10.0-SNAPSHOT
[INFO] +- com.sun.mail:javax.mail:jar:1.5.5:provided
[INFO] |  \- javax.activation:activation:jar:1.1.1:provided
[INFO] +- org.hibernate:hibernate-core:jar:5.0.10.Final:provided
[INFO] |  \- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:provided
[INFO] +- org.infinispan:infinispan-core:jar:8.2.4.Final:provided
[INFO] |  +- org.infinispan:infinispan-commons:jar:8.2.4.Final:provided
[INFO] |  +- org.jgroups:jgroups:jar:3.6.10.Final:provided
[INFO] |  \- org.jboss.logging:jboss-logging:jar:3.3.1.Final:compile
[INFO] +- org.jboss.resteasy:resteasy-jaxrs:jar:3.0.19.Final:provided
[INFO] |  \- commons-io:commons-io:jar:2.5:provided
[INFO] +- org.jboss.resteasy:resteasy-multipart-provider:jar:3.0.19.Final:provided
[INFO] |  +- org.jboss.resteasy:resteasy-client:jar:3.0.19.Final:provided
[INFO] |  \- org.jboss.resteasy:resteasy-jaxb-provider:jar:3.0.19.Final:provided
[INFO] +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.spec.javax.el:jboss-el-api_3.0_spec:jar:1.0.7.Final:provided
[INFO] +- org.jboss.spec.javax.enterprise.concurrent:jboss-concurrency-api_1.0_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:jar:1.0.0.Final:provided
[INFO] +- org.jboss.weld:weld-api:jar:2.3.SP2:provided
[INFO] |  +- javax.inject:javax.inject:jar:1:provided
[INFO] |  \- javax.enterprise:cdi-api:jar:1.2:provided
[INFO] +- org.wildfly:wildfly-clustering-singleton-api:jar:10.1.0.Final:provided
[INFO] |  +- org.wildfly:wildfly-clustering-api:jar:10.1.0.Final:provided
[INFO] |  \- org.wildfly:wildfly-clustering-service:jar:10.1.0.Final:provided
[INFO] |     \- org.jboss.msc:jboss-msc:jar:1.2.6.Final:provided
[INFO] +- com.google.gcm:gcm-server:jar:1.0.0:compile
[INFO] |  \- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] +- com.notnoop.apns:apns:jar:1.0.0.Beta6:compile
[INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] |  |  \- commons-codec:commons-codec:jar:1.10:compile
[INFO] |  +- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.8.7:compile
[INFO] |     +- com.fasterxml.jackson.core:jackson-annotations:jar:2.8.7:compile
[INFO] |     \- com.fasterxml.jackson.core:jackson-core:jar:2.8.7:compile
[INFO] +- com.unboundid:unboundid-ldapsdk:jar:3.2.0:compile
[INFO] +- nl.topicus.cobra:cobra-rest-authenticator:jar:2017.3-SNAPSHOT:compile
[INFO] |  +- nl.topicus.cobra:cobra-rest-security:jar:2017.3-SNAPSHOT:compile
[INFO] |  |  +- com.nimbusds:nimbus-jose-jwt:jar:4.34.2:compile
[INFO] |  |  |  \- net.minidev:json-smart:jar:1.3.1:compile
[INFO] |  |  +- nl.topicus.cobra:cobra-rest-service:jar:2017.3-SNAPSHOT:compile
[INFO] |  |  |  \- org.pac4j:pac4j-oauth:jar:1.9.6:compile
[INFO] |  |  |     \- com.github.scribejava:scribejava-apis:jar:2.5.3:compile
[INFO] |  |  |        \- com.github.scribejava:scribejava-core:jar:2.5.3:compile
[INFO] |  |  \- org.jboss.resteasy:resteasy-oauth:jar:3.0.19.Final:compile
[INFO] |  |     \- net.oauth.core:oauth-provider:jar:20100527:compile
[INFO] |  |        \- net.oauth.core:oauth:jar:20100527:compile
[INFO] |  \- org.pac4j:pac4j-oidc:jar:1.9.6:compile
[INFO] |     \- com.nimbusds:oauth2-oidc-sdk:jar:5.24.1:compile
[INFO] |        +- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] |        \- com.nimbusds:lang-tag:jar:1.4.3:compile
[INFO] +- nl.topicus.cobra:cobra-rest-shiro-security:jar:2017.3-SNAPSHOT:compile
[INFO] |  +- org.apache.shiro:shiro-core:jar:1.3.2:compile
[INFO] |  |  \- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] |  \- org.apache.shiro:shiro-web:jar:1.3.2:compile
[INFO] +- nl.topicus.keyhub:keyhub-common:jar:10.0-SNAPSHOT:compile
[INFO] |  +- com.ibm.icu:icu4j:jar:58.2:compile
[INFO] |  \- nl.topicus.cobra:cobra-rest-common:jar:2017.3-SNAPSHOT:compile
[INFO] +- nl.topicus.keyhub:keyhub-dao:ejb:10.0-SNAPSHOT:compile
[INFO] |  +- com.maxmind.geoip2:geoip2:jar:2.7.0:compile
[INFO] |  |  \- com.maxmind.db:maxmind-db:jar:1.2.1:compile
[INFO] |  +- nl.topicus.cobra:cobra-commons:jar:2017.3-SNAPSHOT:compile
[INFO] |  |  +- nl.topicus.onderwijs.parent:onderwijs-parent-depsets-lib-jar:pom:2017.3.0:compile
[INFO] |  |  |  \- com.google.code.findbugs:annotations:jar:3.0.1u2:compile
[INFO] |  |  \- org.danekja:jdk-serializable-functional:jar:1.8.2:compile
[INFO] |  +- nl.topicus.cobra:cobra-jpa-dao:jar:2017.3-SNAPSHOT:compile
[INFO] |  |  +- nl.topicus.cobra:cobra-jpa-entities:jar:2017.3-SNAPSHOT:compile
[INFO] |  |  \- org.antlr:antlr4-runtime:jar:4.6:compile
[INFO] |  +- nl.topicus.cobra:cobra-jpa-update:jar:2017.3-SNAPSHOT:compile
[INFO] |  |  \- org.liquibase.ext:liquibase-hibernate5:jar:3.6:compile
[INFO] |  +- nl.topicus.keyhub:keyhub-entities:jar:10.0-SNAPSHOT:compile
[INFO] |  \- org.liquibase:liquibase-core:jar:3.5.3:compile
[INFO] +- nl.topicus.keyhub:keyhub-service-contract:jar:20-SNAPSHOT:compile
[INFO] |  \- nl.topicus.cobra:cobra-rest-contract:jar:28:compile
[INFO] |     \- nl.topicus.cobra:cobra-rest-contract-spi:jar:3:compile
[INFO] +- org.bouncycastle:bcprov-jdk15on:jar:1.56:compile
[INFO] +- org.freemarker:freemarker:jar:2.3.26-incubating:compile
[INFO] +- org.jboss.aerogear:aerogear-otp-java:jar:1.0.0:compile
[INFO] +- org.jsoup:jsoup:jar:1.10.2:compile
[INFO] +- nl.topicus.cobra:cobra-jpa-entity-generation:jar:2017.3-SNAPSHOT:test
[INFO] |  \- nl.topicus.cobra:cobra-arquillian-common:jar:2017.3-SNAPSHOT:test
[INFO] +- nl.topicus.keyhub:keyhub-versioning:ejb:10.0-SNAPSHOT:test
[INFO] |  +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.8.7:compile
[INFO] |  |  +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.8.7:compile
[INFO] |  |  \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.8.7:compile
[INFO] |  +- ma.glasnost.orika:orika-core:jar:1.5.0-topicus4:compile
[INFO] |  |  +- com.thoughtworks.paranamer:paranamer:jar:2.8:compile
[INFO] |  |  +- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4.2:compile
[INFO] |  |  \- com.carrotsearch:java-sizeof:jar:0.0.5:compile
[INFO] |  +- ma.glasnost.orika:orika-eclipse-tools:jar:1.5.0-topicus4:compile
[INFO] |  |  +- org.eclipse.tycho:org.eclipse.jdt.core:jar:3.12.2.v20161117-1814:compile
[INFO] |  |  \- org.eclipse.text:org.eclipse.text:jar:3.5.101:compile
[INFO] |  |     +- org.eclipse.core:org.eclipse.core.commands:jar:3.6.0:compile
[INFO] |  |     \- org.eclipse.equinox:org.eclipse.equinox.common:jar:3.6.0.v20100503:compile
[INFO] |  |        \- org.eclipse.osgi:org.eclipse.osgi:jar:3.7.1:compile
[INFO] |  +- nl.topicus.cobra:cobra-rest-marshalling:jar:2017.3-SNAPSHOT:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.8.7:compile
[INFO] |  |  +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.8.7:compile
[INFO] |  |  \- nl.topicus.cobra:cobra-rest-contract-marshalling:jar:2.5:compile
[INFO] |  +- nl.topicus.cobra:cobra-rest-versioning:jar:2017.3-SNAPSHOT:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v8:jar:1.0:test
[INFO] |  |  \- nl.topicus.cobra:cobra-rest-contract-v20:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v9:jar:1.0:test
[INFO] |  |  \- nl.topicus.cobra:cobra-rest-contract-v22:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v10:jar:1.0:test
[INFO] |  |  \- nl.topicus.cobra:cobra-rest-contract-v23:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v11:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v12:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v13:jar:1.0:test
[INFO] |  |  \- nl.topicus.cobra:cobra-rest-contract-v24:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v14:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v15:jar:1.0:test
[INFO] |  |  \- nl.topicus.cobra:cobra-rest-contract-v25:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v16:jar:1.0:test
[INFO] |  |  \- nl.topicus.cobra:cobra-rest-contract-v26:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v17:jar:1.0:test
[INFO] |  +- nl.topicus.keyhub:keyhub-service-contract-v18:jar:1.0:test
[INFO] |  |  \- nl.topicus.cobra:cobra-rest-contract-v27:jar:1.0:test
[INFO] |  \- nl.topicus.keyhub:keyhub-service-contract-v19:jar:1.0:test
[INFO] +- org.arquillian.container:arquillian-container-chameleon:jar:1.0.0.Alpha6:test
[INFO] |  +- org.jboss.arquillian.config:arquillian-config-impl-base:jar:1.1.13.Final:test
[INFO] |  |  +- org.jboss.arquillian.config:arquillian-config-api:jar:1.1.13.Final:test
[INFO] |  |  +- org.jboss.arquillian.core:arquillian-core-api:jar:1.1.13.Final:test
[INFO] |  |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi:jar:2.0.0-alpha-10:test
[INFO] |  +- org.jboss.arquillian.container:arquillian-container-impl-base:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.container:arquillian-container-spi:jar:1.1.13.Final:test
[INFO] |  |  +- org.jboss.shrinkwrap:shrinkwrap-api:jar:1.2.6:test
[INFO] |  |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base:jar:2.0.0-alpha-10:test
[INFO] |  +- org.jboss.arquillian.protocol:arquillian-protocol-servlet:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-ejb:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-resource:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-cdi:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext:jar:1.1.13.Final:test
[INFO] |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.2.6:test
[INFO] |     +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api:jar:2.2.6:test
[INFO] |     +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi:jar:2.2.6:test
[INFO] |     +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.2.6:test
[INFO] |     \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.2.6:test
[INFO] |        +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.2.6:test
[INFO] |        +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.3:test
[INFO] |        |  \- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.3:test
[INFO] |        \- org.codehaus.plexus:plexus-compiler-javac:jar:2.8.1:test
[INFO] |           \- org.codehaus.plexus:plexus-compiler-api:jar:2.8.1:test
[INFO] +- org.arquillian.cube:arquillian-cube-docker:jar:1.0.0:test
[INFO] |  +- org.arquillian.cube:arquillian-cube-api:jar:1.0.0:test
[INFO] |  +- org.arquillian.cube:arquillian-cube-spi:jar:1.0.0:test
[INFO] |  |  \- org.arquillian.reporter:arquillian-core-reporter-api:jar:0.0.2:test
[INFO] |  |     \- org.arquillian.reporter:arquillian-reporter-api:jar:0.0.2:test
[INFO] |  +- org.arquillian.cube:arquillian-cube-core:jar:1.0.0:test
[INFO] |  |  \- org.apache.commons:commons-lang3:jar:3.5:compile
[INFO] |  +- org.jboss.arquillian.core:arquillian-core-spi:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.test:arquillian-test-spi:jar:1.1.13.Final:test
[INFO] |  +- com.github.docker-java:docker-java:jar:3.0.8:test
[INFO] |  |  +- org.glassfish.jersey.connectors:jersey-apache-connector:jar:2.23.1:test
[INFO] |  |  |  \- org.glassfish.jersey.core:jersey-common:jar:2.23.1:test
[INFO] |  |  |     +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.23.1:test
[INFO] |  |  |     \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:test
[INFO] |  |  +- org.apache.httpcomponents:httpcore:jar:4.4.1:compile
[INFO] |  |  +- org.apache.httpcomponents:httpclient:jar:4.5:compile
[INFO] |  |  +- org.glassfish.jersey.core:jersey-client:jar:2.23.1:test
[INFO] |  |  |  +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:test
[INFO] |  |  |  |  +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:test
[INFO] |  |  |  |  \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:test
[INFO] |  |  |  \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:test
[INFO] |  |  +- com.kohlschutter.junixsocket:junixsocket-common:jar:2.0.4:test
[INFO] |  |  +- com.kohlschutter.junixsocket:junixsocket-native-common:jar:2.0.4:test
[INFO] |  |  |  \- org.scijava:native-lib-loader:jar:2.0.2:test
[INFO] |  |  +- org.bouncycastle:bcpkix-jdk15on:jar:1.56:compile
[INFO] |  |  +- io.netty:netty-codec-http:jar:4.1.3.Final:test
[INFO] |  |  |  \- io.netty:netty-codec:jar:4.1.3.Final:test
[INFO] |  |  +- io.netty:netty-handler:jar:4.1.3.Final:test
[INFO] |  |  |  +- io.netty:netty-buffer:jar:4.1.3.Final:test
[INFO] |  |  |  \- io.netty:netty-transport:jar:4.1.3.Final:test
[INFO] |  |  |     \- io.netty:netty-resolver:jar:4.1.3.Final:test
[INFO] |  |  +- io.netty:netty-handler-proxy:jar:4.1.3.Final:test
[INFO] |  |  |  \- io.netty:netty-codec-socks:jar:4.1.3.Final:test
[INFO] |  |  \- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.3.Final:test
[INFO] |  |     \- io.netty:netty-common:jar:4.1.3.Final:test
[INFO] |  +- org.yaml:snakeyaml:jar:1.18:compile
[INFO] |  \- commons-lang:commons-lang:jar:2.6:test
[INFO] +- org.arquillian.spacelift:arquillian-spacelift:jar:1.0.0.Alpha8:test
[INFO] |  +- org.arquillian.spacelift:arquillian-spacelift-api:jar:1.0.0.Alpha8:test
[INFO] |  \- org.apache.commons:commons-compress:jar:1.13:test
[INFO] +- org.codehaus.groovy:groovy-all:jar:2.4.10:test
[INFO] +- org.jboss.arquillian.extension:arquillian-transaction-jta:jar:1.0.4:test
[INFO] |  +- org.jboss.arquillian.extension:arquillian-transaction-api:jar:1.0.4:test
[INFO] |  +- org.jboss.arquillian.extension:arquillian-transaction-spi:jar:1.0.4:test
[INFO] |  \- org.jboss.arquillian.extension:arquillian-transaction-impl-base:jar:1.0.4:test
[INFO] +- org.jboss.arquillian.graphene:arquillian-browser-screenshooter:jar:2.2.0:test
[INFO] |  +- org.arquillian.extension:arquillian-recorder-screenshooter-impl-base:jar:1.1.6.Final:test
[INFO] |  |  +- org.arquillian.extension:arquillian-recorder-screenshooter-api:jar:1.1.6.Final:test
[INFO] |  |  |  +- org.arquillian.extension:arquillian-recorder-api:jar:1.1.6.Final:test
[INFO] |  |  |  +- org.arquillian.extension:arquillian-recorder-reporter-api:jar:1.1.6.Final:test
[INFO] |  |  |  |  \- org.eclipse.persistence:org.eclipse.persistence.moxy:jar:2.5.1:test
[INFO] |  |  |  |     +- org.eclipse.persistence:org.eclipse.persistence.core:jar:2.5.1:test
[INFO] |  |  |  |     |  \- org.eclipse.persistence:org.eclipse.persistence.asm:jar:2.5.1:test
[INFO] |  |  |  |     \- org.eclipse.persistence:org.eclipse.persistence.antlr:jar:2.5.1:test
[INFO] |  |  |  \- com.jhlabs:filters:jar:2.0.235:test
[INFO] |  |  \- org.arquillian.extension:arquillian-recorder-reporter-impl:jar:1.1.6.Final:test
[INFO] |  |     +- org.arquillian.extension:arquillian-recorder-reporter-spi:jar:1.1.6.Final:test
[INFO] |  |     \- org.arquillian.extension:arquillian-recorder-video-api:jar:1.1.6.Final:test
[INFO] |  +- org.arquillian.extension:arquillian-recorder-screenshooter-spi:jar:1.1.6.Final:test
[INFO] |  |  \- org.arquillian.extension:arquillian-recorder-spi:jar:1.1.6.Final:test
[INFO] |  \- org.jboss.arquillian.extension:arquillian-drone-webdriver:jar:2.1.0.Alpha2:test
[INFO] |     +- org.jboss.arquillian.extension:arquillian-drone-api:jar:2.1.0.Alpha2:test
[INFO] |     +- org.jboss.arquillian.extension:arquillian-drone-spi:jar:2.1.0.Alpha2:test
[INFO] |     \- org.jboss.arquillian.extension:arquillian-drone-configuration:jar:2.1.0.Alpha2:test
[INFO] +- org.jboss.arquillian.graphene:graphene-webdriver:pom:2.2.0:test
[INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-api:jar:2.2.0:test
[INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-spi:jar:2.2.0:test
[INFO] |  +- org.jboss.arquillian.graphene:graphene-webdriver-impl:jar:2.2.0:test
[INFO] |  |  +- org.jboss.arquillian.extension:arquillian-drone-impl:jar:2.1.0.Alpha2:test
[INFO] |  |  +- cglib:cglib:jar:3.2.5:test
[INFO] |  |  |  \- org.ow2.asm:asm:jar:5.2:test
[INFO] |  |  \- org.objenesis:objenesis:jar:2.5.1:test
[INFO] |  +- org.jboss.arquillian.extension:arquillian-drone-webdriver-depchain:pom:2.1.0.Alpha2:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-api:jar:3.3.1:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-support:jar:3.3.1:test
[INFO] |  |  |  \- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-chrome-driver:jar:3.3.1:test
[INFO] |  |  +- org.seleniumhq.selenium:selenium-opera-driver:jar:3.3.0:test
[INFO] |  |  +- org.jboss.arquillian.extension:arquillian-phantom-driver:jar:1.2.1.1:test
[INFO] |  |  |  \- com.codeborne:phantomjsdriver:jar:1.4.1:test
[INFO] |  |  \- org.seleniumhq.selenium:selenium-edge-driver:jar:3.3.1:test
[INFO] |  \- org.seleniumhq.selenium:selenium-java:jar:3.3.1:test
[INFO] |     \- org.seleniumhq.selenium:selenium-firefox-driver:jar:3.3.1:test
[INFO] +- org.jboss.arquillian.spock:arquillian-spock-container:jar:1.0.0.spock11-topicus1:test
[INFO] |  +- org.jboss.arquillian.spock:arquillian-spock-core:jar:1.0.0.spock11-topicus1:test
[INFO] |  +- org.jboss.arquillian.test:arquillian-test-api:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-api:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-spi:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.core:arquillian-core-impl-base:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.test:arquillian-test-impl-base:jar:1.1.13.Final:test
[INFO] |  +- org.jboss.arquillian.container:arquillian-container-test-impl-base:jar:1.1.13.Final:test
[INFO] |  \- org.jboss.shrinkwrap:shrinkwrap-impl-base:jar:1.2.6:test
[INFO] |     \- org.jboss.shrinkwrap:shrinkwrap-spi:jar:1.2.6:test
[INFO] +- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-javaee:jar:2.0.0-alpha-10:test
[INFO] |  +- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-javaee:jar:2.0.0-alpha-10:test
[INFO] |  \- org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-base:jar:2.0.0-alpha-10:test
[INFO] +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven:jar:2.2.6:test
[INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven:jar:2.2.6:test
[INFO] |  +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven:jar:2.2.6:test
[INFO] |  +- org.eclipse.aether:aether-api:jar:1.0.2.v20150114:test
[INFO] |  +- org.eclipse.aether:aether-impl:jar:1.0.2.v20150114:test
[INFO] |  +- org.eclipse.aether:aether-spi:jar:1.0.2.v20150114:test
[INFO] |  +- org.eclipse.aether:aether-util:jar:1.0.2.v20150114:test
[INFO] |  +- org.eclipse.aether:aether-connector-basic:jar:1.0.2.v20150114:test
[INFO] |  +- org.eclipse.aether:aether-transport-wagon:jar:1.0.2.v20150114:test
[INFO] |  +- org.apache.maven:maven-aether-provider:jar:3.3.9:test
[INFO] |  +- org.apache.maven:maven-model:jar:3.3.9:test
[INFO] |  +- org.apache.maven:maven-model-builder:jar:3.3.9:test
[INFO] |  |  +- org.codehaus.plexus:plexus-component-annotations:jar:1.7.1:test
[INFO] |  |  +- org.apache.maven:maven-artifact:jar:3.3.9:test
[INFO] |  |  \- org.apache.maven:maven-builder-support:jar:3.3.9:test
[INFO] |  +- org.apache.maven:maven-repository-metadata:jar:3.3.9:test
[INFO] |  +- org.apache.maven:maven-settings:jar:3.3.9:test
[INFO] |  +- org.apache.maven:maven-settings-builder:jar:3.3.9:test
[INFO] |  +- com.google.guava:guava:jar:21.0:compile
[INFO] |  +- org.codehaus.plexus:plexus-interpolation:jar:1.24:test
[INFO] |  +- org.codehaus.plexus:plexus-utils:jar:3.0.24:test
[INFO] |  +- org.sonatype.plexus:plexus-sec-dispatcher:jar:1.4:test
[INFO] |  |  \- org.sonatype.plexus:plexus-cipher:jar:1.7:test
[INFO] |  +- org.apache.maven.wagon:wagon-provider-api:jar:2.12:test
[INFO] |  +- org.apache.maven.wagon:wagon-file:jar:2.12:test
[INFO] |  \- org.apache.maven.wagon:wagon-http-lightweight:jar:2.12:test
[INFO] |     \- org.apache.maven.wagon:wagon-http-shared:jar:2.12:test
[INFO] +- org.pac4j:pac4j-saml:jar:1.9.6:test
[INFO] |  +- org.pac4j:pac4j-core:jar:1.9.6:compile
[INFO] |  +- org.opensaml:opensaml-core:jar:3.3.0:test
[INFO] |  |  \- io.dropwizard.metrics:metrics-core:jar:3.2.1:test
[INFO] |  +- net.shibboleth.utilities:java-support:jar:7.3.0:test
[INFO] |  +- org.opensaml:opensaml-saml-api:jar:3.3.0:test
[INFO] |  |  \- org.opensaml:opensaml-storage-api:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-saml-impl:jar:3.3.0:test
[INFO] |  |  \- org.opensaml:opensaml-soap-impl:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-soap-api:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-xmlsec-api:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-security-api:jar:3.3.0:test
[INFO] |  |  \- org.apache.santuario:xmlsec:jar:2.0.8:test
[INFO] |  |     \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:test
[INFO] |  |        \- org.codehaus.woodstox:stax2-api:jar:3.1.4:test
[INFO] |  +- org.opensaml:opensaml-security-impl:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-profile-api:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-profile-impl:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-messaging-api:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-messaging-impl:jar:3.3.0:test
[INFO] |  +- org.opensaml:opensaml-xmlsec-impl:jar:3.3.0:test
[INFO] |  +- org.cryptacular:cryptacular:jar:1.2.0:test
[INFO] |  +- joda-time:joda-time:jar:2.9.9:compile
[INFO] |  +- org.apache.velocity:velocity:jar:1.7:test
[INFO] |  |  \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] |  \- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile
[INFO] +- org.slf4j:jul-to-slf4j:jar:1.7.25:test
[INFO] +- org.slf4j:slf4j-simple:jar:1.7.25:test
[INFO] +- org.spockframework:spock-core:jar:1.1-groovy-2.4-rc-1:test
[INFO] +- ru.yandex.qatools.ashot:ashot:jar:1.5.3:test
[INFO] |  +- org.seleniumhq.selenium:selenium-remote-driver:jar:3.3.1:test
[INFO] |  |  +- org.apache.commons:commons-exec:jar:1.3:test
[INFO] |  |  \- net.java.dev.jna:jna-platform:jar:4.4.0:test
[INFO] |  |     \- net.java.dev.jna:jna:jar:4.4.0:test
[INFO] |  +- com.google.code.gson:gson:jar:2.8.0:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- junit:junit:jar:4.12:test

@bartoszmajsak
Copy link
Member

mvn --version and that's all what I need by now. Thanks again!

@papegaaij
Copy link
Contributor Author

Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_121, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.8.0-46-generic", arch: "amd64", family: "unix"

@papegaaij
Copy link
Contributor Author

For now, I've worked around this issue by registering my own client side 'NoTransactionProvider' with empty implementations for all 3 methods.

@mzellho
Copy link

mzellho commented Jul 20, 2017

I ran into the same problem - is there any update yet? Or some other branch that one could use in the meantime?

Many thanks!

@papegaaij
Copy link
Contributor Author

We are using the following work around:

public class NoTransactionProvider implements TransactionProvider {
   @Override public void beginTransaction(TransactionalTest test) {}
   @Override public void commitTransaction(TransactionalTest test) {}
   @Override public void rollbackTransaction(TransactionalTest test) {}
}

You need to register this TransactionProvider in a LoadableExtension:

public class NoTxWorkAround implements LoadableExtension {
   @Override
   public void register(ExtensionBuilder builder) {
      builder.service(TransactionProvider.class, NoTransactionProvider.class);
   }
}

Register this LoadableExtension via Java's ServiceLoading via a file in your project named
src/test/resources/META-INF/services/org.jboss.arquillian.core.spi.LoadableExtension. Just add a single line in this file with the fully qualified class name of NoTxWorkAround.

@mzellho
Copy link

mzellho commented Jul 20, 2017

@papegaaij : Hey, thanks for sharing, Sir - very kind of you!

@MatousJobanek
Copy link

Hi,
is there any version of the transaction extension that your test case is not failing with?
From the code, it seems that there is really missing an implementation of the TransactionProvider for the client side even though the extension is enabled for the client tests.
So, from my point of view, there are three possible solutions:

  • disable the extension for client tests
  • enable only when an implementation of the TransactionProvider is registered
  • provide some basic implementation of TransactionProvider for the client tests and having the possibility of rewriting it

@rmpestano
Copy link
Contributor

rmpestano commented Jul 25, 2017

Hi guys, I've got the same issue here and the cause, at least in my project, is persistence-extension. If I remove persistence-extension the issue goes away.

I have attached a simple reproducer, a clean package must reproduce the issue, and commenting out persistence should make the test pass.
cdi-crud.zip

@MatousJobanek
Copy link

MatousJobanek commented Jul 27, 2017

Hi @rmpestano, thx for your reproducer. Unfortunately, the problem is still in the transaction project as the persistence-extension brings the transaction as its transitive dependency...

@rmpestano
Copy link
Contributor

Hi guys,

what approach we will take? if you decide the solution, e.g embed the NoTransactionProvider on client extensions like Graphene/Drone I can help with the PR.

IMHO this is a serious bug where we can't have client and in-container tests on the same project without the workaround and I don't want to spread the NoTxWorkAround extension on every project here at the company.

WDYT?

@bartoszmajsak
Copy link
Member

bartoszmajsak commented Aug 2, 2017

Hey @rmpestano,

there is one case when we use txs on the client side, but I doubt this extension is widely used - see here. That said I think the second option proposed by @MatousJobanek. If you are keen to provide a PR that would be awesome. Many thanks!

With this fix we can release a new version instantly.

rmpestano added a commit to rmpestano/arquillian-extension-transaction that referenced this issue Aug 2, 2017
bartoszmajsak pushed a commit that referenced this issue Aug 3, 2017
@bartoszmajsak
Copy link
Member

New version 1.0.5 has been released. Please try it out and let us know if there is anything else we should improve.

@mzellho
Copy link

mzellho commented Aug 4, 2017

@bartoszmajsak I can confirm that - after upgrading to 1.0.5 and rolling back @papegaaij 's workaround - my client side tests are now working fine.

@jenskreidler
Copy link

When upgrading from Java8+wildfly12 to Java11+wildfly15 I ran into this exception around arquillian-persistence.
I've read here, that the TransactionProviderNotFoundException will be void after upgrading arquillian-transactions-impl-base to 1.0.5.

Until now, I included arquillian and the persistence extension by including:

            <dependency>
                <groupId>org.arquillian.universe</groupId>
                <artifactId>arquillian-persistence</artifactId>
                <version>${version.arquillian-persistence}</version>
                <scope>test</scope>
                <type>pom</type>
            </dependency>

The lastest version is 1.2.0.1 here, but this provides arquillian-transaction-impl-base in 1.0.4

Clients the use aquillian by taking the org.arquillian.universe:arquillian-persistence:$VERSION should get an updated pom-project so that the most recent subprojects will be acquired by maven.

[INFO] +- org.arquillian.universe:arquillian-persistence:pom:1.2.0.1:test
[INFO] |  +- org.arquillian.universe:arquillian-core:pom:1.2.0.1:test
[INFO] |  |  +- org.jboss.shrinkwrap:shrinkwrap-depchain:pom:1.2.6:test
[INFO] |  |  \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-depchain:pom:2.2.6:test
[INFO] |  |     +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-api-maven-archive:jar:2.2.6:test
[INFO] |  |     \- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven-archive:jar:2.2.6:test
[INFO] |  |        +- org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-spi-maven-archive:jar:2.2.6:test
[INFO] |  |        +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.0.M1:test
[INFO] |  |        |  \- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.0.M1:test
[INFO] |  |        \- org.codehaus.plexus:plexus-compiler-javac:jar:2.3:test
[INFO] |  |           \- org.codehaus.plexus:plexus-compiler-api:jar:2.3:test
[INFO] |  +- org.arquillian.universe:arquillian-transaction-jta:pom:1.2.0.1:test
[INFO] |  |  +- org.arquillian.universe:arquillian-transaction-core:pom:1.2.0.1:test
[INFO] |  |  |  \- org.jboss.arquillian.extension:arquillian-transaction-impl-base:jar:1.0.4:test
[INFO] |  |  \- org.jboss.arquillian.extension:arquillian-transaction-jta:jar:1.0.4:test
[INFO] |  |     +- org.jboss.arquillian.extension:arquillian-transaction-api:jar:1.0.4:test
[INFO] |  |     \- org.jboss.arquillian.extension:arquillian-transaction-spi:jar:1.0.4:test
[INFO] |  \- org.arquillian.universe:arquillian-persistence-core:pom:1.2.0.1:test
[INFO] |     \- org.jboss.arquillian.extension:arquillian-persistence-dbunit:jar:1.0.0.Alpha7:test
[INFO] |        +- org.jboss.arquillian.extension:arquillian-persistence-api:jar:1.0.0.Alpha7:test
[INFO] |        +- org.jboss.arquillian.extension:arquillian-persistence-spi:jar:1.0.0.Alpha7:test
[INFO] |        +- org.jboss.arquillian.extension:arquillian-persistence-core:jar:1.0.0.Alpha7:test
[INFO] |        +- org.dbunit:dbunit:jar:2.5.3:test
[INFO] |        |  \- org.apache.poi:poi-ooxml:jar:3.14:test
[INFO] |        |     +- org.apache.poi:poi-ooxml-schemas:jar:3.14:test
[INFO] |        |     |  \- org.apache.xmlbeans:xmlbeans:jar:2.6.0:test
[INFO] |        |     |     \- stax:stax-api:jar:1.0.1:test
[INFO] |        |     \- com.github.virtuald:curvesapi:jar:1.03:test
[INFO] |        +- org.yaml:snakeyaml:jar:1.10:test
[INFO] |        +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.2:test
[INFO] |        |  \- org.codehaus.jackson:jackson-core-asl:jar:1.9.2:test
[INFO] |        \- org.apache.poi:poi:jar:3.2-FINAL:test

@bartoszmajsak
Copy link
Member

Thansk @jenskreidler for spotting the problem and detailed report. Much appreciated!

For some reason @dependabot which we are using for automated dependency bumps didn't open PR for this particular version. I just updated universe-bom and released 1.2.0.2. Should be in central tomorrow latest.

@rmpestano
Copy link
Contributor

Hi guys, note that using APE without universe will lead to the same problem, see arquillian/arquillian-extension-persistence#102

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants