You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Adrian Crum (JIRA)" <ji...@apache.org> on 2014/08/15 08:36:19 UTC

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

    [ 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)