{"action":"opened","issue":{"url":"https://api.github.com/repos/radcortez/wildfly-spring-batch/issues/3","repository_url":"https://api.github.com/repos/radcortez/wildfly-spring-batch","labels_url":"https://api.github.com/repos/radcortez/wildfly-spring-batch/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/radcortez/wildfly-spring-batch/issues/3/comments","events_url":"https://api.github.com/repos/radcortez/wildfly-spring-batch/issues/3/events","html_url":"https://github.com/radcortez/wildfly-spring-batch/issues/3","id":147899062,"number":3,"title":"Arquillian tests hang on cleanup in Wildfly 10 ","user":{"login":"scottkurz","id":4081634,"avatar_url":"https://avatars.githubusercontent.com/u/4081634?v=3","gravatar_id":"","url":"https://api.github.com/users/scottkurz","html_url":"https://github.com/scottkurz","followers_url":"https://api.github.com/users/scottkurz/followers","following_url":"https://api.github.com/users/scottkurz/following{/other_user}","gists_url":"https://api.github.com/users/scottkurz/gists{/gist_id}","starred_url":"https://api.github.com/users/scottkurz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scottkurz/subscriptions","organizations_url":"https://api.github.com/users/scottkurz/orgs","repos_url":"https://api.github.com/users/scottkurz/repos","events_url":"https://api.github.com/users/scottkurz/events{/privacy}","received_events_url":"https://api.github.com/users/scottkurz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-12T23:06:45Z","updated_at":"2016-04-12T23:06:45Z","closed_at":null,"body":"Tried these instructions..pretty neat, thanks for writing this up.\r\n\r\nRunning wildfly-10.0.0.Final with Java 8. \r\n\r\nI can see the test ran successfully in the server, but the text execution hangs in the **mvn** JVM after\r\n\r\n```\r\nRunning com.cortez.wildfly.batch.batchlet.MyBatchletSpringBatchTest\r\n408696e7-1256-408b-9762-e6b4e16a2e01.war:\r\n...\r\nApr 12, 2016 6:25:45 PM org.jboss.remoting3.EndpointImpl <clinit>\r\nINFO: JBoss Remoting version (unknown)\r\n```\r\n\r\nThe reason seems to be related to these messages in the server output\r\n```\r\n18:32:09,796 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0010: Stopping weld service for deployment 260d9c32-1507-4414-ba2a-d8a65816f2ee.war\r\n18:32:09,801 ERROR [stderr] (ServerService Thread Pool -- 72) Exception in thread \"ServerService Thread Pool -- 72\" javax.batch.operations.NoSuchJobException: Job name: batchlet not found.\r\n18:32:09,802 ERROR [stderr] (ServerService Thread Pool -- 72)   at org.springframework.batch.core.jsr.launch.JsrJobOperator.getRunningExecutions(JsrJobOperator.java:372)\r\n18:32:09,802 ERROR [stderr] (ServerService Thread Pool -- 72)   at org.wildfly.extension.batch.jberet.impl.BatchEnvironmentService$BatchJobServerActivity.stopRunningJobs(BatchEnvironmentService.java:320)\r\n18:32:09,802 ERROR [stderr] (ServerService Thread Pool -- 72)   at org.wildfly.extension.batch.jberet.impl.BatchEnvironmentService$BatchJobServerActivity.access$800(BatchEnvironmentService.java:286)\r\n18:32:09,803 ERROR [stderr] (ServerService Thread Pool -- 72)   at org.wildfly.extension.batch.jberet.impl.BatchEnvironmentService.lambda$stop$4(BatchEnvironmentService.java:142)\r\n18:32:09,803 ERROR [stderr] (ServerService Thread Pool -- 72)   at org.wildfly.extension.batch.jberet.impl.BatchEnvironmentService$$Lambda$117.000000001A443AC0.run(Unknown Source)\r\n18:32:09,803 ERROR [stderr] (ServerService Thread Pool -- 72)   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)\r\n18:32:09,804 ERROR [stderr] (ServerService Thread Pool -- 72)   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n18:32:09,804 ERROR [stderr] (ServerService Thread Pool -- 72)   at java.lang.Thread.run(Thread.java:785)\r\n18:32:09,804 ERROR [stderr] (ServerService Thread Pool -- 72)   at org.jboss.threads.JBossThread.run(JBossThread.java:320)\r\n\r\n18:37:09,726 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'undeploy' at address '[(\"deployment\" => \"260d9c32-1507-4414-ba2a-d8a65816f2ee.war\")]'\r\n18:37:14,728 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0190: Step handler org.jboss.as.server.deployment.DeploymentHandlerUtil$5@98125c62 for operation {\"operation\" => \"undeploy\",\"address\" => [(\"deployment\" => \"260d9c32-1507-4414-ba2a-d8a65816f2ee.war\")],\"operation-headers\" => {\"caller-type\" => \"user\",\"access-mechanism\" => \"NATIVE\"}} at address [(\"deployment\" => \"260d9c32-1507-4414-ba2a-d8a65816f2ee.war\")] failed handling operation rollback -- java.lang.IllegalStateException: WFLYCTL0345: Timeout after 5 seconds waiting for existing service service jboss.deployment.unit.\"260d9c32-1507-4414-ba2a-d8a65816f2ee.war\".contents to be removed so a new instance can be installed.: java.lang.IllegalStateException: WFLYCTL0345: Timeout after 5 seconds waiting for existing service service jboss.deployment.unit.\"260d9c32-1507-4414-ba2a-d8a65816f2ee.war\".contents to be removed so a new instance can be installed.\r\n        at org.jboss.as.controller.OperationContextImpl$ContextServiceBuilder.install(OperationContextImpl.java:2122)\r\n        at org.jboss.as.server.deployment.ContentServitor.addService(ContentServitor.java:48)\r\n        at org.jboss.as.server.deployment.DeploymentHandlerUtil.doDeploy(DeploymentHandlerUtil.java:161)\r\n        at org.jboss.as.server.deployment.DeploymentHandlerUtil$5$1.handleResult(DeploymentHandlerUtil.java:331)\r\n        at org.jboss.as.controller.AbstractOperationContext$Step.invokeResultHandler(AbstractOperationContext.java:1384)\r\n        at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1366)\r\n        at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1328)\r\n        at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1311)\r\n        at org.jboss.as.controller.AbstractOperationContext$Step.access$300(AbstractOperationContext.java:1185)\r\n        at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:767)\r\n        at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:644)\r\n        at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)\r\n        at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1344)\r\n        at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:392)\r\n        at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:217)\r\n        at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:208)\r\n        at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$300(ModelControllerClientOperationHandler.java:130)\r\n        at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:152)\r\n        at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:148)\r\n        at java.security.AccessController.doPrivileged(AccessController.java:595)\r\n        at javax.security.auth.Subject.doAs(Subject.java:569)\r\n        at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:92)\r\n        at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:148)\r\n        at org.jboss.as.protocol.mgmt.AbstractMessageHandler$ManagementRequestContextImpl$1.doExecute(AbstractMessageHandler.java:363)\r\n        at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:472)\r\n        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1153)\r\n        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\r\n        at java.lang.Thread.run(Thread.java:785)\r\n        at org.jboss.threads.JBossThread.run(JBossThread.java:320)\r\n\r\n\r\n```\r\n\r\nIt seems to hang until that 300 sec. timeout is hit, though the test passes.\r\n\r\nThat's all I need for now, so I'm unlikely to pursue, but thought I'd mention this issue.\r\n"}}