Bug 1034910

Summary: Loading data model fails with NPE if the project contains a class with public field with no getter nor setter
Product: [Retired] JBoss BRMS Platform 6 Reporter: Jiri Locker <jlocker>
Component: Business CentralAssignee: Walter Medvedeo <wmedvede>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Locker <jlocker>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: kverlaen
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:18:09 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:
Attachments:
Description Flags
Error dialog screenshot
none
server.log with exception stack trace none

Description Jiri Locker 2013-11-26 17:05:19 UTC
Created attachment 829388 [details]
Error dialog screenshot

Description of problem:
Data model doesn't load. Error message is displayed (explaining nothing at all). NullPointerException printed in server log.

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

How reproducible:
-

Steps to Reproduce:
1. Create a class with public field, no getter, no setter
2. Commit and push into existing project in Business Central
3. Server restart may be needed to pick up the model change
5. Navigate to the project, open Data Modeler

Actual results:
Error dialog in UI, NPE in server log. No hint on which file (class) in the model is causing the problem. NPE stack trace in stderr doesn't contain any helpful information, following GenericPortableException doesn't include a relevant cause.

Expected results:
No error. Or, if the POJO encountered is not valid, then error message explaining which file is that and what is the problem.

Additional info:

Comment 1 Jiri Locker 2013-11-26 17:07:29 UTC
Created attachment 829389 [details]
server.log with exception stack trace

Comment 3 Walter Medvedeo 2013-11-29 13:37:04 UTC

push in master branch: http://github.com/droolsjbpm/kie-wb-common/commit/c83f758b8

push in 6.0.x branch: http://github.com/droolsjbpm/kie-wb-common/commit/35ae6dfe8