Bug 1288140 - Project with persistable data objects added to persistence descriptor cannot be deployed
Project with persistable data objects added to persistence descriptor cannot ...
Status: NEW
Product: JBoss BPMS Platform 6
Classification: JBoss
Component: Data Modeler (Show other bugs)
6.2.0
Unspecified Unspecified
unspecified Severity high
: ---
: ---
Assigned To: Walter Medvedeo
Lukáš Petrovický
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-03 11:25 EST by Zuzana Krejčová
Modified: 2016-07-31 21:18 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
server.log (190.54 KB, text/plain)
2015-12-03 11:25 EST, Zuzana Krejčová
no flags Details

  None (edit)
Description Zuzana Krejčová 2015-12-03 11:25:59 EST
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 12:04:05 EST
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.

Note You need to log in before you can comment on or make changes to this bug.