[jboss-user] [jBPM] - BPMN2.0 + jBPM4.3: org.jbpm.api.JbpmException: couldn't run script: null

Marco Dohnke do-not-reply at jboss.com
Tue Jun 22 09:33:05 EDT 2010


Marco Dohnke [http://community.jboss.org/people/mdohnke] created the discussion

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

To view the discussion, visit: http://community.jboss.org/message/549104#549104

--------------------------------------------------------------
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

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/549104#549104]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100622/ebd8eb18/attachment-0001.html 


More information about the jboss-user mailing list