NullPointerException in GenericDelegator during testMode rollback
----------------------------------------------------------------- Key: OFBIZ-4284 URL: https://issues.apache.org/jira/browse/OFBIZ-4284 Project: OFBiz Issue Type: Bug Components: framework Affects Versions: SVN trunk Reporter: Martin Kreidenweis Test mode rollback doesn't work right in {{GenericDelegator}} for calls to {{removeByPrimary()}} key and {{removeByValue()}} when the row to be deleted didn't exist in the first place. It creates a {{TestOperation}} with a null value and subsequently fails to create that during rollback. First, the TestOperation shouldn't be created at all. Second, if {{null}} is passed to {{GenericDelegator.create()}} it tries to handle this, but fails with a NullPointerException. Patch to come. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
[ https://issues.apache.org/jira/browse/OFBIZ-4284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Kreidenweis updated OFBIZ-4284: -------------------------------------- Attachment: OFBIZ-4284.patch patch fixing both described issues > NullPointerException in GenericDelegator during testMode rollback > ----------------------------------------------------------------- > > Key: OFBIZ-4284 > URL: https://issues.apache.org/jira/browse/OFBIZ-4284 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Martin Kreidenweis > Attachments: OFBIZ-4284.patch > > > Test mode rollback doesn't work right in {{GenericDelegator}} for calls to {{removeByPrimary()}} key and {{removeByValue()}} when the row to be deleted didn't exist in the first place. It creates a {{TestOperation}} with a null value and subsequently fails to create that during rollback. > First, the TestOperation shouldn't be created at all. Second, if {{null}} is passed to {{GenericDelegator.create()}} it tries to handle this, but fails with a NullPointerException. > Patch to come. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-4284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-4284. ---------------------------------- Resolution: Fixed Fix Version/s: SVN trunk Assignee: Jacques Le Roux Thanks Martin, Your patch is in * trunk at r1104423 * R11.04 at r1104431 * R10.04 at r1104428 * R09.04 at r1104429 > NullPointerException in GenericDelegator during testMode rollback > ----------------------------------------------------------------- > > Key: OFBIZ-4284 > URL: https://issues.apache.org/jira/browse/OFBIZ-4284 > Project: OFBiz > Issue Type: Bug > Components: framework > Affects Versions: SVN trunk > Reporter: Martin Kreidenweis > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: OFBIZ-4284.patch > > > Test mode rollback doesn't work right in {{GenericDelegator}} for calls to {{removeByPrimary()}} key and {{removeByValue()}} when the row to be deleted didn't exist in the first place. It creates a {{TestOperation}} with a null value and subsequently fails to create that during rollback. > First, the TestOperation shouldn't be created at all. Second, if {{null}} is passed to {{GenericDelegator.create()}} it tries to handle this, but fails with a NullPointerException. > Patch to come. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira |
Free forum by Nabble | Edit this page |