3 Replies Latest reply on Jul 26, 2010 2:47 AM by Vladimir Kiryakov

    Can't start jbpm3 process

    Vladimir Kiryakov Newbie

      h2all!!! I have a some problem with jbpm3 porcess... When I trying start my process from jbpm-console(signal link) i have some error like this:

       


      17:10:54,923 ERROR [GraphElement] action threw exception: couldn't get value for file 'classes/com/provoxlab/handler/Logger.class'
      org.jbpm.JbpmException: couldn't get value for file 'classes/com/provoxlab/handler/Logger.class'
          at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:196)
          at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:116)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at com.provoxlab.handler.State1.execute(State1.java:16)
          at org.jbpm.graph.def.Action.execute(Action.java:125)
          at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:281)
          at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:238)
          at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:212)
          at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:195)
          at org.jbpm.graph.def.Node.enter(Node.java:369)
          at sun.reflect.GeneratedMethodAccessor445.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
          at org.jbpm.graph.def.Node_$$_javassist_81.enter(Node_$$_javassist_81.java)
          at org.jbpm.graph.def.Transition.take(Transition.java:166)
          at org.jbpm.graph.def.Node.leave(Node.java:477)
          at org.jbpm.graph.node.StartState.leave(StartState.java:80)
          at sun.reflect.GeneratedMethodAccessor443.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:197)
          at org.jbpm.graph.def.Node_$$_javassist_81.leave(Node_$$_javassist_81.java)
          at org.jbpm.graph.exe.Token.signal(Token.java:226)
          at org.jbpm.graph.exe.Token.signal(Token.java:149)
          at org.jbpm.jsf.core.action.SignalActionListener.handleAction(SignalActionListener.java:52)
          at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)
          at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
          at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771)
          at javax.faces.component.UICommand.broadcast(UICommand.java:372)
          at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
          at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
          at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
          at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
          at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
          at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
          at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:601)
          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
          at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.NullPointerException
          at org.jbpm.file.def.FileDefinition.getBytesFromDb(FileDefinition.java:213)
          at org.jbpm.file.def.FileDefinition.getBytes(FileDefinition.java:193)
          ... 57 more
      17:10:54,939 WARN  [JDBCExceptionReporter] SQL Error: 0, SQLState: 22001
      17:10:54,940 ERROR [JDBCExceptionReporter] Data truncation: Data too long for column 'EXCEPTION_' at row 1

       

      What i do wrong? please anybody help me

       

      And the second question.... How to instal the schedule of start of process? For example in each 5 hours.

        • 1. Re: Can't start jbpm3 process
          Alejandro Guizar Master
          h2all!!! I have a some problem with jbpm3 porcess... When I trying start my process from jbpm-console(signal link) i have some error like this:

          How can this error be reproduced? What database and jBPM version are involved? Can you provide a copy of the affected process, preferably the minimal process that causes the problem?

          And the second question.... How to instal the schedule of start of process? For example in each 5 hours.

          This feature is not present in jBPM 3, only in 4.

          • 2. Re: Can't start jbpm3 process
            Vladimir Kiryakov Newbie

            I'm using MySQL 5.1 and jbpm 3-2-6 data source. In Eclipse Galileo I create a jbpm3 project. For example this similar process

             

             

            <?xml version="1.0" encoding="UTF-8"?>

             

            <process-definition  xmlns="urn:jbpm.org:jpdl-3.2"  name="sdf">

             


                <start-state name="start-state1">
                    <transition to="state1"></transition>
                </start-state>

             


                <state name="state1">
                    <event type="node-enter">
                        <action class="com.app.HANDLERS.State1Handler"></action>
                    </event>
                    <transition to="end-state1"></transition>
                </state>

             


                <end-state name="end-state1"></end-state>

             


            </process-definition>

             

             

            Then a similar State1Handler code:

            if i do like this, all excelets works

             

            package com.app.HANDLERS;

             

            import org.jbpm.graph.def.ActionHandler;
            import org.jbpm.graph.exe.ExecutionContext;

             

            public class State1Handler implements ActionHandler {

                @Override
                public void execute(ExecutionContext arg0) throws Exception { 

                            sysout("hello world"); 

                }

            }

            • 3. Re: Can't start jbpm3 process
              Vladimir Kiryakov Newbie

              but if I code like this:

               

              package com.app.HANDLERS;

               

              import org.jbpm.graph.def.ActionHandler;
              import org.jbpm.graph.exe.ExecutionContext;

               

              public class State1Handler implements ActionHandler {

               

                  @Override
                  public void execute(ExecutionContext arg0) throws Exception {
                     
                      new MyClass().printHelloWorld();

               

                  }

               

              }

               

              I have error like in my first post