AnsweredAssumed Answered

Error instantiating 5.10 process definition in 5.12

Question asked by mmaker1234 on Mar 14, 2013
Latest reply on Mar 18, 2013 by jbarrez
Hello Activiti developers,

I have a process definition developed with Activiti Designer 5.10 (for Activiti Engine 5.10). This definition is deployed and used to run flawlessly with Activiti Engine 5.10 and 5.11. Now I'm running Activiti Engine 5.12 and any attempt to instantiate the process definition leads to the following:
INFO | 2013-03-14 16:53:41.057 (1363272821057) | ExecuteThread: '2' for queue: 'default' | org.activiti.engine.impl.bpmn.deployer.BpmnDeployer | deploy
Processing resource MyProcess.MyProcess.png

INFO | 2013-03-14 16:53:41.058 (1363272821058) | ExecuteThread: '2' for queue: 'default' | org.activiti.engine.impl.bpmn.deployer.BpmnDeployer | deploy
Processing resource MyProcess.bpmn
ERROR:  ''

SEVERE | 2013-03-14 16:53:41.294 (1363272821294) | ExecuteThread: '2' for queue: 'default' | org.activiti.engine.impl.interceptor.CommandContext | close
Error while closing command context
org.activiti.engine.ActivitiException: Error parsing XML
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:181)
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)
        at org.activiti.engine.impl.persistence.deploy.DeploymentManager.deploy(DeploymentManager.java:42)
        at org.activiti.engine.impl.persistence.deploy.DeploymentManager.resolveProcessDefinition(DeploymentManager.java:95)
        at org.activiti.engine.impl.persistence.deploy.DeploymentManager.findDeployedLatestProcessDefinitionByKey(DeploymentManager.java:69)
        at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:64)
        at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:36)
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:61)
        at org.activiti.engine.impl.interceptor.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:60)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
        at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceByKey(RuntimeServiceImpl.java:62)
        …
Caused by: java.lang.RuntimeException: Could not validate XML with BPMN 2.0 XSD
        at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:206)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:170)
        … 60 more
Caused by: javax.xml.transform.TransformerException: java.lang.UnsupportedOperationException
        at com.sun.org.apache.xerces.internal.jaxp.validation.StAXValidatorHelper.validate(StAXValidatorHelper.java:98)
        at com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:118)
        at javax.xml.validation.Validator.validate(Validator.java:127)
        at org.activiti.bpmn.converter.BpmnXMLConverter.validateModel(BpmnXMLConverter.java:173)
        at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:198)
        … 61 more
Caused by: javax.xml.transform.TransformerException: java.lang.UnsupportedOperationException
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:732)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:336)
        at com.sun.org.apache.xerces.internal.jaxp.validation.StAXValidatorHelper.validate(StAXValidatorHelper.java:94)
        … 65 more
Caused by: java.lang.UnsupportedOperationException
        at weblogic.xml.stax.XMLStreamReaderBase.getTextCharacters(XMLStreamReaderBase.java:515)
        at com.sun.org.apache.xalan.internal.xsltc.trax.StAXStream2SAX.handleCharacters(StAXStream2SAX.java:261)
        at com.sun.org.apache.xalan.internal.xsltc.trax.StAXStream2SAX.bridge(StAXStream2SAX.java:171)
        at com.sun.org.apache.xalan.internal.xsltc.trax.StAXStream2SAX.parse(StAXStream2SAX.java:120)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:674)
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:723)
        … 67 more
Referring to the message "Could not validate XML with BPMN 2.0 XSD" I should note that the server, where the engine is running, is not allowed to connect to the Internet.

Any advice how to solve this problem?

Outcomes