3 Replies Latest reply on Feb 3, 2015 1:35 AM by swiderski.maciej

    jbpm-console.war error when deploy process in domain mode

    michelep

      Hello, I have deployed the jbpm-console.war in domain. It seems to be all ok, but when I try to build and deploy my process I have an exception in the master node. If i try to build and deploy the same process in the slave node it runs successfully.

      I have followed the Wildfly guide to configure the server in cluster mode and this guide to deploy the jbpm-console webapp.

      This is my host.xml file for master node:

       

       

      <servers>

              <server name="server-one" group="other-server-group">

                  <system-properties>

                      <property name="org.quartz.properties" value="/tmp/quartz-definition.properties" boot-time="false"/>

                      <property name="jboss.node.name" value="nodeOne" boot-time="false"/>

                      <property name="org.uberfire.cluster.id" value="jbpm-cluster" boot-time="false"/>

                      <property name="org.uberfire.cluster.zk" value="10.28.121.146:2181" boot-time="false"/>

                      <property name="org.uberfire.cluster.local.id" value="nodeOne_11" boot-time="false"/>

                      <property name="org.uberfire.cluster.vfs.lock" value="vfs-repo" boot-time="false"/>

                      <property name="org.uberfire.nio.git.daemon.enabled" value="true" boot-time="false"/>

                      <property name="org.uberfire.nio.git.daemon.host" value="10.28.121.145" boot-time="false"/>

                      <property name="org.uberfire.nio.git.daemon.port" value="9418" boot-time="false"/>

                      <property name="org.uberfire.nio.git.ssh.enabled" value="true" boot-time="false"/>

                      <property name="org.uberfire.nio.git.ssh.host" value="10.28.121.145" boot-time="false"/>

                      <property name="org.uberfire.nio.git.ssh.port" value="8001"/>

                      <property name="org.uberfire.cluster.autostart" value="false" boot-time="false"/>

                      <property name="org.uberfire.metadata.index.dir" value="/opt/jbpm-installer/wildfly-8.1.0.Final/domain/tmp/" boot-time="false"/>

                      <property name="org.kie.demo" value="false"/>

                  </system-properties>

                  <jvm name="default" debug-enabled="false">

                      <heap size="2048m" max-size="2048m"/>

                  </jvm>

              </server>

       

       

      This is my host.xml file for slave node:

      <servers>

              <server name="server-one" group="other-server-group">

                  <!-- Remote JPDA debugging for a specific server

                  <jvm name="default">

                    <jvm-options>

                      <option value="-agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"/>

                    </jvm-options>

                 </jvm>

                 -->

       

       

                 <system-properties>

                      <property name="org.quartz.properties" value="/opt/jbpm-installer/quartz-definition.properties" boot-time="false"/>

                      <property name="jboss.node.name" value="nodeTwo" boot-time="false"/>

                      <property name="org.uberfire.cluster.id" value="jbpm-cluster" boot-time="false"/>

                      <property name="org.uberfire.cluster.zk" value="10.28.121.146:2181" boot-time="false" />

                      <property name="org.uberfire.cluster.local.id" value="nodeTwo_22" boot-time="false" />

                      <property name="org.uberfire.cluster.vfs.lock" value="vfs-repo" boot-time="false" />

                      <property name="org.uberfire.nio.git.daemon.enabled" value="true" boot-time="false" />

                      <property name="org.uberfire.nio.git.daemon.host" value="10.28.121.165" boot-time="false"/>

                      <property name="org.uberfire.nio.git.daemon.port" value="9419" boot-time="false"/>

                      <property name="org.uberfire.nio.git.ssh.enabled" value="true" boot-time="false"/>

                      <property name="org.uberfire.nio.git.ssh.host" value="10.28.121.165" boot-time="false"/>

                      <property name="org.uberfire.nio.git.ssh.port" value="8002" />

                      <property name="org.uberfire.cluster.autostart" value="false" boot-time="false"/>

                      <property name="org.uberfire.metadata.index.dir" value="/opt/jbpm-installer/wildfly-8.1.0.Final/domain/tmp/" boot-time="false"/>

                      <property name="org.kie.demo" value="false" />   

                  </system-properties>

                  <jvm name="default" debug-enabled="false">

                      <heap size="2048m" max-size="2048m"/>

                  </jvm>

              </server>

        • 1. Re: jbpm-console.war error when deploy process in domain mode
          swiderski.maciej

          what's the exception you receive? is it related to your project... and I assume you have configured zookeeper and helix for vfs clustering support.

           

          HTH

          • 2. Re: jbpm-console.war error when deploy process in domain mode
            michelep

            I have resolved my problem. There was an error in my host.xml file. The path of quartz property was incorrect. Now I have another problem. When I build and deploy my project in node-one, in the second node I have an error "Cannot deploy...null point exception" . I've resolved deploying (by the jbpm-console) in the second node the same project, but is this the correct way?

             

            This is the log

             

            2015-01-30 18:08:31,010 WARN  [org.uberfire.backend.server.deployment.DeploymentConfigServiceImpl] (pool-13-thread-1) Deployment org.test.process:process:1.0 failed to deploy due to java.lang.NullPointerException: org.jbpm.console.ng.bd.exception.DeploymentException: java.lang.NullPointerException

              at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deploy(DeploymentManagerEntryPointImpl.java:119) [jbpm-console-ng-business-domain-backend-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deployOnEvent(DeploymentManagerEntryPointImpl.java:281) [jbpm-console-ng-business-domain-backend-6.1.0.Final.jar:6.1.0.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]

              at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:266) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:232) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:169) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:165) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.TransactionalObserverNotifier.notifyObserver(TransactionalObserverNotifier.java:46) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:119) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:112) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.EventImpl.fire(EventImpl.java:83) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.uberfire.backend.server.deployment.DeploymentConfigServiceImpl.updateRegisteredDeployments(DeploymentConfigServiceImpl.java:106) [uberfire-backend-server-0.4.0.Final.jar:0.4.0.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]

              at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]

              at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:93) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:266) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:232) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:169) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverNotifier.notifyObserver(ObserverNotifier.java:165) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.TransactionalObserverNotifier.notifyObserver(TransactionalObserverNotifier.java:46) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverNotifier.notifyObservers(ObserverNotifier.java:119) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:112) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.weld.event.EventImpl.fire(EventImpl.java:83) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.uberfire.backend.server.config.watch.ConfigServiceWatchServiceExecutorImpl.execute(ConfigServiceWatchServiceExecutorImpl.java:62) [uberfire-backend-server-0.4.0.Final.jar:0.4.0.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_25]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_25]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_25]

              at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_25]

              at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

              at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

              at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

              at org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:104) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

              at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

              at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:52) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:260) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:324) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:237) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

              at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)

              at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

              at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)

              at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)

              at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

              at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

              at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73)

              at org.uberfire.backend.server.config.watch.ConfigServiceWatchServiceExecutor$$$view9.execute(Unknown Source) [uberfire-backend-server-0.4.0.Final.jar:0.4.0.Final]

              at org.uberfire.backend.server.config.ConfigurationServiceImpl$CheckConfigurationUpdates.execute(ConfigurationServiceImpl.java:350) [uberfire-backend-server-0.4.0.Final.jar:0.4.0.Final]

              at org.uberfire.backend.server.config.ConfigurationServiceImpl$1.run(ConfigurationServiceImpl.java:127) [uberfire-backend-server-0.4.0.Final.jar:0.4.0.Final]

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

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

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

            Caused by: java.lang.RuntimeException: java.lang.NullPointerException

              at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:143) [jbpm-kie-services-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.kie.services.impl.KModuleDeploymentService$Proxy$_$$_WeldClientProxy.deploy(Unknown Source) [jbpm-kie-services-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl.deploy(DeploymentManagerEntryPointImpl.java:113) [jbpm-console-ng-business-domain-backend-6.1.0.Final.jar:6.1.0.Final]

              ... 105 more

            Caused by: java.lang.NullPointerException

              at org.jbpm.kie.services.impl.AbstractDeploymentService.commonDeploy(AbstractDeploymentService.java:111) [jbpm-kie-services-6.1.0.Final.jar:6.1.0.Final]

              at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:138) [jbpm-kie-services-6.1.0.Final.jar:6.1.0.Final]

              ... 107 more

            • 3. Re: jbpm-console.war error when deploy process in domain mode
              swiderski.maciej

              looks there is an issue when attempting to deploy that on second node that is failing to create runtime manager. But then in the catch statement it tries to close runtime manager as it was not properly deployed but it is null and that hides the real exception.See here. So you might try to debug it to check why it failed on sync attempt but worked when manually deployed there.

               

              HTH