1 Reply Latest reply on Apr 25, 2014 3:01 PM by Peter Butkovic

    java.lang.annotation.AnnotationFormatError prior test execution

    Diego del Río Newbie

      Hi everyone. I'm getting the following error trying to execute a test with Spring injection:

       

      SEVERE: Failed: ar.gov.mecon.esidif.connection_checker.ConnectionCheckerTest.test
      java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration.contextClass()
        at java.lang.reflect.Method.getDefaultValue(Method.java:747)
        at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:117)
        at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:84)
        at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:221)
        at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88)
        at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
        at java.lang.Class.initAnnotationsIfNecessary(Class.java:3168)
        at java.lang.Class.getAnnotations(Class.java:3148)
        at org.junit.runner.Description.createSuiteDescription(Description.java:72)
        at org.junit.internal.runners.ErrorReportingRunner.getDescription(ErrorReportingRunner.java:25)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:156)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
        at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)
        at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:129)
        at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:108)
        at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:226)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
        at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:498)
        at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:246)
        at org.jboss.remotingjmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)
        at org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)
      

       

      The test code:

       

      @RunWith(Arquillian.class)
      @SpringConfiguration
      public class ConnectionCheckerTest {
      
        @Deployment
        public static WebArchive createTestArchive() {
        WebArchive war = ShrinkWrap
          .create(WebArchive.class, "connection-checker.war")
          .addAsResource(
          "ar/gov/mecon/esidif/connection_checker/ConnectionCheckerTest-context.xml",
          "ar/gov/mecon/esidif/connection_checker/ConnectionCheckerTest-context.xml")
          .addAsLibraries(springDependencies());
          return war;
        }
      
        @Autowired
        private DataSource datasource;
      
        @Test
        public void test() throws SQLException {
          Connection c = this.getDatasource().getConnection();
          assertFalse(c.isClosed());
          c.close();
          assertTrue(c.isClosed());
        }
      
        public DataSource getDatasource() {
          return datasource;
        }
      
        public void setDatasource(DataSource datasource) {
          this.datasource = datasource;
        }
      
        public static File[] springDependencies() {
          ArrayList<File> files = new ArrayList<File>();
          files.addAll(resolveDependencies("org.springframework:spring-context"));
          return files.toArray(new File[files.size()]);
        }
      
        public static List<File> resolveDependencies(String artifactName) {
          MavenResolverSystem resolver = Maven.resolver();
          PomEquippedResolveStage resolveStage = resolver.loadPomFromFile("pom.xml");
          return Arrays.asList(resolveStage.resolve(artifactName).withTransitivity().asFile());
        }
      }
      

       

      ConnectionCheckerTest-context.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
        xmlns:context="http://www.springframework.org/schema/context"
        xmlns:jee="http://www.springframework.org/schema/jee"
        xsi:schemaLocation="
                  http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
                  http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
                  http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.0.xsd">
      
        <context:annotation-config />
        <jee:jndi-lookup id="dataSource" jndi-name="java:/esidifDataSource" />
      
      </beans>
      

       

      The Datasource configuration is not deployed with the test because it had been defined previously in JBoss.

       

      Following the relevant parts of the pom.xml:

       

        <properties>
          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          <arquillian.spring.version>1.0.0.Beta2</arquillian.spring.version>
        </properties>
      
        <dependencyManagement>
          <dependencies>
            <dependency>
              <groupId>org.jboss.arquillian</groupId>
              <artifactId>arquillian-bom</artifactId>
              <version>1.1.1.Final</version>
              <scope>import</scope>
              <type>pom</type>
            </dependency>
          </dependencies>
        </dependencyManagement>
        <dependencies>
          <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.8.1</version>
            <scope>test</scope>
          </dependency>
          <dependency>
            <groupId>org.jboss.arquillian.junit</groupId>
            <artifactId>arquillian-junit-container</artifactId>
            <scope>test</scope>
          </dependency>
          <dependency>
            <groupId>org.jboss.spec</groupId>
            <artifactId>jboss-javaee-6.0</artifactId>
            <version>1.0.0.Final</version>
            <type>pom</type>
            <scope>provided</scope>
          </dependency>
          <dependency>
            <groupId>org.jboss.as</groupId>
            <artifactId>jboss-as-arquillian-container-managed</artifactId>
            <version>7.1.1.Final</version>
            <scope>test</scope>
          </dependency>
          <dependency>
            <groupId>org.jboss.arquillian.protocol</groupId>
            <artifactId>arquillian-protocol-servlet</artifactId>
            <scope>test</scope>
          </dependency>
          <dependency>
            <groupId>org.jboss.logging</groupId>
            <artifactId>jboss-logging-log4j</artifactId>
            <version>2.2.0.CR1</version>
          </dependency>
          <dependency>
            <groupId>org.jboss.arquillian.extension</groupId>
            <artifactId>arquillian-service-integration-spring-inject</artifactId>
            <version>${arquillian.spring.version}</version>
            <scope>test</scope>
          </dependency>
          <dependency>
            <groupId>org.springframework</groupId>
            <artifactId>spring-context</artifactId>
            <version>3.2.4.RELEASE</version>
          </dependency>
        </dependencies>
      </project>
      

       

      Here is the complete log of the test execution:

       

      sep 16, 2013 11:34:37 AM org.jboss.as.arquillian.container.managed.ManagedDeployableContainer startInternal
      INFO: Starting container with: [C:\eSidif\Tools\jdk1.7.0_25\bin\java, -DdataSource.driverClassName=oracle.jdbc.xa.client.OracleXADataSource, -DdataSource.username=PROD_ESIDIF, -DdataSource.password=PROD_ESIDIF, -DdataSource.url=jdbc:oracle:thin:@esidb68.mecon.ar:1530:DESIDIF, -ea, -Djboss.home.dir=C:\eSidif\Tools\jboss-as-7.1.1.Final, -Dorg.jboss.boot.log.file=C:\eSidif\Tools\jboss-as-7.1.1.Final/standalone/log/boot.log, -Dlogging.configuration=file:C:\eSidif\Tools\jboss-as-7.1.1.Final/standalone/configuration/logging.properties, -Djboss.modules.dir=C:\eSidif\Tools\jboss-as-7.1.1.Final\modules, -Djboss.bundles.dir=C:\eSidif\Tools\jboss-as-7.1.1.Final\bundles, -jar, C:\eSidif\Tools\jboss-as-7.1.1.Final\jboss-modules.jar, -mp, C:\eSidif\Tools\jboss-as-7.1.1.Final\modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.standalone, -server-config, standalone.xml]
       2013-09-16 11:34:37,909 INFO  [org.xnio] - XNIO Version 3.0.0.GA
       2013-09-16 11:34:37,927 INFO  [org.xnio.nio] - XNIO NIO Implementation Version 3.0.0.GA
       2013-09-16 11:34:37,940 INFO  [org.jboss.remoting] - JBoss Remoting version 3.2.3.GA
      11:34:38,147 INFO  [org.jboss.modules] JBoss Modules version 1.1.1.GA
      11:34:38,311 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA
      11:34:38,357 INFO  [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final "Brontes" starting
      11:34:39,032 INFO  [org.xnio] XNIO Version 3.0.3.GA
      11:34:39,033 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)
      11:34:39,039 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.3.GA
      11:34:39,044 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.3.GA
      11:34:39,055 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers
      11:34:39,057 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem
      11:34:39,141 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013101: Activating Security Subsystem
      11:34:39,145 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.
      11:34:39,147 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension
      11:34:39,164 INFO  [org.jboss.as.security] (MSC service thread 1-6) JBAS013100: Current PicketBox version=4.0.7.Final
      11:34:39,164 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem
      11:34:39,174 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011940: Activating OSGi Subsystem
      11:34:39,175 INFO  [org.jboss.as.connector] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.9.Final)
      11:34:39,222 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)
      11:34:39,252 INFO  [org.jboss.as.naming] (MSC service thread 1-6) JBAS011802: Starting Naming Service
      11:34:39,257 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-7) JBAS015400: Bound mail session [java:jboss/mail/Default]
      11:34:39,279 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class oracle.jdbc.OracleDriver (version 11.2)
      11:34:39,462 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-2) Arrancando Coyote HTTP/1.1 en puerto http--127.0.0.1-8080
      11:34:39,502 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-6) JBoss Web Services - Stack CXF Server 4.0.2.GA
      11:34:39,581 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on /127.0.0.1:9999
      11:34:39,581 INFO  [org.jboss.as.remoting] (MSC service thread 1-7) JBAS017100: Listening on /127.0.0.1:4447
      11:34:39,582 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-3) JBAS015012: Started FileSystemDeploymentService for directory C:\eSidif\Tools\jboss-as-7.1.1.Final\standalone\deployments
      11:34:39,762 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]
      11:34:39,762 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-5) JBAS010400: Bound data source [java:/esidifDataSource]
      11:34:39,849 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
      11:34:39,851 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.1.1.Final "Brontes" started in 1915ms - Started 137 of 216 services (74 services are passive or on-demand)
       2013-09-16 11:34:45,362 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Generating: arquillian-service
       2013-09-16 11:34:45,380 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: arquillian-testenricher-msc.jar: 7 assets
       2013-09-16 11:34:45,381 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: arquillian-testenricher-ejb.jar: 10 assets
       2013-09-16 11:34:45,381 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: abe78e36-4332-4f7c-9f29-0c1971d35cf5.jar: 14 assets
       2013-09-16 11:34:45,381 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: arquillian-testenricher-cdi.jar: 18 assets
       2013-09-16 11:34:45,382 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: arquillian-junit.jar: 259 assets
       2013-09-16 11:34:45,385 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: 7cb9f27f-3677-4da4-9c02-2754df3e15aa.jar: 34 assets
       2013-09-16 11:34:45,386 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: arquillian-core.jar: 498 assets
       2013-09-16 11:34:45,390 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: arquillian-testenricher-osgi.jar: 9 assets
       2013-09-16 11:34:45,390 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: arquillian-testenricher-initialcontext.jar: 3 assets
       2013-09-16 11:34:45,390 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Merging archive: arquillian-testenricher-resource.jar: 10 assets
       2013-09-16 11:34:45,393 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Loadable extensions: [org.jboss.arquillian.testenricher.cdi.container.CDIEnricherRemoteExtension, org.jboss.arquillian.testenricher.ejb.container.EJBEnricherRemoteExtension, org.jboss.arquillian.spring.integration.inject.container.SpringInjectRemoteExtension, org.jboss.arquillian.testenricher.resource.container.ResourceEnricherRemoteExtension, org.jboss.arquillian.testenricher.initialcontext.container.InitialContextRemoteExtension, org.jboss.arquillian.spring.integration.container.SpringIntegrationRemoteExtension, org.jboss.as.arquillian.service.JMXProtocolEndpointExtension, org.jboss.arquillian.container.test.impl.ContainerTestRemoteExtension, org.jboss.arquillian.testenricher.msc.MSCEnricherRemoteExtension, org.jboss.arquillian.testenricher.osgi.OSGiEnricherRemoteExtension, org.jboss.as.arquillian.service.InContainerManagementClientExtension]
       2013-09-16 11:34:45,397 DEBUG [org.jboss.as.arquillian.protocol.jmx.JMXProtocolPackager] - Add dependencies: org.jboss.modules,deployment.arquillian-service,org.jboss.msc
       2013-09-16 11:34:45,614 INFO  [org.jboss.as.arquillian.protocol.jmx.ArquillianServiceDeployer] - Deploy arquillian service: arquillian-service: 884 assets
      11:34:46,335 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014900: Content added at location C:\eSidif\Tools\jboss-as-7.1.1.Final\standalone\data\content\43\9c26749453359aea9795bafc2e8264efb0768d\content
      11:34:46,345 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015876: Starting deployment of "arquillian-service"
      11:34:46,510 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.jmx:main") which may be changed or removed in future versions without notice.
      11:34:46,511 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.server:main") which may be changed or removed in future versions without notice.
      11:34:46,511 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.as.osgi:main") which may be changed or removed in future versions without notice.
      11:34:46,512 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.jandex:main") which may be changed or removed in future versions without notice.
      11:34:46,513 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-6) JBAS018567: Deployment "deployment.arquillian-service" is using a private module ("org.jboss.osgi.framework:main") which may be changed or removed in future versions without notice.
      11:34:46,663 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018559: Deployed "arquillian-service"
      11:34:47,588 INFO  [org.jboss.as.repository] (management-handler-thread - 3) JBAS014900: Content added at location C:\eSidif\Tools\jboss-as-7.1.1.Final\standalone\data\content\b8\f4a9be3a4eeb27d15834928610d72b33cc7e6f\content
      11:34:47,596 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "connection-checker.war"
      11:34:48,166 INFO  [org.jboss.as.arquillian] (MSC service thread 1-6) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."connection-checker.war",unit=connection-checker.war,tests=[ar.gov.mecon.esidif.connection_checker.ConnectionCheckerTest]]
      11:34:48,235 INFO  [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /connection-checker
      11:34:48,423 INFO  [org.jboss.as.server] (management-handler-thread - 3) JBAS018559: Deployed "connection-checker.war"
      11:34:48,567 SEVERE [org.jboss.arquillian.protocol.jmx.JMXTestRunner] (pool-4-thread-1) Failed: ar.gov.mecon.esidif.connection_checker.ConnectionCheckerTest.test: java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration.contextClass()
        at java.lang.reflect.Method.getDefaultValue(Method.java:747) [rt.jar:1.7.0_25]
        at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:117) [rt.jar:1.7.0_25]
        at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:84) [rt.jar:1.7.0_25]
        at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:221) [rt.jar:1.7.0_25]
        at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88) [rt.jar:1.7.0_25]
        at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70) [rt.jar:1.7.0_25]
        at java.lang.Class.initAnnotationsIfNecessary(Class.java:3168) [rt.jar:1.7.0_25]
        at java.lang.Class.getAnnotations(Class.java:3148) [rt.jar:1.7.0_25]
        at org.junit.runner.Description.createSuiteDescription(Description.java:72) [arquillian-service:]
        at org.junit.internal.runners.ErrorReportingRunner.getDescription(ErrorReportingRunner.java:25) [arquillian-service:]
        at org.junit.runner.JUnitCore.run(JUnitCore.java:156) [arquillian-service:]
        at org.junit.runner.JUnitCore.run(JUnitCore.java:136) [arquillian-service:]
        at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65) [arquillian-service:]
        at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:129) [arquillian-service:]
        at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:108) [arquillian-service:]
        at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:226) [arquillian-service:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75) [rt.jar:1.7.0_25]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_25]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_25]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_25]
        at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_25]
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252) [rt.jar:1.7.0_25]
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) [rt.jar:1.7.0_25]
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) [rt.jar:1.7.0_25]
        at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:498)
        at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:246)
        at org.jboss.remotingjmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)
        at org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_25]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_25]
        at java.lang.Thread.run(Thread.java:724) [rt.jar:1.7.0_25]
      
      
      sep 16, 2013 11:34:48 AM org.jboss.arquillian.protocol.jmx.JMXMethodExecutor invoke
      SEVERE: Failed: ar.gov.mecon.esidif.connection_checker.ConnectionCheckerTest.test
      java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.jboss.arquillian.spring.integration.test.annotation.SpringConfiguration.contextClass()
        at java.lang.reflect.Method.getDefaultValue(Method.java:747)
        at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:117)
        at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:84)
        at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:221)
        at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88)
        at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
        at java.lang.Class.initAnnotationsIfNecessary(Class.java:3168)
        at java.lang.Class.getAnnotations(Class.java:3148)
        at org.junit.runner.Description.createSuiteDescription(Description.java:72)
        at org.junit.internal.runners.ErrorReportingRunner.getDescription(ErrorReportingRunner.java:25)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:156)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:136)
        at org.jboss.arquillian.junit.container.JUnitTestRunner.execute(JUnitTestRunner.java:65)
        at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethodInternal(JMXTestRunner.java:129)
        at org.jboss.arquillian.protocol.jmx.JMXTestRunner.runTestMethod(JMXTestRunner.java:108)
        at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:226)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
        at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
        at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
        at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:498)
        at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:246)
        at org.jboss.remotingjmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)
        at org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:724)
      
      
      11:34:48,676 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015877: Stopped deployment connection-checker.war in 34ms
      11:34:48,882 INFO  [org.jboss.as.repository] (management-handler-thread - 1) JBAS014901: Content removed from location C:\eSidif\Tools\jboss-as-7.1.1.Final\standalone\data\content\b8\f4a9be3a4eeb27d15834928610d72b33cc7e6f\content
      11:34:48,885 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018558: Undeployed "connection-checker.war"
       2013-09-16 11:34:48,902 INFO  [org.jboss.as.arquillian.protocol.jmx.ArquillianServiceDeployer] - Undeploy arquillian service: arquillian-service: 885 assets
      11:34:48,911 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment arquillian-service in 3ms
      11:34:49,015 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014901: Content removed from location C:\eSidif\Tools\jboss-as-7.1.1.Final\standalone\data\content\43\9c26749453359aea9795bafc2e8264efb0768d\content
      11:34:49,018 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018558: Undeployed "arquillian-service"
       2013-09-16 11:34:49,030 ERROR [org.jboss.remoting.remote.connection] - JBREM000200: Remote connection failed: java.io.IOException: Se ha forzado la interrupción de una conexión existente por el host remoto
       2013-09-16 11:34:49,031 ERROR [org.jboss.remoting.remote.connection] - JBREM000200: Remote connection failed: java.io.IOException: Se ha forzado la interrupción de una conexión existente por el host remoto
      

       

      Some additional info about the test environment:

      • Java runtime: jdk1.7.0_25
      • JBoss version: jboss-as-7.1.1.Final

       

      May be a class compatibility issue between Arquillian Spring Extension and Spring libraries? I've tried different combinations of Spring libraries/java runtime/arquillian core/arquillian spring extension without success.