Bug 1288140 - Project with persistable data objects added to persistence descriptor cannot be deployed
Summary: Project with persistable data objects added to persistence descriptor cannot ...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Data Modeler
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Walter Medvedeo
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-03 16:25 UTC by Zuzana Krejčová
Modified: 2020-03-27 19:38 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:38:44 UTC
Type: Bug
Embargoed:


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

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.


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