Bug 1288140

Summary: Project with persistable data objects added to persistence descriptor cannot be deployed
Product: [Retired] JBoss BPMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Data ModelerAssignee: Walter Medvedeo <wmedvede>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: jlocker, lpetrovi
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 19:38:44 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:
Description Flags
server.log none

Description Zuzana Krejčová 2015-12-03 16:25:59 UTC
Created attachment 1101844 [details]
server.log

Description of problem:
See summary and steps to reproduce. The server log with stacktraces is attached.


Version-Release number of selected component (if applicable):
6.2 CR2


Steps to Reproduce:
1. Start a clean business central with example repository.
2. In the example repo/project, create a new (not yet persistable) data object PDO.
3. Open the persistence tab/panel and make the data object persistable, save the change.
4. Open the poject editor, switch to persistence descriptor and verify, that the data object is NOT added yet.
5. Build the project.
6. Go back to the persistence descriptor and add the PDO data object, save and build the project.


Actual results:
The project builds fine in step 5. In step 6, user get 'Build failed' flyover notification. The actual result though is that the build succeeded and the deployment failed. The Messages show:
"Deployment of unit org.kie.example:project1:1.0.1-SNAPSHOT failed: [Error: could not create constructor: null] [Near : {... new org.drools.persistence.jpa.mar ....}] ^ [Line: 1, Column: 5]"

There is much more in the server log.


Expected results:
The project builds and deploys fine.

Comment 1 Zuzana Krejčová 2015-12-03 17:04:05 UTC
Everything is fine, if you instead in step 2 make the data object persistable from the start (check Persistable checkbox in the Create new Data Object dialog). You can of course then skip step 3.