[jira] [Commented] (OFBIZ-5713) NPE when database is changed

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-5713) NPE when database is changed

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-5713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14098248#comment-14098248 ]

Adrian Crum commented on OFBIZ-5713:
------------------------------------

From my perspective, this is the desired behavior. Your patch attempts to hide a configuration error.

When OFBiz starts, the Entity Engine compares the models to the database and any discrepancies are logged. If you ignore those warnings and proceed anyway, then you will get exceptions.

The solution to this problem is to fix the entity definitions.


> NPE when database is changed
> ----------------------------
>
>                 Key: OFBIZ-5713
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5713
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Trunk
>         Environment: Java 7, Linux
>            Reporter: Rong Nguyen
>            Priority: Minor
>         Attachments: Issue-5713.diff
>
>
> Scenario:
>   1. Change table structure: add column to table.
>   2. Not update entity in OBFbiz
>   3. Go to one application(Order, Humanres,...)
> => NPE will occur.



--
This message was sent by Atlassian JIRA
(v6.2#6252)