5 Replies Latest reply on Jan 26, 2007 10:38 AM by kukeltje

    Error Parsing XML Process Definition - JpdlXmlReader

    monkmanusa

      Hi,
      I have successfully deployed the jBPM starter kit, and I am using our own JAVA application to create a process definition using the
      ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(wfdefinitionxml); where wfdefinitionxml is obviously a string that contains the xml....
      I tried to start really simply by using the "Hello World" xml example in the Getting Started Tutorial which is extremly simple.....

      But I seem to be getting an error on the parseXmlString, in my console I see the following:

      About to create the process definition by parsing the xml
      13:15:07,140 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.0.xsd)
      13:15:07,140 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.0.xsd' resource
      13:15:07,171 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.0.xsd)
      13:15:07,171 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.0.xsd' resource
      13:15:07,203 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : resolving schema reference publicId(null) systemId(http://jbpm.org/jpdl-3.1.xsd)
      13:15:07,203 [Thread-19] DEBUG JpdlParser$JpdlEntityResolver : providing input source to local 'jpdl-3.1.xsd' resource
      19/Jan 13:15.07: - 133300224 - 117607696 - org.jbpm.jpdl.JpdlException: [[ERROR] line 1: TargetNamespace.1: Expecting namespace 'urn:jbpm.org:jpdl-3.
      0', but the target namespace of the schema document is 'http://jbpm.org/3/jpdl'., [ERROR] line 1: cos-ct-extends.1.4.2.2.2.2.1: Error for type '#AnonT
      ype_assignment'. The content type of a derived type and that of its base must both be mixed or element-only., [ERROR] line 1: st-props-correct.2: cir
      cular definitions detected for type ':node-elements'.]
      at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
      at org.jbpm.graph.def.ProcessDefinition.parseXmlString(ProcessDefinition.java:143)
      at com.configsc.user.Formula_Development_JBPM1_DEPLOYWF.executeFormula(Formula_Development_JBPM1_DEPLOYWF.java:48)
      at com.configsc.user.Infusion.AddInfusionResult(Infusion.java:359)
      at com.configsc.user.Infusion_Development_JBPM1_GO.executeInfusion(Infusion_Development_JBPM1_GO.java:40)
      at com.configsc.user.Infusion_Development_JBPM1.executeRules(Infusion_Development_JBPM1.java:80)
      at com.configsc.server.InfusionPull.ExecuteInfusion(InfusionPull.java:65)
      at com.configsc.server.ProductMap.ExecuteInfusion(ProductMap.java:3476)
      at com.configsc.server.ProductMap.setSelected(ProductMap.java:2315)
      at com.configsc.csservercontroller.ConfigServer.setDetailSelection(ConfigServer.java:799)
      at com.configsc.csservercontroller.ConfigServer.processInstruction(ConfigServer.java:304)
      at com.configsc.csservercontroller.MasterServer.processInstruction(MasterServer.java:90)
      at com.configsc.csservercontroller.ServerThread.run(ServerThread.java:227)

      The first line you see is just the output from a System.out.println that lets me know where I am in the java.

      Anyone any ideas as to what may be causing this?
      I'm kinda stuck until I can get this thing to do what its supposed to....
      Many Thanks,
      monkmanusa

        • 1. Re: Error Parsing XML Process Definition - JpdlXmlReader
          kukeltje

          uhhhmmmm..... what about :


          TargetNamespace.1: Expecting namespace 'urn:jbpm.org:jpdl-3.
          0', but the target namespace of the schema document is 'http://jbpm.org/3/jpdl'.,


          the error is in your stacktrace..... please read it...

          • 2. Re: Error Parsing XML Process Definition - JpdlXmlReader
            monkmanusa

            Thanks. Yes I could see the error in the stack trace - but it means nothing to me, hence the request for assistance on the forum for ideas or suggestions to resolve the error.
            I have used nothing other than what is in the starter kit - and have copied the example from the user guide about the various methods etc for creating a process definition by parsing some XML (I even used the simple xml example in the user guide).
            If anyone has any constructive suggestions - that would be most helpful.

            • 3. Re: Error Parsing XML Process Definition - JpdlXmlReader
              kukeltje

              sorry, but please do not, never (even not indirectly) abuse me of not giving constructive suggestions.

              You did not mention that you see the error, but have no idea what it means, so I pointed you to the error. To me that is constructive. The error is related to the way your process is defined. It is a basic XML error, which I now assume you have no knowledge of.

              The solution is also mentioned in the error.
              your file contains: http://jbpm.org/3/jpdl
              expected was: urn:jbpm.org:jpdl-3.0

              So I suggest you try to replace it. That's not to difficult is it? So before accusing anyone of not being constructive, read the error first, try to understand part of it, search the internet and this forum on the words in the error and try solving it. If all that fails, and only then report the error here but with enough information for us to be able to interpret it:

              http://www.catb.org/~esr/faqs/smart-questions.html

              • 4. Re: Error Parsing XML Process Definition - JpdlXmlReader
                monkmanusa

                My humblest apologies. I did not mean to cause offense - and I sincerely regret any that my words may have caused. I am under intense pressure to get this moving and this rose to the surface with my frustration, that is no excuse for my words of course.
                The fault is mine as I obviously did not put enough information into my original post.
                Once again - my apologies.

                • 5. Re: Error Parsing XML Process Definition - JpdlXmlReader
                  kukeltje

                  peace ;-)