Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4482

Process instance creation fails with org.xmlpull.v1.XmlPullParserException ERROR in VariableScope.validateVariable

XMLWordPrintable

    • 2022 Week 32-34 (from Aug 8)

      Starting a process instance fails with the following exception:

      08:51:08,560 ERROR [org.kie.server.remote.rest.jbpm.ProcessResource] (default task-2) Unexpected error during processing [MIProcess:2,214 - ForEachSplit:1] -- : org.jbpm.workflow.instance.WorkflowRuntimeException: [MIProcess:2,214 - ForEachSplit:1] -- 
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:213)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:415)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:393)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:362)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.node.CompositeNodeInstance$CompositeNodeStartInstance.triggerCompleted(CompositeNodeInstance.java:349)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.node.CompositeNodeInstance$CompositeNodeStartInstance.internalTrigger(CompositeNodeInstance.java:345)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:207)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.node.CompositeNodeInstance.internalTrigger(CompositeNodeInstance.java:132)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:207)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:415)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:393)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:362)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.node.ActionNodeInstance.triggerCompleted(ActionNodeInstance.java:73)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.node.ActionNodeInstance.internalTrigger(ActionNodeInstance.java:49)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:207)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:415)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerNodeInstance(NodeInstanceImpl.java:393)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:362)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.node.StartNodeInstance.triggerCompleted(StartNodeInstance.java:72)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.node.StartNodeInstance.internalTrigger(StartNodeInstance.java:43)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:207)
      	at deployment.kie-server.war//org.jbpm.ruleflow.instance.RuleFlowProcessInstance.internalStart(RuleFlowProcessInstance.java:40)
      	at deployment.kie-server.war//org.jbpm.process.instance.impl.ProcessInstanceImpl.start(ProcessInstanceImpl.java:248)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.start(WorkflowProcessInstanceImpl.java:559)
      	at deployment.kie-server.war//org.jbpm.process.instance.ProcessRuntimeImpl.startProcessInstance(ProcessRuntimeImpl.java:261)
      	at deployment.kie-server.war//org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:218)
      	at deployment.kie-server.war//org.jbpm.process.instance.ProcessRuntimeImpl.startProcess(ProcessRuntimeImpl.java:211)
      	at deployment.kie-server.war//org.drools.core.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKnowledgeSessionImpl.java:1831)
      	at deployment.kie-server.war//org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:134)
      	at deployment.kie-server.war//org.drools.core.command.runtime.process.StartProcessCommand.execute(StartProcessCommand.java:41)
      	at deployment.kie-server.war//org.drools.core.fluent.impl.PseudoClockRunner.executeBatch(PseudoClockRunner.java:102)
      	at deployment.kie-server.war//org.drools.core.fluent.impl.PseudoClockRunner.executeBatches(PseudoClockRunner.java:69)
      	at deployment.kie-server.war//org.drools.core.fluent.impl.PseudoClockRunner.execute(PseudoClockRunner.java:61)
      	at deployment.kie-server.war//org.drools.core.fluent.impl.PseudoClockRunner.execute(PseudoClockRunner.java:39)
      	at deployment.kie-server.war//org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:39)
      	at deployment.kie-server.war//org.drools.persistence.PersistableRunner$TransactionInterceptor.execute(PersistableRunner.java:608)
      	at deployment.kie-server.war//org.drools.persistence.PersistableRunner$TransactionInterceptor.execute(PersistableRunner.java:568)
      	at deployment.kie-server.war//org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:39)
      	at deployment.kie-server.war//org.drools.persistence.jpa.OptimisticLockRetryInterceptor.internalExecute(OptimisticLockRetryInterceptor.java:102)
      	at deployment.kie-server.war//org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:83)
      	at deployment.kie-server.war//org.drools.persistence.jpa.OptimisticLockRetryInterceptor.execute(OptimisticLockRetryInterceptor.java:44)
      	at deployment.kie-server.war//org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:39)
      	at deployment.kie-server.war//org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:73)
      	at deployment.kie-server.war//org.drools.persistence.jta.TransactionLockInterceptor.execute(TransactionLockInterceptor.java:45)
      	at deployment.kie-server.war//org.drools.core.command.impl.AbstractInterceptor.executeNext(AbstractInterceptor.java:39)
      	at deployment.kie-server.war//org.jbpm.runtime.manager.impl.error.ExecutionErrorHandlerInterceptor.internalExecute(ExecutionErrorHandlerInterceptor.java:66)
      	at deployment.kie-server.war//org.jbpm.runtime.manager.impl.error.ExecutionErrorHandlerInterceptor.execute(ExecutionErrorHandlerInterceptor.java:52)
      	at deployment.kie-server.war//org.jbpm.runtime.manager.impl.error.ExecutionErrorHandlerInterceptor.execute(ExecutionErrorHandlerInterceptor.java:29)
      	at deployment.kie-server.war//org.drools.persistence.PersistableRunner.execute(PersistableRunner.java:400)
      	at deployment.kie-server.war//org.drools.persistence.PersistableRunner.execute(PersistableRunner.java:68)
      	at deployment.kie-server.war//org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:37)
      	at deployment.kie-server.war//org.drools.core.runtime.InternalLocalRunner.execute(InternalLocalRunner.java:41)
      	at deployment.kie-server.war//org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:275)
      	at deployment.kie-server.war//org.drools.core.command.impl.CommandBasedStatefulKnowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:263)
      	at deployment.kie-server.war//org.jbpm.kie.services.impl.ProcessServiceImpl.startProcess(ProcessServiceImpl.java:186)
      	at deployment.kie-server.war//org.kie.server.services.jbpm.ProcessServiceBase.startProcess(ProcessServiceBase.java:115)
      	at deployment.kie-server.war//org.kie.server.remote.rest.jbpm.ProcessResource.startProcess(ProcessResource.java:183)
      ...
      Caused by: com.thoughtworks.xstream.io.StreamException: 
      	at deployment.kie-server.war//com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:124)
      	at deployment.kie-server.war//com.thoughtworks.xstream.io.xml.AbstractPullReader.readRealEvent(AbstractPullReader.java:148)
      	at deployment.kie-server.war//com.thoughtworks.xstream.io.xml.AbstractPullReader.readEvent(AbstractPullReader.java:141)
      	at deployment.kie-server.war//com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:118)
      	at deployment.kie-server.war//com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103)
      	at deployment.kie-server.war//com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63)
      	at deployment.kie-server.war//com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54)
      	at deployment.kie-server.war//com.thoughtworks.xstream.XStream.fromXML(XStream.java:1284)
      	at deployment.kie-server.war//com.thoughtworks.xstream.XStream.fromXML(XStream.java:1275)
      	at deployment.kie-server.war//org.jbpm.process.core.datatype.impl.type.ObjectDataType.readValue(ObjectDataType.java:94)
      	at deployment.kie-server.war//org.jbpm.process.core.context.variable.VariableScope.validateVariable(VariableScope.java:113)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.node.ForEachNodeInstance$ForEachSplitNodeInstance.internalTrigger(ForEachNodeInstance.java:151)
      	at deployment.kie-server.war//org.jbpm.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:207)
      	... 125 more
      Caused by: org.xmlpull.v1.XmlPullParserException: only whitespace content allowed before start tag and not v (position: START_DOCUMENT seen v... @1:2) 
      	at deployment.kie-server.war//io.github.xstream.mxparser.MXParser.parseProlog(MXParser.java:1528)
      	at deployment.kie-server.war//io.github.xstream.mxparser.MXParser.nextImpl(MXParser.java:1406)
      	at deployment.kie-server.war//io.github.xstream.mxparser.MXParser.next(MXParser.java:1104)
      	at deployment.kie-server.war//com.thoughtworks.xstream.io.xml.XppReader.pullNextEvent(XppReader.java:109)
      	... 137 more
      

      Executing the same process in 7.12 worked without issues.

              rhn-support-mputz Martin Weiler (Inactive)
              rhn-support-mputz Martin Weiler (Inactive)
              Antonio Fernandez Alhambra Antonio Fernandez Alhambra (Inactive)
              Antonio Fernandez Alhambra Antonio Fernandez Alhambra (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: