Help running arquillian persistence int-tests


#1

Hi guys,
I am trying to run arquillian persistences integration tests but all tests are failing here so I suspect its something on my side.

System info:

Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T08:57:37-03:00)
Maven home: /usr/local/apache-maven-3.3.3
Java version: 1.8.0_72, 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.2.0-34-generic", arch: "amd64", family: "unix"`

Command in parent project:mvn clean install -Pwildfly-managed`

One test output:
[0me[0m09:01:35,620 INFO [org.jboss.as.jpa] (ServerService Thread Pool – 19) JBAS011409: Starting Persistence Unit (phase 1 of 2) Service 'test.war#test’
e[0me[0m09:01:35,628 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool – 19) HHH000204: Processing PersistenceUnitInfo [
name: test
…]
e[0me[0m09:01:35,690 INFO [org.hibernate.Version] (ServerService Thread Pool – 19) HHH000412: Hibernate Core {4.3.5.Final}
e[0me[0m09:01:35,692 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool – 19) HHH000206: hibernate.properties not found
e[0me[0m09:01:35,694 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool – 19) HHH000021: Bytecode provider name : javassist
e[0me[0m09:01:36,000 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) JBAS016002: Processing weld deployment test.war
e[0me[0m09:01:36,051 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.1.0.Final
e[0me[0m09:01:36,210 INFO [org.jboss.weld.deployer] (MSC service thread 1-7) JBAS016005: Starting Services for CDI deployment: test.war
e[0me[0m09:01:36,252 INFO [org.jboss.weld.Version] (MSC service thread 1-7) WELD-000900: 2.1.2 (Final)
e[0me[0m09:01:36,293 INFO [org.jboss.weld.deployer] (MSC service thread 1-13) JBAS016008: Starting weld service for deployment test.war
e[0me[0m09:01:36,446 INFO [org.jboss.as.jpa] (ServerService Thread Pool – 19) JBAS011409: Starting Persistence Unit (phase 2 of 2) Service 'test.war#test’
e[0me[0m09:01:36,508 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool – 19) HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
e[0me[0m09:01:36,876 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool – 19) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
e[0me[33m09:01:36,883 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool – 19) HHH000431: Unable to determine H2 database version, certain features may not work
e[0me[0m09:01:36,994 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool – 19) HHH000397: Using ASTQueryTranslatorFactory
e[0me[0m09:01:37,275 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 19) HHH000227: Running hbm2ddl schema export
e[0me[31m09:01:37,280 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 19) HHH000389: Unsuccessful: alter table useraccount_address drop constraint FK_80q4nlyj2ded4gxtvwx9k3olg if exists
e[0me[31m09:01:37,280 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 19) Table “USERACCOUNT_ADDRESS” not found; SQL statement:
alter table useraccount_address drop constraint FK_80q4nlyj2ded4gxtvwx9k3olg if exists [42102-173]
e[0me[31m09:01:37,280 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 19) HHH000389: Unsuccessful: alter table useraccount_address drop constraint FK_rq3x0wdde5lsu11isdvmu9or4 if exists
e[0me[31m09:01:37,281 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 19) Table “USERACCOUNT_ADDRESS” not found; SQL statement:
alter table useraccount_address drop constraint FK_rq3x0wdde5lsu11isdvmu9or4 if exists [42102-173]
e[0me[31m09:01:37,282 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 19) HHH000389: Unsuccessful: drop sequence hibernate_sequence
e[0me[31m09:01:37,282 ERROR [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 19) Sequence “HIBERNATE_SEQUENCE” not found; SQL statement:
drop sequence hibernate_sequence [90036-173]
e[0me[0m09:01:37,291 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 19) HHH000230: Schema export complete
e[0me[0m09:01:38,505 INFO [org.wildfly.extension.undertow] (MSC service thread 1-6) JBAS017534: Registered web context: /test
e[0me[0m09:01:38,703 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS018559: Deployed “test.war” (runtime-name : “test.war”)
e[0me[0m09:01:40,325 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017535: Unregistered web context: /test
e[0me[0m09:01:40,337 INFO [org.jboss.as.jpa] (ServerService Thread Pool – 18) JBAS011410: Stopping Persistence Unit (phase 2 of 2) Service 'test.war#test’
e[0me[0m09:01:40,338 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 18) HHH000227: Running hbm2ddl schema export
e[0me[0m09:01:40,344 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool – 18) HHH000230: Schema export complete
e[0me[0m09:01:40,346 INFO [org.jboss.weld.deployer] (MSC service thread 1-10) JBAS016009: Stopping weld service for deployment test.war
e[0me[0m09:01:40,369 INFO [org.jboss.as.jpa] (ServerService Thread Pool – 18) JBAS011410: Stopping Persistence Unit (phase 1 of 2) Service 'test.war#test’
e[0me[0m09:01:40,395 INFO [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015877: Stopped deployment test.war (runtime-name: test.war) in 77ms
e[0me[0m09:01:40,525 INFO [org.jboss.as.repository] (management-handler-thread - 2) JBAS014901: Content removed from location /home/pestano/projects/arquillian/arquillian-extension-persistence/int-tests/target/wildfly-8.1.0.Final/standalone/data/content/12/994a427080423b02e38db85587076699dc870e/content
e[0me[0m09:01:40,526 INFO [org.jboss.as.server] (management-handler-thread - 2) JBAS018558: Undeployed “test.war” (runtime-name: “test.war”)
e[0mTests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 16.745 sec <<< FAILURE! - in org.jboss.arquillian.integration.persistence.example.DatabaseConnectionVerificationTest
should_be_able_to_verify_database_state_using_custom_where_clause(org.jboss.arquillian.integration.persistence.example.DatabaseConnectionVerificationTest) Time elapsed: 0.53 sec <<< ERROR!
java.lang.ClassCastException: org.jboss.arquillian.persistence.core.event.ApplyScriptsBeforeTest cannot be cast to org.jboss.arquillian.persistence.dbunit.event.CompareDBUnitData

should_be_able_to_verify_database_state_using_injected_connection(org.jboss.arquillian.integration.persistence.example.DatabaseConnectionVerificationTest)  Time elapsed: 0.056 sec  <<< ERROR!
java.lang.ClassCastException: org.jboss.arquillian.persistence.core.event.ApplyScriptsBeforeTest cannot be cast to org.jboss.arquillian.persistence.dbunit.event.CompareDBUnitData

Running org.jboss.arquillian.integration.persistence.example.deployments.UserPersistenceWarDeploymentTest 

When running on eclipse via run as I got a more detailed stacktrace:

java.lang.ClassCastException: org.jboss.arquillian.persistence.core.event.ApplyScriptsBeforeTest cannot be cast to org.jboss.arquillian.persistence.dbunit.event.CompareDBUnitData
    at org.jboss.arquillian.persistence.dbunit.DBUnitDataHandler.compare(DBUnitDataHandler.java:61)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:145)
    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
    at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
    at org.jboss.arquillian.persistence.core.lifecycle.CustomScriptsExecutor.executeScriptsBeforeTest(CustomScriptsExecutor.java:66)
    at org.jboss.arquillian.persistence.core.lifecycle.CustomScriptsExecutor.executeBeforeTest(CustomScriptsExecutor.java:53)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.persistence.dbunit.DBUnitDataStateLogger.beforePersistenceTest(DBUnitDataStateLogger.java:95)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.persistence.core.lifecycle.SchemaCreationScriptsExecutor.createSchema(SchemaCreationScriptsExecutor.java:61)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:130)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:92)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.persistence.dbunit.DBUnitPersistenceTestLifecycleHandler.createDatasets(DBUnitPersistenceTestLifecycleHandler.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.persistence.core.lifecycle.ErrorCollectorHandler.createErrorCollector(ErrorCollectorHandler.java:37)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.persistence.dbunit.DBUnitPersistenceTestLifecycleHandler.provideDatabaseConnectionAroundBeforePersistenceTest(DBUnitPersistenceTestLifecycleHandler.java:83)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:145)
    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
    at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
    at org.jboss.arquillian.persistence.core.lifecycle.PersistenceTestTrigger.beforeTest(PersistenceTestTrigger.java:112)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.createTestContext(TestContextHandler.java:130)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:92)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:145)
    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
    at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.before(EventTestRunnerAdaptor.java:108)
    at org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:241)
    at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:426)
    at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
    at org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:259)
    at org.jboss.arquillian.junit.Arquillian$7$1.invoke(Arquillian.java:319)
    at org.jboss.arquillian.container.test.impl.execution.BeforeLifecycleEventExecuter.on(BeforeLifecycleEventExecuter.java:35)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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.createTestContext(TestContextHandler.java:130)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:92)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:73)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    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:145)
    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:116)
    at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.fireCustomLifecycle(EventTestRunnerAdaptor.java:159)
    at org.jboss.arquillian.junit.Arquillian$7.evaluate(Arquillian.java:312)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:204)
    at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:426)
    at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
    at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:218)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:166)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
    at org.junit.runner.JUnitCore.run(JUnitCore.java:115)
    at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:66)
    at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.executeTest(ServletTestRunner.java:170)
    at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.execute(ServletTestRunner.java:135)
    at org.jboss.arquillian.protocol.servlet.runner.ServletTestRunner.doGet(ServletTestRunner.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:67)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
    at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
    at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
    at java.lang.Thread.run(Thread.java:745)

Any hints? thanks in advance.


#3

Apparently there is an issue with Java 8. I didn’t manage to figure it out yet. It works with Java 7 though. For the moment please try with this version.


#4

Hi @bartoszmajsak,

thanks for the reply but still no luck.

It is not working even with jdk7 (same exception).

I also cloned APE master and generated 1.0.0-SNAPSHOT locally and tried to use it on a sample app which is working with APE alpha7(works even with jdk8) and got the same exception, regardless of jdk version. Also tested on a windows box here at the company and no luck.

Do you have it working locally? what’s your setup?

attached two screenshot of test execution.

APE alpha7:

APE 1.0.0-SNAPSHOT


#5

Hmm I think I found the cause, here is git output when I checkout arquillian-persistence:

Checking connectivity… done.
error: unable to create file core/src/test/resources/after-org.jboss.arquillian.persistence.script.data.provider.SqlScriptProviderForScriptsAppliedAfterTestMethodTest$ApplyScriptAfterAnnotatedClass#shouldPassWithDataFileNotSpecified.sql (Filename too long)
error: unable to create file core/src/test/resources/before-org.jboss.arquillian.persistence.script.data.provider.SqlScriptProviderForScriptsAppliedBeforeTestMethodTest$ApplyScriptBeforeAnnotatedClass#shouldPassWithDataFileNotSpecified.sql (Filename too long)
error: unable to create file dbunit/src/test/resources/expected-org.jboss.arquillian.persistence.dbunit.data.provider.DataSetProviderShouldMatchDataSetTest$ShouldMatchDataSetAnnotatedClass#shouldPassWithDataFileNotSpecified.xls (Filename too long)
fatal: unable to checkout working tree


#6

Looks like these files ignored by git are not used in tests so I think there is no relation with erros I’m getting.


#7

I checked out this git tree: https://github.com/arquillian/arquillian-extension-persistence/tree/cadb8657c721b83dcef7a88f207962d52257f8c6 it is APE alpha7 tree and I’ve got same exception when I run the int-tests…so its definitely something on my side, I’m just out of ideas (tried maven 3.1.1/3.3, jdk 7/8, win/linux etc…)


#8

Strange stuff. It works on my machine for all the profiles (including dockers) :smiley: . I am using Oracle, not OpenJDK, but this should be rather irrelevant.

I will try tomorrow morning to run mvn build on my machine at work - let’s see if I will encounter similar problem.


#9

Got it working on another linux distro here (fedora 23). I can confirm that with JDK8 is the cause of the classcast exception mentioned above.

On command line only jdk 7 works for fedora, also need to run export=java_home before running tests (alternatives --config is not helping in this case) then its all green.

From IDE it is always working, even using jdk8 on project sdk and using jdk on running options:

thank you very much for the help.


Moving from persistence-impl to persistence-dbunit with openejb-embedded-4
#10

Sorry for all the hussle. I created JIRA for it https://issues.jboss.org/browse/ARQ-2027