Bug 1034910 - Loading data model fails with NPE if the project contains a class with public field with no getter nor setter
Summary: Loading data model fails with NPE if the project contains a class with public...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ER6
: 6.0.0
Assignee: Walter Medvedeo
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-26 17:05 UTC by Jiri Locker
Modified: 2014-08-06 20:18 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 20:18:09 UTC
Type: Bug


Attachments (Terms of Use)
Error dialog screenshot (101.58 KB, image/png)
2013-11-26 17:05 UTC, Jiri Locker
no flags Details
server.log with exception stack trace (19.66 KB, text/plain)
2013-11-26 17:07 UTC, Jiri Locker
no flags Details

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


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