Bug 1067593
| Summary: | NPE when deleting a project which has an active deployment. | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Marek Baluch <mbaluch> | ||||
| Component: | Business Central | Assignee: | manstis | ||||
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Tomas Livora <tlivora> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.0.1 | CC: | kverlaen, mswiders, rrajasek, tlivora | ||||
| Target Milestone: | ER2 | ||||||
| Target Release: | 6.0.1 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2014-08-06 19:56: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: | |||||||
| Attachments: |
|
||||||
after some investigation, it looks like it has no dependency to deployments at all, same happens even when you skip build and deploy step and directly go to delete project. Although it happens only when it's done first time after application start (application server start). Subsequent operations following same procedure succeeds without NPE. NPE is thrown here https://github.com/droolsjbpm/kie-wb-common/blob/master/kie-wb-common-screens/kie-wb-common-project-explorer/kie-wb-common-project-explorer-backend/src/main/java/org/kie/workbench/common/screens/explorer/backend/server/UserExplorerLastData.java#L60 as the lastPackage is null and thus cannot be checked. As I am not an expert in project explorer reassigning back to Mike. Thanks for the investigation Maciej. I fixed this problem with https://github.com/droolsjbpm/kie-wb-common/commit/dce24d90a#diff-138ae1c60eabc440e956417f7b1e8180L60 (for BZ https://bugzilla.redhat.com/show_bug.cgi?id=1067369). I tried to replicate with the steps you describe but was unable. Verified on BPMS 6.0.1 ER2 |
Created attachment 865621 [details] stacktrace Description of problem: When an attempt is made to delete a project which was previously built & deployed and has an active deployment unit in the deployments view then an NPE is thrown. See attached exception stack trace. Steps to Reproduce: 1. Create a new project (I used the jbpm-playground repository) 2. Build & Deploy the project 3. Delete the project Actual results: NPE in the server log. Expected results: No error.