1 2 Previous Next 18 Replies Latest reply on Jul 13, 2010 8:57 PM by rebody

    BPMN2.0 + jBPM4.3: org.jbpm.api.JbpmException: couldn't run script: null

    mdohnke

      Hi everybody,

       

      I tried to run a very simple BPMN2.0 process with a single ScriptTask, similar to the process which can be found in the examples. The version of jBPM I use is 4.3.

      Unfortunately jBPM throws an Exception, but not really a readable, what means the exception is null.

      I tried to use jruby as scripting language. The jruby-complete.jar is in the classpath of the project and the language is accepted (I know that because at first i tried 'Jruby' and so on, but only with 'jruby' it works).

       

      Any chance to get JRuby working with jBPM? Or isn't it implemented yet?

       

      (the stacktrace, maybe it helps)

      org.jbpm.api.JbpmException: couldn't run script: null
          at org.jbpm.bpmn.flownodes.ScriptTaskActivity.perform(ScriptTaskActivity.java:44)
          at org.jbpm.bpmn.flownodes.BpmnAutomaticActivity.execute(BpmnAutomaticActivity.java:16)
          at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:60)
          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:656)
          at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:616)
          at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:217)
          at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:65)
          at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)
          at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
          at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54)
          at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)
          at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)
          at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
          at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)
          at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:66)
          at de.bfpi.kg.ScriptProcessTest.testScriptProcess(ScriptProcessTest.java:19)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:597)
          at junit.framework.TestCase.runTest(TestCase.java:164)
          at org.jbpm.test.BaseJbpmTestCase.runTest(BaseJbpmTestCase.java:80)
          at junit.framework.TestCase.runBare(TestCase.java:130)
          at junit.framework.TestResult$1.protect(TestResult.java:106)
          at junit.framework.TestResult.runProtected(TestResult.java:124)
          at junit.framework.TestResult.run(TestResult.java:109)
          at junit.framework.TestCase.run(TestCase.java:120)
          at junit.framework.TestSuite.runTest(TestSuite.java:230)
          at junit.framework.TestSuite.run(TestSuite.java:225)
          at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
          at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
          at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
      Caused by: java.lang.UnsupportedOperationException
          at org.jbpm.pvm.internal.script.EnvironmentBindings.entrySet(EnvironmentBindings.java:73)
          at org.jruby.embed.jsr223.JRubyContext.setBindings(JRubyContext.java:182)
          at org.jruby.embed.jsr223.JRubyEngine.setBindings(JRubyEngine.java:231)
          at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:123)
          at org.jbpm.pvm.internal.script.ScriptManager.evaluate(ScriptManager.java:118)
          at org.jbpm.pvm.internal.script.ScriptManager.evaluateScript(ScriptManager.java:97)
          at org.jbpm.bpmn.flownodes.ScriptTaskActivity.perform(ScriptTaskActivity.java:41)
          ... 34 more

        1 2 Previous Next