Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005899Openbravo ERP02. Master data managementpublic2008-11-10 15:002009-04-21 11:09
villind 
shuehner 
lowminorrandom
closedfixed 
30
pi 
 
Core
No
0005899: Null pointer Exception when entering Master Data -> Product
Back trace from log

java.lang.NullPointerException
        at org.openbravo.erpWindows.Product.Product.refreshSessionEdit(Product.java:452)
        at org.openbravo.erpWindows.Product.Product.printPageEdit(Product.java:705)
        at org.openbravo.erpWindows.Product.Product.doPost(Product.java:64)
        at org.openbravo.base.HttpBaseServlet.doGet(HttpBaseServlet.java:181)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
Enter Product window in grid mode
Use a search filter which returns zero rows
visit any other page
open the product page again
-> see NullPointerException at the indicated location
Check the code
No tags attached.
depends on backport 0006735 closed shuehner Null pointer Exception when entering Master Data -> Product 
depends on backport 0006736 closed shuehner Null pointer Exception when entering Master Data -> Product 
has duplicate defect 0005581 closed iperdomo Product window not accessible when filtering for the window and no results are given 
has duplicate defect 0006752 closed rafaroda B.Partner problem, Null pointer exception 
Issue History
2008-11-10 15:00villindNew Issue
2008-11-10 15:00villindAssigned To => rafaroda
2008-11-10 15:00villindsf_bug_id0 => 2255766
2008-11-10 15:00villindRegression testing => No
2008-11-11 08:56rafarodaNote Added: 0010152
2008-11-11 08:56rafarodaStatusnew => feedback
2008-11-11 15:47villindNote Added: 0010170
2008-11-12 09:34pjuvaraStatusfeedback => new
2008-11-20 10:24rafarodaPrioritynormal => low
2008-11-20 10:25rafarodaStatusnew => scheduled
2008-11-20 10:25rafarodaAssigned Torafaroda => shuehner
2008-11-20 10:25rafarodafix_in_branch => trunk
2008-11-20 20:26shuehnerNote Added: 0010473
2008-12-01 17:52nataliaperuNote Added: 0010852
2008-12-01 18:12shuehnerNote Added: 0010855
2008-12-01 18:12shuehnerfix_in_branchtrunk =>
2008-12-01 18:12shuehnerProposed Solution updated
2008-12-24 12:32shuehnerStatusscheduled => acknowledged
2008-12-24 12:32shuehnerversion2.40 => trunk
2008-12-24 12:32shuehnerStatusacknowledged => scheduled
2008-12-24 12:32shuehnerfix_in_branch => trunk
2008-12-24 13:00svnbotCheckin
2008-12-24 13:00svnbotNote Added: 0011731
2008-12-24 13:00svnbotStatusscheduled => resolved
2008-12-24 13:00svnbotResolutionopen => fixed
2008-12-24 13:00svnbotsvn_revision => 11573
2008-12-30 13:32iperdomoRelationship addedhas duplicate 0005581
2009-01-07 15:20shuehnerRelationship addedhas duplicate 0006752
2009-04-21 11:09psarobeStatusresolved => closed

Notes
(0010152)
rafaroda   
2008-11-11 08:56   
Not able to reproduce this bug with:
* Openbravo ERP 2.40
* PostgreSQL 8.3
* Linux

Could you please provide more information?
* Number of products.
* Any other relevant information.

Thank you.
(0010170)
villind   
2008-11-11 15:47   
This happened in real production environment, so impossible to know what the user had done, but I assume that something in the session was broken as logout/login fixed the issue. This report was just a reminder to check the code on the line that was reported in the backtrace.

org.openbravo.erpWindows.Product.Product.refreshSessionEdit(Product.java:452)

There is around 10000 products for this client.
(0010473)
shuehner   
2008-11-20 20:26   
Checking the code in this place is see only one possible cause that the data[0] entry is =null. But have to figure out in which codepath this can happen and which previous actions lead to this problem. This is not directly visible from :705 ...
(0010852)
nataliaperu   
2008-12-01 17:52   
It happens the same when a filter pop-up is used and no result is returned.

After that, if you want to see again the same window, java.lang.NullPointerException error appears.

It happens the same in Business Partner window.

Note: it also has been tested in Openbravo ERP 2.35 MP5 with Postgre.
(0010855)
shuehner   
2008-12-01 18:12   
I updated the steps to reproduce based on the last note by Natalia. Thanks Natalia
(0011731)
svnbot   
2008-12-24 13:00   
Repository: openbravo
Revision: 11573
Author: huehner
Date: 2008-12-24 13:00:29 +0100 (Wed, 24 Dec 2008)

Fixed 5899
Fix NPE after entering a filter returning zero rows in edit mode
and leaving and reentering the window.

---
U trunk/src-wad/src/org/openbravo/wad/javasource.javaxml
---

https://dev.openbravo.com/websvn/openbravo/?rev=11573&sc=1 [^]