Bug 1032206
Summary: | NPE when accessing tasks using a RuntimeEngine without persistence. | ||
---|---|---|---|
Product: | [Retired] JBoss BPMS Platform 6 | Reporter: | Marek Baluch <mbaluch> |
Component: | jBPM Core | Assignee: | Maciej Swiderski <mswiders> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Jiri Svitak <jsvitak> |
Severity: | medium | Docs Contact: | |
Priority: | high | ||
Version: | 6.0.0 | CC: | kverlaen, mbaluch |
Target Milestone: | ER6 | ||
Target Release: | 6.0.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-08-06 20:06:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Marek Baluch
2013-11-19 17:32:54 UTC
Marek, that is sort of expected behavior as you don't configure task service and thus it's not available. You use Empty builder which means you need to setup everything manually, while you could use DefaultInMemory to have task service configured and process engine in memory only. The improvement we could apply here is that it shall throw an exception on getTaskService method when it is not configured with meaningful message instead of NPE. Wdyt? Maciej, I believe that would be a fitting solution. Something like UnsupportedOperationException with a message explaining why it's not supported. @mb alright, exception is now thrown in case task service is not configured to avoid further NPE. jbpm master: https://github.com/droolsjbpm/jbpm/commit/66a00615ccb8ddc863e9f0023db209d9fd18e7d1 6.0.x: https://github.com/droolsjbpm/jbpm/commit/264f70ba67d045eb94a9b7c2a575fecf43196a6e Verified in BPMS 6 ER7 (6.0.1-redhat-2). |