JBpm deployments persistence after restarting wildfly service

586 views
Skip to first unread message

Laura delli Paoli

unread,
Aug 18, 2017, 5:19:17 AM8/18/17
to Drools Usage
Hi,
I'm having trouble with jBpm projects deployments (jbpm istance is in a docker derived from https://hub.docker.com/r/jboss/jbpm-workbench-showcase/ with version 6.5, but I don't think it is a contenerization related issue).

I have a process A. I'm able to deploy and run it.

If I edit process A and I deploy it again (by running buid & Deploy action) Process Definition showed in "Process Management > Process Definitions" is not updated.

The only way to have the process deployment updated is to undeploy the deployment and run a manual deploy (i.e. Deploy > Process Deployment > [New Deployment Unit]).

By performing this operation I'm able to run updated process until I stop my container (or my service). Once I start the container (or the service) again the old version of the process is executed.

Application server log shows messages like the following ones:
2017-08-16 08:19:56,765 WARN [org.jboss.as.ejb3] (EJB default - 7) WFLYEJB0043: A previous execution of timer [id=d36736c8-65cd-4417-b95e-ccc274bb8fbd timedObjectId=jbpm-console.jbpm-console.DeploymentSynchronizerCDInvoker auto-timer?:false persistent?:false timerService=org.jboss.as.ejb3.timerservice.TimerServiceImpl@4d695e6f initialExpiration=null intervalDuration(in milli sec)=0 nextExpiration=Wed Aug 16 08:19:54 UTC 2017 timerState=IN_TIMEOUT info=null] is still in progress, skipping this overlapping scheduled execution at: Wed Aug 16 08:19:56 UTC 2017.


2017-08-16 08:19:59,273 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 10) (null: 1,357, 57): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:documentation'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":auditing, "http://www.omg.org/spec/BPMN/20100524/MODEL":monitoring, "http://www.omg.org/spec/BPMN/20100524/MODEL":categoryValueRef, "http://www.omg.org/spec/BPMN/20100524/MODEL":conditionExpression}' is expected.
2017-08-16 08:19:59,483 ERROR [org.drools.core.xml.ExtensibleXmlParser] (EJB default - 10) (null: 444, 57): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:documentation'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":auditing, "http://www.omg.org/spec/BPMN/20100524/MODEL":monitoring, "http://www.omg.org/spec/BPMN/20100524/MODEL":categoryValueRef, "http://www.omg.org/spec/BPMN/20100524/MODEL":incoming, "http://www.omg.org/spec/BPMN/20100524/MODEL":outgoing, "http://www.omg.org/spec/BPMN/20100524/MODEL":property, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataOutput, "http://www.omg.org/spec/BPMN/20100524/MODEL":dataOutputAssociation, "http://www.omg.org/spec/BPMN/20100524/MODEL":outputSet, "http://www.omg.org/spec/BPMN/20100524/MODEL":eventDefinition, "http://www.omg.org/spec/BPMN/20100524/MODEL":eventDefinitionRef}' is expected.

Can anyone help me?

Thanks,

Laura

Maciej Swiderski

unread,
Aug 18, 2017, 6:52:03 AM8/18/17
to drools...@googlegroups.com
Looks like you’re not changing the version of the project when redeploying. General rule in maven is that you should up the version whenever making changes. The only exception of this rule is when using snapshots. So I’d recommend to double check this.

Maciej
> --
> You received this message because you are subscribed to the Google Groups "Drools Usage" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
> To post to this group, send email to drools...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/77fd35dc-35b6-49b3-b099-4fb98298a288%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

nonSonoPaola

unread,
Sep 17, 2017, 6:27:39 AM9/17/17
to drools...@googlegroups.com
Hi Maciej,
How can I change project version in jbpm-console?

Laura

> To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
> To post to this group, send email to drools...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/77fd35dc-35b6-49b3-b099-4fb98298a288%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/LWvu6ycszVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

Maciej Swiderski

unread,
Sep 18, 2017, 4:49:12 AM9/18/17
to drools...@googlegroups.com
via project editor perspective

Maciej
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.

To post to this group, send email to drools...@googlegroups.com.

nonSonoPaola

unread,
Sep 18, 2017, 9:42:17 AM9/18/17
to drools...@googlegroups.com
Hi, 
project editor perspective has many sub-section.

The only one where version is editable is persistence but if I change it deploy fails as deployment manager can't find version 2.0 (original was 1.0)

Laura

via project editor perspective

Maciej

--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/LWvu6ycszVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

nonSonoPaola

unread,
Sep 18, 2017, 12:27:57 PM9/18/17
to drools...@googlegroups.com
Hi, 
I was able to change deployment version by updating:
* persistence.xml (persistence-unitname);
* kie-deployment-descriptor.xml (removed marshalling-strategy, updated persistence-unit name)

but when I restart the service I have the 1.1 version (the second one) not deployed and the following error:

2017-09-18 16:08:21,420 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 5) KieModule was added: ZipKieModule[releaseId=eu.di:Sebulba:1.0,file=/opt/jboss/.m2/repository/eu/di/Sebulba/1.0/Sebulba-1.0.jar]
2017-09-18 16:08:21,960 INFO  [org.drools.compiler.kie.builder.impl.KieRepositoryImpl] (EJB default - 5) KieModule was added: ZipKieModule[releaseId=eu.di:Sebulba:1.1,file=/opt/jboss/.m2/repository/eu/di/Sebulba/1.1/Sebulba-1.1.jar]
2017-09-18 16:08:22,468 WARN  [org.jbpm.kie.services.impl.KModuleDeploymentService] (EJB default - 5) Unexpected error while deploying unit eu.di:Sebulba:1.1: [Error: could not create constructor: null]
[Near : {... new org.drools.persistence.jpa.mar ....}]
                 ^
[Line: 1, Column: 5]
at org.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeObjectCreation(ReflectiveAccessorOptimizer.java:1245)
at org.mvel2.ast.NewObjectNode.getReducedValueAccelerated(NewObjectNode.java:218)
at org.mvel2.compiler.ExecutableAccessor.getValue(ExecutableAccessor.java:42)
at org.mvel2.MVEL.executeExpression(MVEL.java:968)
at org.drools.core.util.MVELSafeHelper$RawMVELEvaluator.executeExpression(MVELSafeHelper.java:511)
at org.jbpm.runtime.manager.impl.deploy.MVELObjectModelResolver.getInstance(MVELObjectModelResolver.java:59)
at org.jbpm.kie.services.impl.KModuleDeploymentService.getInstanceFromModel(KModuleDeploymentService.java:339)
at org.jbpm.kie.services.impl.KModuleDeploymentService.boostrapRuntimeEnvironmentBuilder(KModuleDeploymentService.java:288)
at org.jbpm.kie.services.impl.KModuleDeploymentService.deploy(KModuleDeploymentService.java:189)
at org.jbpm.services.cdi.impl.DeploymentServiceCDIImpl$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
at org.jbpm.kie.services.impl.store.DeploymentSynchronizer.synchronize(DeploymentSynchronizer.java:98)
at org.jbpm.services.cdi.impl.store.DeploymentSynchronizerCDIImpl$Proxy$_$$_WeldClientProxy.synchronize(Unknown Source)
at org.jbpm.services.cdi.impl.store.DeploymentSynchronizerCDInvoker.synchronize(DeploymentSynchronizerCDInvoker.java:86)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:57)
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:61)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82)
at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:95)
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:61)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:57)
at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:61)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.as.ejb3.tx.EjbBMTInterceptor.handleInvocation(EjbBMTInterceptor.java:103)
at org.jboss.as.ejb3.tx.BMTInterceptor.processInvocation(BMTInterceptor.java:58)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:73)
at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)
at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:53)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437)
at org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:110)
at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340)
at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64)


2017-08-18 12:51 GMT+02:00 Maciej Swiderski <swidersk...@gmail.com>:
> To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
> To post to this group, send email to drools...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/77fd35dc-35b6-49b3-b099-4fb98298a288%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

--

You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/LWvu6ycszVs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.

nonSonoPaola

unread,
Sep 19, 2017, 12:54:22 PM9/19/17
to drools...@googlegroups.com
Hi, 
I was able to solve this problem. The owner of the Organizational Unit should be a jBpm user.

HTH,

Laura
Reply all
Reply to author
Forward
0 new messages