cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti 5.12 and textAnnotation

brianshowers
Champ in-the-making
Champ in-the-making
After upgrading to Activiti 5.12, I see the following logged every time it parses a process that uses the <textAnnotation> field:


2013-03-21 19:13:19 WARN  org.activiti.engine.impl.bpmn.parser.BpmnParse Invalid reference in diagram interchange definition: could not find textannotation1

This didn't happen in 5.11.  Am I missing something that I need to do to make textAnnotation elements parse correctly?
7 REPLIES 7

frederikherema1
Star Contributor
Star Contributor
This is just a warning I presume, deploying it works fine? We're not parsing text-anotations in the process since they don't have any runtime value. Since it has a diagram-element associated to it (which we do parse) it will double-check the reference.

If it's just a warning, you can ignore this.

brianshowers
Champ in-the-making
Champ in-the-making
It is just a warning, but it's not something that we saw when using Activiti 5.11.  I also tried removing the association and I still got the warning.

If I start ignoring these warnings, is there a way to configure the parser so that we can tell the difference between warnings that we should pay attention to and warnings that we should ignore?  I'd hate to just start ignoring all warnings because then something might happen that we ignore but shouldn't.

frederikherema1
Star Contributor
Star Contributor
Since it's a warning that is actually not supposed to be shown (since there is actually a text-annotation element in the process, but just ignored by activiti), this is something we need to fix.

https://jira.codehaus.org/browse/ACT-1625

saatsch
Champ in-the-making
Champ in-the-making
Hello,

we are seeing the same with
- association
- lane
- pool

We have made the diagram with the activiti Designer. Maybe it could be made so that the Designer produces xml that does not lead to these warnings.


Would be sooo cool if you could fix that.

Also we are getting

<code>17:33:21,042 WARN  [org.activiti.engine.impl.bpmn.deployer.BpmnDeployer] (MSC service thread 1-13) Error while generating process diagram, image will not be stored in repository: j
ava.lang.NullPointerException
        at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator.initProcessDiagramCanvas(ProcessDiagramGenerator.java:531) [org-activiti-activiti-engine-5.12.jar:5.12]
        at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator.generateDiagram(ProcessDiagramGenerator.java:337) [org-activiti-activiti-engine-5.12.jar:5.12]
        at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator.generateDiagram(ProcessDiagramGenerator.java:363) [org-activiti-activiti-engine-5.12.jar:5.12]
        at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator.generatePngDiagram(ProcessDiagramGenerator.java:321) [org-activiti-activiti-engine-5.12.jar:5.12]
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:100) [org-activiti-activiti-engine-5.12.jar:5.12]
        at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:42) [org-activiti-activiti-engine-5.12.jar:5.12]
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:68) [org-activiti-activiti-engine-5.12.jar:5.12]
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:33) [org-activiti-activiti-engine-5.12.jar:5.12]
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [org-activiti-activiti-engine-5.12.jar:5.12] </code>

Thanks for the good work !
saatsch

trademak
Star Contributor
Star Contributor
Why do you say, we see the same with association, pool and lane? This is a different error message.
Can you add your process definition?

Best regards,

saatsch
Champ in-the-making
Champ in-the-making
Hi Tijs,
This is a different Error Message, that's why I wrote: Also we are getting… (meaning additionally) Here is a bigger snippet from our log:
<code>

15:32:19,583 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find pool2
15:32:19,583 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find lane2
15:32:19,598 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find lane3
15:32:19,598 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation1
15:32:19,598 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation2
15:32:19,598 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation3
15:32:19,598 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation4
15:32:19,598 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation7
15:32:19,598 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation8
15:32:19,614 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation9
15:32:19,614 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation13
15:32:19,614 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation14
15:32:19,614 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation19
15:32:19,614 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation20
15:32:19,614 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation21
15:32:19,614 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation22
15:32:19,630 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation23
15:32:19,630 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation24
15:32:19,630 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation25
15:32:19,630 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation26
15:32:19,630 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation27
15:32:19,630 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find textannotation28
15:32:19,630 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association1
15:32:19,630 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association4
15:32:19,645 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association8
15:32:19,645 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association13
15:32:19,645 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association14
15:32:19,645 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association19
15:32:19,645 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association20
15:32:19,645 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association21
15:32:19,645 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association23
15:32:19,645 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association26
15:32:19,661 WARN  [org.activiti.engine.impl.bpmn.parser.BpmnParse] (MSC service thread 1-11) Invalid reference in diagram interchange definition: could not find association28
15:32:19,661 WARN  [org.activiti.engine.impl.bpmn.deployer.BpmnDeployer] (MSC service thread 1-11) Error while generating process diagram, image will not be stored in repository: java.lang.NullPointerException
at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator.initProcessDiagramCanvas(ProcessDiagramGenerator.java:531) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator.generateDiagram(ProcessDiagramGenerator.java:337) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator.generateDiagram(ProcessDiagramGenerator.java:363) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.bpmn.diagram.ProcessDiagramGenerator.generatePngDiagram(ProcessDiagramGenerator.java:321) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:100) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:42) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:68) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:33) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:61) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:60) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:70) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:134) [org-activiti-activiti-engine-5.12.jar:5.12]
at org.activiti.cdi.impl.ProcessDeployer.deployProcesses(ProcessDeployer.java:88) [org-activiti-activiti-cdi-5.12.jar:]
at org.activiti.cdi.impl.ActivitiExtension.deployProcesses(ActivitiExtension.java:117) [org-activiti-activiti-cdi-5.12.jar:]
at org.activiti.cdi.impl.ActivitiExtension.afterDeploymentValidation(ActivitiExtension.java:70) [org-activiti-activiti-cdi-5.12.jar:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_17]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_17]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_17]
at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_17]
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:264) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:260) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:170) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:241) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:229) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:207) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bootstrap.events.AbstractDeploymentContainerEvent.fire(AbstractDeploymentContainerEvent.java:46) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bootstrap.events.AfterDeploymentValidationImpl.fire(AfterDeploymentValidationImpl.java:31) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:369) [weld-core-1.1.5.AS71.Final.jar:2012-02-10 15:31]
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.weld.services.WeldService.start(WeldService.java:76) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_17]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_17]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]


</code>

saatsch
Champ in-the-making
Champ in-the-making
OK I cured the NPE. For some reason there was an orphan process tag in the process definition: (process_pool1) (The definition was created with the activiti designer)

<code>
  <process id="process_pool1" name="process_pool1" isExecutable="true">
    <laneSet id="laneSet_process_pool1">
      <lane id="lane1"></lane>
    </laneSet>
  </process>
  <process id="pName" name="p Name" isExecutable="true">
    <laneSet id="laneSet_pName">
      <lane id="lane2" name="xxx">
        <flowNodeRef>startevent1</flowNodeRef>
        <flowNodeRef>exclusivegateway1</flowNodeRef>
        <flowNodeRef>boundaryerror1</flowNodeRef>
</code>

After deleting it, the NPE is gone.
I also tried to recreate the situation, but could not.
I will keep on trying for a little while and let you know when I can recreate it.

Btw Tijs: I bought your book 🙂
Greets
Saatsch