Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-5302

MultipleInstanceExample.java file is not working in here

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Optional
    • Resolution: Done
    • Affects Version/s: 7.0.0.Beta1
    • Fix Version/s: 7.0.0.Final
    • Component/s: Examples
    • Labels:
      None
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      When the source code runs it it gives error message as below...

      13:05:58.898 [main] ERROR o.d.core.xml.ExtensibleXmlParser - (null: 2, 583): cvc-elt.1: Cannot find the declaration of element 'definitions'.
      java.lang.IllegalArgumentException: Could not find target node for connection:_2
      at org.jbpm.bpmn2.xml.ProcessHandler.findNodeByIdOrUniqueIdInMetadata(ProcessHandler.java:288)
      at org.jbpm.bpmn2.xml.ProcessHandler.linkConnections(ProcessHandler.java:317)
      at org.jbpm.bpmn2.xml.ProcessHandler.end(ProcessHandler.java:184)
      at org.drools.core.xml.ExtensibleXmlParser.endElement(ExtensibleXmlParser.java:439)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
      at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.endElement(XMLSchemaValidator.java:863)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1782)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2973)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
      at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
      at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
      at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
      at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
      at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:649)
      at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:333)
      at org.drools.core.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:318)
      at org.drools.core.xml.ExtensibleXmlParser.read(ExtensibleXmlParser.java:180)
      at org.jbpm.compiler.xml.XmlProcessReader.read(XmlProcessReader.java:61)
      at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:284)
      at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addProcessFromXml(KnowledgeBuilderImpl.java:711)
      at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addKnowledgeResource(KnowledgeBuilderImpl.java:764)
      at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:2239)
      at org.drools.compiler.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:2228)
      at org.jbpm.runtime.manager.impl.SimpleRuntimeEnvironment.addAsset(SimpleRuntimeEnvironment.java:162)
      at org.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder.addAsset(RuntimeEnvironmentBuilder.java:341)
      at org.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder.addAsset(RuntimeEnvironmentBuilder.java:74)
      at org.jbpm.examples.multipleinstance.MultipleInstanceExample.getRuntimeManager(MultipleInstanceExample.java:72)
      at org.jbpm.examples.multipleinstance.MultipleInstanceExample.main(MultipleInstanceExample.java:39)
      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:497)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
      java.lang.IllegalArgumentException: Cannot add asset: unable to parse xml : Exception class java.lang.IllegalArgumentException : Could not find target node for connection:_2,
      at org.jbpm.runtime.manager.impl.SimpleRuntimeEnvironment.addAsset(SimpleRuntimeEnvironment.java:171)
      at org.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder.addAsset(RuntimeEnvironmentBuilder.java:341)
      at org.jbpm.runtime.manager.impl.RuntimeEnvironmentBuilder.addAsset(RuntimeEnvironmentBuilder.java:74)
      at org.jbpm.examples.multipleinstance.MultipleInstanceExample.getRuntimeManager(MultipleInstanceExample.java:72)
      at org.jbpm.examples.multipleinstance.MultipleInstanceExample.main(MultipleInstanceExample.java:39)
      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:497)
      at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                psiroky Petr Široký
                Reporter:
                gihanwijesinghe Gihan Wijesinghe
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: