6 Replies Latest reply on Nov 7, 2013 6:18 PM by Carlos Munoz

    Arquillian and EAP6: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

    Carlos Munoz Newbie

      Hi,

       

      I am trying to integrate arquillian as our testing framework but we are having a bit of a problem when starting the container.

       

      We are using EAP6 with Arquillian 1.0.3.Final.

       

      Other meaningful dependencies:

      Seam 2.3.0

      Jboss AS 7 managed container 7.1.3.Final

      JUnit: 4.11

       

      The test gets to the point of starting the container, deploying the arquillian service and deploying the archive. However, it seems that it is failing when getting a status from the server about the deployment and throws the exception in question. Here is the full console output:

       

      09:53:58,068 INFO  [org.jboss.modules] JBoss Modules version 1.1.3.GA-redhat-1

      09:53:58,227 INFO  [org.jboss.msc] JBoss MSC version 1.0.2.GA-redhat-2

      09:53:58,279 INFO  [org.jboss.as] JBAS015899: JBoss EAP 6.0.1.GA (AS 7.1.3.Final-redhat-4) starting

      09:53:59,007 INFO  [org.xnio] XNIO Version 3.0.7.GA-redhat-1

      09:53:59,010 INFO  [org.jboss.as.server] JBAS015888: Creating http management service using socket-binding (management-http)

      09:53:59,014 INFO  [org.xnio.nio] XNIO NIO Implementation Version 3.0.7.GA-redhat-1

      09:53:59,020 INFO  [org.jboss.remoting] JBoss Remoting version 3.2.14.GA-redhat-1

      09:53:59,039 INFO  [org.jboss.as.logging] JBAS011502: Removing bootstrap log handlers

      09:53:59,041 INFO  [org.jboss.as.configadmin] (ServerService Thread Pool -- 26) JBAS016200: Activating ConfigAdmin Subsystem

      09:53:59,051 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 31) JBAS010280: Activating Infinispan subsystem.

      09:53:59,100 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 44) JBAS013171: Activating Security Subsystem

      09:53:59,128 INFO  [org.jboss.as.webservices] (ServerService Thread Pool -- 48) JBAS015537: Activating WebServices Extension

      09:53:59,129 INFO  [org.jboss.as.connector.logging] (MSC service thread 1-7) JBAS010408: Starting JCA Subsystem (JBoss IronJacamar 1.0.13.Final-redhat-1)

      09:53:59,132 INFO  [org.jboss.as.security] (MSC service thread 1-8) JBAS013170: Current PicketBox version=4.0.14.Final-redhat-2

      09:53:59,143 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 38) JBAS011800: Activating Naming Subsystem

      09:53:59,143 INFO  [org.jboss.as.osgi] (ServerService Thread Pool -- 39) JBAS011906: Activating OSGi Subsystem

      09:53:59,185 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 27) JBAS010403: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3)

      09:53:59,213 INFO  [org.jboss.as.naming] (MSC service thread 1-2) JBAS011802: Starting Naming Service

      09:53:59,215 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-1) JBAS015400: Bound mail session [java:jboss/mail/Default]

      09:53:59,308 INFO  [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-6) JBoss Web Services - Stack CXF Server 4.0.6.GA-redhat-2

      09:53:59,433 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http-/127.0.0.1:8080

      09:53:59,594 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/zanataTestDatasource]

      09:53:59,595 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010400: Bound data source [java:jboss/datasources/ExampleDS]

      09:53:59,766 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-6) JBAS015012: Started FileSystemDeploymentService for directory /opt/jboss-eap-6.0-standalone/standalone/deployments

      09:53:59,771 INFO  [org.jboss.as.remoting] (MSC service thread 1-8) JBAS017100: Listening on 127.0.0.1:9999

      09:53:59,771 INFO  [org.jboss.as.remoting] (MSC service thread 1-2) JBAS017100: Listening on 127.0.0.1:4447

      09:54:00,177 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management

      09:54:00,178 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990

      09:54:00,178 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss EAP 6.0.1.GA (AS 7.1.3.Final-redhat-4) started in 2371ms - Started 141 of 222 services (79 services are passive or on-demand)

      09:54:20,784 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014900: Content added at location /opt/jboss-eap-6.0-standalone/standalone/data/content/f6/4a6ddaf44bbf7041ee3de1f7ee66fcb5de551c/content

      09:54:20,796 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) JBAS015876: Starting deployment of "arquillian-service"

      09:54:21,233 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) 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.

      09:54:21,234 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) 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.

      09:54:21,235 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) 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.

      09:54:21,236 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) 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.

      09:54:21,237 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-4) 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.

      09:54:21,270 INFO  [org.jboss.as.osgi] (MSC service thread 1-1) JBAS011907: Register module: Module "deployment.arquillian-service:main" from Service Module Loader

      09:54:21,593 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018559: Deployed "arquillian-service"

      09:54:37,914 INFO  [org.jboss.as.repository] (management-handler-thread - 3) JBAS014900: Content added at location /opt/jboss-eap-6.0-standalone/standalone/data/content/3b/ce8bf3aee6a038ff96e880c0459e093aad9c63/content

      09:54:37,940 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war"

      09:54:40,162 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry jaxb-api.jar in /content/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war/WEB-INF/lib/jaxb-impl-2.2.4.jar  does not point to a valid jar for a Class-Path reference.

      09:54:40,163 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry activation.jar in /content/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war/WEB-INF/lib/jaxb-impl-2.2.4.jar  does not point to a valid jar for a Class-Path reference.

      09:54:40,163 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry jsr173_1.0_api.jar in /content/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war/WEB-INF/lib/jaxb-impl-2.2.4.jar  does not point to a valid jar for a Class-Path reference.

      09:54:40,163 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-6) JBAS015960: Class Path entry jaxb1-impl.jar in /content/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war/WEB-INF/lib/jaxb-impl-2.2.4.jar  does not point to a valid jar for a Class-Path reference.

      09:54:40,339 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) JBAS011401: Read persistence.xml for zanataTestDatasourcePU

      09:54:40,449 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" is using a private module ("org.antlr:main") which may be changed or removed in future versions without notice.

      09:54:40,450 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" is using a private module ("org.antlr:main") which may be changed or removed in future versions without notice.

      09:54:40,452 WARN  [org.jboss.as.dependency.unsupported] (MSC service thread 1-8) JBAS018568: Deployment "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" is using an unsupported module ("org.dom4j:main") which may be changed or removed in future versions without notice.

      09:54:40,452 WARN  [org.jboss.as.dependency.unsupported] (MSC service thread 1-8) JBAS018568: Deployment "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" is using an unsupported module ("org.dom4j:main") which may be changed or removed in future versions without notice.

      09:54:40,454 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" is using a private module ("org.jboss.security.negotiation:main") which may be changed or removed in future versions without notice.

      09:54:40,455 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-8) JBAS018567: Deployment "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" is using a private module ("org.jboss.security.negotiation:main") which may be changed or removed in future versions without notice.

      09:54:40,458 WARN  [org.jboss.as.dependency.unsupported] (MSC service thread 1-8) JBAS018568: Deployment "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" is using an unsupported module ("com.h2database.h2:main") which may be changed or removed in future versions without notice.

      09:54:40,459 WARN  [org.jboss.as.dependency.unsupported] (MSC service thread 1-8) JBAS018568: Deployment "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" is using an unsupported module ("com.h2database.h2:main") which may be changed or removed in future versions without notice.

      09:54:40,619 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named EjbSynchronizations in deployment unit deployment "c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" are as follows:

       

       

                java:global/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

                java:app/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

                java:module/EjbSynchronizations!org.jboss.seam.transaction.LocalEjbSynchronizations

                java:global/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d/EjbSynchronizations

                java:app/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d/EjbSynchronizations

                java:module/EjbSynchronizations

       

       

      09:54:40,621 INFO  [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-2) JNDI bindings for session bean named TimerServiceDispatcher in deployment unit deployment "c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war" are as follows:

       

       

                java:global/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

                java:app/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

                java:module/TimerServiceDispatcher!org.jboss.seam.async.LocalTimerServiceDispatcher

                java:global/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d/TimerServiceDispatcher

                java:app/c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d/TimerServiceDispatcher

                java:module/TimerServiceDispatcher

       

       

      09:54:40,901 WARN  [org.jboss.jaxrs] (MSC service thread 1-8) JBAS011203: No Servlet mappings found for JAX-RS application: org.jboss.seam.resteasy.Application either annotate it with @ApplicationPath or add a servlet-mapping in web.xml

      09:54:40,914 INFO  [org.jboss.as.osgi] (MSC service thread 1-2) JBAS011907: Register module: Module "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war:main" from Service Module Loader

      09:54:40,914 INFO  [org.jboss.as.arquillian] (MSC service thread 1-5) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war",unit=c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war,tests=[org.hibernate.testing.junit4.BaseUnitTestCase, org.zanata.arquillian.GreeterTest]]

      09:54:40,924 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 50) JBAS011402: Starting Persistence Unit Service 'c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war#zanataTestDatasourcePU'

      09:54:41,003 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 50) HCANN000001: Hibernate Commons Annotations {4.0.1.Final-redhat-2}

      09:54:41,006 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 50) HHH000412: Hibernate Core {4.1.6.Final-redhat-3}

      09:54:41,007 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 50) HHH000206: hibernate.properties not found

      09:54:41,008 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 50) HHH000021: Bytecode provider name : javassist

      09:54:41,019 INFO  [org.hibernate.ejb.Ejb3Configuration] (ServerService Thread Pool -- 50) HHH000204: Processing PersistenceUnitInfo [

                name: zanataTestDatasourcePU

                ...]

      09:54:41,682 INFO  [org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator] (ServerService Thread Pool -- 50) HHH000130: Instantiating explicit connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider

      09:54:41,851 INFO  [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 50) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect

      09:54:41,872 INFO  [org.hibernate.engine.transaction.internal.TransactionFactoryInitiator] (ServerService Thread Pool -- 50) HHH000268: Transaction strategy: org.hibernate.engine.transaction.internal.jdbc.JdbcTransactionFactory

      09:54:41,876 INFO  [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (ServerService Thread Pool -- 50) HHH000397: Using ASTQueryTranslatorFactory

      09:54:41,879 WARN  [org.hibernate.testing.cache.CachingRegionFactory] (ServerService Thread Pool -- 50) CachingRegionFactory should be only used for testing.

      09:54:41,919 INFO  [org.hibernate.validator.util.Version] (ServerService Thread Pool -- 50) Hibernate Validator 4.2.0.Final-redhat-2

      09:54:42,210 INFO  [org.hibernate.search.Version] (ServerService Thread Pool -- 50) HSEARCH000034: Hibernate Search 4.1.0.CR3

      09:54:42,236 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 50) HCANN000001: Hibernate Commons Annotations {4.0.1.Final}

      09:54:43,198 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 50) HHH000227: Running hbm2ddl schema export

      09:54:43,377 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 50) HHH000230: Schema export complete

      09:54:43,382 WARN  [org.hibernate.internal.SessionFactoryImpl] (ServerService Thread Pool -- 50) HHH000008: JTASessionContext being used with JDBCTransactionFactory; auto-flush will not operate correctly with getCurrentSession()

      09:54:43,570 INFO  [javax.servlet.ServletContextListener] (MSC service thread 1-7) Welcome to Mock Seam 2.3.0.Final

      09:54:43,603 INFO  [org.jboss.web] (MSC service thread 1-7) JBAS018210: Registering web context: /c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d

      09:54:43,763 INFO  [org.jboss.as.server] (management-handler-thread - 3) JBAS018559: Deployed "c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war"

      09:54:43,808 INFO  [org.jboss.as.osgi] (MSC service thread 1-3) JBAS011908: Unregister module: Module "deployment.c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war:main" from Service Module Loader

      09:54:43,829 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 58) JBAS011403: Stopping Persistence Unit Service 'c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war#zanataTestDatasourcePU'

      09:54:43,831 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 58) HHH000227: Running hbm2ddl schema export

      09:54:43,870 INFO  [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 58) HHH000230: Schema export complete

      09:54:43,963 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-8) JBAS015877: Stopped deployment c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war in 160ms

      09:54:44,354 INFO  [org.jboss.as.repository] (management-handler-thread - 1) JBAS014901: Content removed from location /opt/jboss-eap-6.0-standalone/standalone/data/content/3b/ce8bf3aee6a038ff96e880c0459e093aad9c63/content

      09:54:44,355 INFO  [org.jboss.as.server] (management-handler-thread - 1) JBAS018558: Undeployed "c9c2a6be-a7fe-4180-aed9-aca3fcee5c9d.war"

       

       

      java.lang.RuntimeException: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

                at org.jboss.as.arquillian.container.ManagementClient.getProtocolMetaData(ManagementClient.java:160)

                at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:146)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                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.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:239)

                at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

                at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

                at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

                at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

                at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

                at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)

                at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:182)

                at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

                at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

                at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

                at org.junit.runners.ParentRunner.run(ParentRunner.java:309)

                at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

                at org.junit.runner.JUnitCore.run(JUnitCore.java:160)

                at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:76)

                at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:195)

                at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:63)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)

      Caused by: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

                at org.jboss.as.arquillian.container.ManagementClient.checkSuccessful(ManagementClient.java:324)

                at org.jboss.as.arquillian.container.ManagementClient.executeForResult(ManagementClient.java:317)

                at org.jboss.as.arquillian.container.ManagementClient.readResource(ManagementClient.java:312)

                at org.jboss.as.arquillian.container.ManagementClient.getProtocolMetaData(ManagementClient.java:151)

                ... 91 more

       

       

      09:54:44,371 INFO  [org.jboss.as.osgi] (MSC service thread 1-4) JBAS011908: Unregister module: Module "deployment.arquillian-service:main" from Service Module Loader

      09:54:44,377 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015877: Stopped deployment arquillian-service in 6ms

      09:54:44,943 INFO  [org.jboss.as.repository] (management-handler-thread - 2) JBAS014901: Content removed from location /opt/jboss-eap-6.0-standalone/standalone/data/content/f6/4a6ddaf44bbf7041ee3de1f7ee66fcb5de551c/content

      09:54:44,943 INFO  [org.jboss.as.server] (management-handler-thread - 2) JBAS018558: Undeployed "arquillian-service"

       

      Another curious bit is that if I change the deployment to a simple (i.e. smaller) java or web archive, the test actually deploys successfully and runs.

       

      Any help will be greatly appreciated.

        • 1. Re: Arquillian and EAP6: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined
          Manish Prajapati Newbie

          Hi Carlos,

           

          I am also getting the same problem. In eclipse console it doesn't show any error and at the end it undeploys test app. But If I check Junit result, it shows me below error:

          Could you please share the idea to fix this issue if you have already fixed it?

           

          java.lang.RuntimeException: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

              at org.jboss.as.arquillian.container.ManagementClient.getWebUri(ManagementClient.java:108)

              at org.jboss.as.arquillian.container.ManagementClient.getDeploymentMetaData(ManagementClient.java:117)

              at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:150)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:161)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:128)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:271)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:127)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

              at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

              at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

              at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

              at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

              at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:95)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:80)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:263)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:239)

              at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:79)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

              at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

              at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)

              at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:101)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

              at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)

              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)

              at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:75)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

              at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:60)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:601)

              at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:94)

              at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)

              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:135)

              at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:115)

              at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)

              at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:182)

              at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:314)

              at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:46)

              at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:199)

              at org.junit.runners.ParentRunner.run(ParentRunner.java:300)

              at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:147)

              at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)

              at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

              at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

          Caused by: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined

              at org.jboss.as.arquillian.container.ManagementClient.checkSuccessful(ManagementClient.java:317)

              at org.jboss.as.arquillian.container.ManagementClient.executeForResult(ManagementClient.java:310)

              at org.jboss.as.arquillian.container.ManagementClient.readResource(ManagementClient.java:305)

              at org.jboss.as.arquillian.container.ManagementClient.readRootNode(ManagementClient.java:188)

              at org.jboss.as.arquillian.container.ManagementClient.getWebUri(ManagementClient.java:105)

              ... 89 more

          • 2. Re: Arquillian and EAP6: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined
            Marek Novotny Master

            try to upgrade to ARQ 1.1.0.Final and Seam 2.3.1.Final. This combination works with EAP 6, the older versions don't have  to.

            • 3. Re: Arquillian and EAP6: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined
              hrrbrt99 Newbie

              I'm having the same issue with Arquillian 1.1.1.Final on AS7.1.1.  and using Arquillian-persistence 1.0.0.Alpha6.

              What is really strange, is that all unit tests worked perfectly and suddenly this strange exception. Falling back to a code base where I know that unit tests deployed without problem and passed (till today) didn't help.

              Furthermore the application code still works as expected on the same Jboss AS instance.

               

              Can it be that JBOSS AS gets in a wierd state making arquillian stop working?

              • 4. Re: Arquillian and EAP6: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined
                Marek Novotny Master

                There is probably mismatch between AS7 remoting libraries in Arquillian AS7 adapter which are required to deploy testing archive.

                • 5. Re: Arquillian and EAP6: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined
                  Carlos Munoz Newbie

                  Hi Marek,

                   

                  I think you're right. I haven't tried with Arquillian 1.1.0 (although we are already on Seam 2.3.1), but I finally go around it by overriding (i.e. copying and making sure they get loaded first) some of Arquillian's classes that have to do with communication with the server. If anyone's still interested I can share them. It's supposed to be a temporary hack to get things going, so I'll give Arquillian 1.1.0 a try and mark the correct answer if it works.

                  • 6. Re: Arquillian and EAP6: org.jboss.as.arquillian.container.ManagementClient$UnSuccessfulOperationException: undefined
                    Carlos Munoz Newbie

                    Just tried upgrading to Arquillian 1.1.0 and the jboss as 7 managed container 7.1.3.Final (tried 7.2.0 too but it complained with a ClassNotFoundException), and I still have the same problem. Using my own modified version of org.jboss.as.arquillian.container.ManagementClient still works so if anyone is still interested I'll be happy to share it. I'll try to create a pull request for evaluation on the Arquillian project.