AnsweredAssumed Answered

Strange error: 'is not a valid value for 'NCName''

Question asked by m2spring on Apr 20, 2012
Latest reply on Apr 28, 2012 by m2spring
I'm integrating the Activiti 5.9 engine into another Java application.
I have a couple of unit tests which execute test workflows and they have been succeeding for a while now.
Yesterday I upgraded my Designer to 5.9.1 (although 5.9.1 didn't produce different .bpmn files than 5.9).
My tests are failing with this log:

=== Starting SimpleWfRunTest.testSimpleWfRun
Apr 20, 2012 9:12:57 AM org.example.step.jenkins.plugins.jenkow.EclipseResources ensureWorkflowDefinition
INFO: generating workflow definition /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn
Apr 20, 2012 9:13:02 AM org.example.step.jenkins.plugins.jenkow.JenkowEngine getEngine
INFO: engineConfig=null
Apr 20, 2012 9:13:04 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource
INFO: performing create on engine with resource org/activiti/db/create/activiti.h2.create.engine.sql
Apr 20, 2012 9:13:04 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource
INFO: performing create on history with resource org/activiti/db/create/activiti.h2.create.history.sql
Apr 20, 2012 9:13:04 AM org.activiti.engine.impl.db.DbSqlSession executeSchemaResource
INFO: performing create on identity with resource org/activiti/db/create/activiti.h2.create.identity.sql
Apr 20, 2012 9:13:04 AM org.activiti.engine.impl.ProcessEngineImpl <init>
INFO: ProcessEngine default created
Apr 20, 2012 9:13:04 AM org.activiti.engine.impl.bpmn.deployer.BpmnDeployer deploy
INFO: Processing resource /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml
Apr 20, 2012 9:13:04 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XMLSchema currently not supported as typeLanguage
Apr 20, 2012 9:13:04 AM org.activiti.engine.impl.bpmn.parser.BpmnParse parseDefinitionsAttributes
INFO: XPath currently not supported as expressionLanguage
Apr 20, 2012 9:13:04 AM org.activiti.engine.impl.interceptor.CommandContext close
SEVERE: Error while closing command context
org.activiti.engine.ActivitiException: cvc-datatype-valid.1.2.1: '/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2' is not a valid value for 'NCName'. | /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml | line 3 | column 168
cvc-attribute.3: The value '/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2' of attribute 'id' on element 'process' is not valid with respect to its type, 'ID'. | /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml | line 3 | column 168
cvc-datatype-valid.1.2.1: 'BPMNDiagram_/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2' is not a valid value for 'NCName'. | /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml | line 13 | column 112
cvc-attribute.3: The value 'BPMNDiagram_/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2' of attribute 'id' on element 'bpmndi:BPMNDiagram' is not valid with respect to its type, 'ID'. | /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml | line 13 | column 112
cvc-datatype-valid.1.2.1: '/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2' is not a valid value for 'QName'. | /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml | line 14 | column 196
cvc-attribute.3: The value '/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2' of attribute 'bpmnElement' on element 'bpmndi:BPMNPlane' is not valid with respect to its type, 'QName'. | /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml | line 14 | column 196
cvc-datatype-valid.1.2.1: 'BPMNPlane_/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2' is not a valid value for 'NCName'. | /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml | line 14 | column 196
cvc-attribute.3: The value 'BPMNPlane_/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2' of attribute 'id' on element 'bpmndi:BPMNPlane' is not valid with respect to its type, 'ID'. | /tmp/hudson2615730685910590511test/workflows/src/main/resources/diagrams/scratch/jenkow/jenkow-plugin/target/test-classes/diagrams/SimpleWfRun2.bpmn20.xml | line 14 | column 196
        at org.activiti.engine.impl.util.xml.Parse.throwActivitiExceptionForErrors(Parse.java:186)
        at org.activiti.engine.impl.bpmn.parser.BpmnParse.execute(BpmnParse.java:222)
        at org.activiti.engine.impl.bpmn.deployer.BpmnDeployer.deploy(BpmnDeployer.java:86)
        at org.activiti.engine.impl.persistence.deploy.DeploymentCache.deploy(DeploymentCache.java:38)
        at org.activiti.engine.impl.persistence.entity.DeploymentManager.insertDeployment(DeploymentManager.java:42)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:58)
        at org.activiti.engine.impl.cmd.DeployCmd.execute(DeployCmd.java:30)
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24)
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:42)
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33)
        at org.activiti.engine.impl.RepositoryServiceImpl.deploy(RepositoryServiceImpl.java:46)
        at org.activiti.engine.impl.repository.DeploymentBuilderImpl.deploy(DeploymentBuilderImpl.java:106)
This is the .bpmn file:

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/test">
  <process id="process1" name="process1">
    <startEvent id="startevent1" name="Start"></startEvent>
    <endEvent id="endevent1" name="End"></endEvent>
    <scriptTask id="scripttask1" name="Script Task">
      <script></script>
    </scriptTask>
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="scripttask1"></sequenceFlow>
    <sequenceFlow id="flow2" name="" sourceRef="scripttask1" targetRef="endevent1"></sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_process1">
    <bpmndi:BPMNPlane bpmnElement="process1" id="BPMNPlane_process1">
      <bpmndi:BPMNShape bpmnElement="startevent1" id="BPMNShape_startevent1">
        <omgdc:Bounds height="35" width="35" x="400" y="110"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="endevent1" id="BPMNShape_endevent1">
        <omgdc:Bounds height="35" width="35" x="400" y="310"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="scripttask1" id="BPMNShape_scripttask1">
        <omgdc:Bounds height="55" width="105" x="410" y="220"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="flow1" id="BPMNEdge_flow1">
        <omgdi:waypoint x="417" y="145"></omgdi:waypoint>
        <omgdi:waypoint x="462" y="220"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="flow2" id="BPMNEdge_flow2">
        <omgdi:waypoint x="462" y="275"></omgdi:waypoint>
        <omgdi:waypoint x="417" y="310"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>
I can't make any sense out of the error messages relative to the .bpmn file.
What might be going on here?
Any pointer would be appreciated.
-Max

Outcomes