[jBPM] - BPMN2.0 + jBPM4.3: org.jbpm.api.JbpmException: couldn't run script: null
by Marco Dohnke
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&cont...]
15 years, 10 months
[jBPM] - Empty history task at the start of a process !
by Jaber C. Mourad
Jaber C. Mourad [http://community.jboss.org/people/newbeewan] created the discussion
"Empty history task at the start of a process !"
To view the discussion, visit: http://community.jboss.org/message/549100#549100
--------------------------------------------------------------
Hi,
I'm testing jbpm 4.4.
I have created a very simple process :
<process key="2task" name="2taskProcess" version="1" xmlns="http://jbpm.org/jpdl/4.4">
<description>
Process qui se termine quand il démarre pour générer des historiques
</description>
<start g="0,0,80,40" name="init">
<transition to="task1" g="-93,-24"/>
</start>
<task name="task1">
<transition name="to task2" to="task2"/>
</task>
<task name="task2">
<transition name="to theEnd" to="theEnd"/>
</task>
<end g="258,238,80,40" name="theEnd"/>
</process>
When I start it by executionService.startProcessInstanceByKey("2task");
And then execute an historyTaskQuery, I find a task with some empty fields !
A unit test method :
ProcessInstance processInstance = executionService.startProcessInstanceByKey("2task");
List<HistoryTask> historyTasks = historyService.createHistoryTaskQuery().executionId(processInstance.getId()).list();
assertNotNull(historyTasks);
for(HistoryTask historyTask: historyTasks){
logger.info("historyTask : ", historyTask.getId());
logger.info("historyTask : ", historyTask.getState());
}
assertTrue(historyTasks.isEmpty());
Is it normal ? If yes, what is the role of that pseudo-task ?
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/549100#549100]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months
[jBPM] - jBPM Report Server Error
by Abhishek Chikane
Abhishek Chikane [http://community.jboss.org/people/abhishek.chikane%40gmail.com] created the discussion
"jBPM Report Server Error"
To view the discussion, visit: http://community.jboss.org/message/549091#549091
--------------------------------------------------------------
When I click on the process history on under reporting tab in the jBPM console, it gives following error.
*org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Cannot acccess report references in state NONE*
at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
*java.lang.IllegalStateException: Cannot acccess report references in state NONE*
at org.jboss.bpm.report.BirtService.getReportReferences(BirtService.java:459)
at org.jboss.bpm.report.ReportFacade.getReportConfig(ReportFacade.java:330)
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:585)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
I am using weblogic to host the jBPM console. I am still trying to work it on Weblogic. The report JVM parameter setting is as follows.
*-Dorg.jbpm.report.engine.dir=C:\bea923\user_projects\domains\Int_domain\serverDirForBirt\birt*
*
*
The birt directory setup is as displayed in the attcahed image.
http://community.jboss.org/servlet/JiveServlet/showImage/3498/birt_dir.PNG http://community.jboss.org/servlet/JiveServlet/downloadImage/3498/294-261...
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/549091#549091]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
15 years, 10 months