Backwards compatibility in Arquillian 1.1.12?

solved

#1

Hi,

Looks like Arquillian isn’t backwards compatible in the 1.1.12 release (vs 1.1.11). Any ideas?

Running ws.ament.hammock.web.undertow.UndertowFilterTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.095 sec <<< FAILURE! - in ws.ament.hammock.web.undertow.UndertowFilterTest
ws.ament.hammock.web.undertow.UndertowFilterTest  Time elapsed: 0.095 sec  <<< ERROR!
java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.core.impl.ManagerImpl
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoSuchMethodError: org.jboss.arquillian.core.spi.ExtensionLoader.loadVetoed()Ljava/util/Map;

Running ws.ament.hammock.web.undertow.UndertowListenerTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec <<< FAILURE! - in ws.ament.hammock.web.undertow.UndertowListenerTest
ws.ament.hammock.web.undertow.UndertowListenerTest  Time elapsed: 0 sec  <<< ERROR!
java.lang.RuntimeException: Arquillian has previously been attempted initialized, but failed. See cause for previous exception
Caused by: java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.core.impl.ManagerImpl
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoSuchMethodError: org.jboss.arquillian.core.spi.ExtensionLoader.loadVetoed()Ljava/util/Map;

Running ws.ament.hammock.web.undertow.UndertowServletMapperTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.068 sec - in ws.ament.hammock.web.undertow.UndertowServletMapperTest
Running ws.ament.hammock.web.undertow.UndertowServletTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.001 sec <<< FAILURE! - in ws.ament.hammock.web.undertow.UndertowServletTest
ws.ament.hammock.web.undertow.UndertowServletTest  Time elapsed: 0.001 sec  <<< ERROR!
java.lang.RuntimeException: Arquillian has previously been attempted initialized, but failed. See cause for previous exception
Caused by: java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.test.impl.EventTestRunnerAdaptor
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.RuntimeException: Could not create new instance of class org.jboss.arquillian.core.impl.ManagerImpl
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.NoSuchMethodError: org.jboss.arquillian.core.spi.ExtensionLoader.loadVetoed()Ljava/util/Map;

#2

You can replicate the issue by cloning https://github.com/hammock-project/hammock and running mvn clean install -Darquillian.version=1.1.12.Final


#3

I will check but I am using this latest version in Drone/Graphene/Cube and Algeron and didn’t receive any exception. Have you tried doing a mvn dependency:tree to be sure that all dependencies are 1.1.12 and no mixed versions?


#4

Nope that explains it. I forgot half my dependencies came from the weld container, which is pointing to 1.1.11. Thanks!


#5

You are welcome, happy we have found the reason :slight_smile:


#6