3 Replies Latest reply on Apr 2, 2014 2:11 PM by steljboss

    Some questions

    rdeveloper87

      Hi,

       

      I am trying to get my hands wet with the KIE workbench.

      I am able to run the junit and launch the processes from eclipse.

      However when the same processes are pushed to the server workbench using GIT , they have validation issues.

      So these processes cannot be opened in workbench and also i face deployment issues with the kjar.

       

      Some of the exceptions/errors / warnings are as follows:

       

      1.

      10:20:09,754 ERROR [org.drools.core.xml.ExtensibleXmlParser] (MSC service thread 1-5) (null: 55, 91): cvc-complex-type.3.2.2: Attribute 'id' is not allowed to appear in element 'drools:global'.

      This one maybe because i have added a global variable?

       

      2.

      10:20:10,031 ERROR [org.drools.core.xml.ExtensibleXmlParser] (MSC service thread 1-5) (null: 16, 28): cvc-complex-type.2.4.a: Invalid content was found starting with element 'bpmn2:outMessageRef'. One of '{"http://www.omg.org/spec/BPMN/20100524/MODEL":documentation, "http://www.omg.org/spec/BPMN/20100524/MODEL":extensionElements, "http://www.omg.org/spec/BPMN/20100524/MODEL":inMessageRef}' is expected.

      10:20:10,056 ERROR [stderr] (MSC service thread 1-5) java.lang.IllegalArgumentException: No messages found

       

      3.

      Another question is, If i have a kjar with pom dependencies to customized maven modules.

      In such a case, i have added the dependent jars in the guvnor repository. Is this correct from the part of implementation?

       

      4.

      Also, if i have some service calls (to my custom project) being utilized in one of my script tasks , how are these dependencies going to be realized.

      Currently my process fails to open stating it cannot resolve these imports and dependencies.

       

      5.

      10:20:12,114 ERROR [org.jbpm.kie.services.impl.bpmn2.BPMN2DataServiceImpl] (MSC service thread 1-5) Error: unable to parse xml : Exception class java.lang.IllegalArgumentException : No messages found

      10:20:12,128 WARN  [org.jbpm.console.ng.bd.backend.server.DeploymentManagerEntryPointImpl] (MSC service thread 1-5) Error when deploying unit com.cis.ep3m.business.services:ep3m-business-service:1.0-SNAPSHOT [strategy=SINGLETON] error message null

       

      6.

       

      11:34:03,210 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/jbpm-console].[StencilSetServiceServlet]] (http-localhost-127.0.0.1-8080-4) Servlet.service() for servlet StencilSetServiceServlet threw exception: java.lang.IllegalArgumentException: java.io.FileNotFoundException: D:\installerjb\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-console.war\org.kie.workbench.KIEWebapp\stencilsets\bpmn2.0jbpm\stencilset\org.jbpm.designer.jBPMDesigner\stencilsets\bpmn2.0jbpm\bpmn2.0jbpm.json (The system cannot find the path specified)

        at org.jbpm.designer.web.stencilset.impl.LocalStencilSetImpl.getResourceContents(LocalStencilSetImpl.java:46) [jbpm-designer-backend-6.0.0.Final.jar:6.0.0.Final]

        at org.jbpm.designer.web.stencilset.impl.StencilSetServiceServlet.doGet(StencilSetServiceServlet.java:113) [jbpm-designer-backend-6.0.0.Final.jar:6.0.0.Final]

      .

      .

      .

      Caused by: java.io.FileNotFoundException: D:\installerjb\jbpm-installer\jboss-as-7.1.1.Final\standalone\deployments\jbpm-console.war\org.kie.workbench.KIEWebapp\stencilsets\bpmn2.0jbpm\stencilset\org.jbpm.designer.jBPMDesigner\stencilsets\bpmn2.0jbpm\bpmn2.0jbpm.json (The system cannot find the path specified)

        at java.io.FileInputStream.open(Native Method) [rt.jar:1.7.0_45]

        at java.io.FileInputStream.<init>(FileInputStream.java:146) [rt.jar:1.7.0_45]

        at org.jbpm.designer.web.stencilset.impl.LocalStencilSetImpl.getResourceContents(LocalStencilSetImpl.java:44) [jbpm-designer-backend-6.0.0.Final.jar:6.0.0.Final]

       

      7.

      11:34:03,018 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) java.lang.IllegalArgumentException: Could not find BPMNDI information

      11:34:03,023 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallProcess(Bpmn2JsonMarshaller.java:381)

      11:34:03,029 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:288)

      11:34:03,034 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:113)

      11:34:03,039 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:245)

      11:34:03,043 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:37)

      11:34:03,048 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:116)

      11:34:03,053 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

      11:34:03,056 ERROR [stderr] (http-localhost-127.0.0.1-8080-4) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

       

      8.

       

      org.eclipse.emf.common.util.BasicEList$BasicIndexOutOfBoundsException: index=0, size=0

        at org.eclipse.emf.common.util.BasicEList.get(BasicEList.java:352)

        at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallTask(Bpmn2JsonMarshaller.java:1462)

        at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallFlowElement(Bpmn2JsonMarshaller.java:782)

        at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallProcess(Bpmn2JsonMarshaller.java:396)

        at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:288)

        at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:113)

        at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:245)

        at org.jbpm.designer.web.repository.impl.UUIDBasedJbpmRepository.load(UUIDBasedJbpmRepository.java:37)

        at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doGet(UUIDBasedRepositoryServlet.java:116)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

        at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

       

      Any help on this will be appreciated.

       

      Regards,

      Reuben.

        • 1. Re: Some questions
          swiderski.maciej

          looks like the process is actually invalid based on the errors reported in points 1, 2, 7, 8. Could you upload the process definition taken from kie-wb here so we could look at that and see what's wrong?

          Errors from points 5 and 6 are most likely consequence of the errors above.

           

          for 4 and 5, dependencies needs to be defined in pom.xml and available for maven to download them, so either adding them to kie-wb maven repository or defining repository in pom.xml or settings.xml of your local maven. Once they are there all these jars will be resolved and added to class loader of that kjar and thus making them available for execution.

           

          HTH

          • 2. Re: Some questions
            rdeveloper87

            For errors 1 and 2 , i did something strange.

             

             

            I deleted my global variables and created them again in eclipse and voila , the validation error vanished.

            I do not have any logical explanation for this. 

             

             

            The reason i find some of the errors strange is because these processes were working fine with the junit in eclipse.

            When i push them on eclipse, these errors suddenly pop-up and sometimes they do not even allow to open the process.

            • 3. Re: Some questions
              steljboss

              Hi did you identify the cause of 8 by any chance?