1 Reply Latest reply on Oct 27, 2016 12:58 PM by Tomaz Cerar

    Batch jobs (jberet) do not work in domain mode

    Kumar Lakshmipathi Newbie

      Our JBERET batch jobs work in standalone mode, but fail in domain mode with the exception below.

      Jberet jars/setup/configuration is the same across both setups.

      Any help is appreciated. Thanks.

       

      161027 15:59:09 ERROR [management-operation] WFLYCTL0013: Operation ("read-attribute") failed - address: ([

          ("deployment" => "main.ear"),

          ("subdeployment" => "common.jar"),

          ("subsystem" => "batch-jberet"),

          ("job" => "CheyenneJob")

      ]): java.lang.NullPointerException

        at org.wildfly.extension.batch.jberet.deployment.JobOperationStepHandler.execute(JobOperationStepHandler.java:68)

        at org.jboss.as.controller.operations.global.ReadAttributeHandler.doExecuteInternal(ReadAttributeHandler.java:174) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.operations.global.ReadAttributeHandler.doExecute(ReadAttributeHandler.java:137) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.operations.global.GlobalOperationHandlers$AbstractMultiTargetHandler.execute(GlobalOperationHandlers.java:263) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.operations.global.GlobalOperationHandlers$AvailableResponseWrapper.execute(GlobalOperationHandlers.java:933) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1329) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:400) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:222) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler.internalExecute(TransactionalProtocolOperationHandler.java:247) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler.doExecute(TransactionalProtocolOperationHandler.java:185) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:138) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$1.run(TransactionalProtocolOperationHandler.java:134) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_111]

        at javax.security.auth.Subject.doAs(Subject.java:360) [rt.jar:1.8.0_111]

        at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:120) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:157) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2$1.run(TransactionalProtocolOperationHandler.java:153) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at java.security.AccessController.doPrivileged(Native Method) [rt.jar:1.8.0_111]

        at org.jboss.as.controller.remote.TransactionalProtocolOperationHandler$ExecuteRequestHandler$2.execute(TransactionalProtocolOperationHandler.java:153) [wildfly-controller-2.2.0.Final.jar:2.2.0.Final]

        at org.jboss.as.protocol.mgmt.AbstractMessageHandler$ManagementRequestContextImpl$1.doExecute(AbstractMessageHandler.java:363)

        at org.jboss.as.protocol.mgmt.AbstractMessageHandler$AsyncTaskRunner.run(AbstractMessageHandler.java:472)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_111]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_111]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_111]

        at org.jboss.threads.JBossThread.run(JBossThread.java:320)