Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0005899 | Openbravo ERP | 02. Master data management | public | 2008-11-10 15:00 | 2009-04-21 11:09 |
|
Reporter | villind | |
Assigned To | shuehner | |
Priority | low | Severity | minor | Reproducibility | random |
Status | closed | Resolution | fixed | |
Platform | | OS | 30 | OS Version | |
Product Version | pi | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0005899: Null pointer Exception when entering Master Data -> Product |
Description | 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)
|
Steps To Reproduce | 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 |
Proposed Solution | Check the code |
Additional Information | |
Tags | No tags attached. |
Relationships | 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 |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2008-11-10 15:00 | villind | New Issue | |
2008-11-10 15:00 | villind | Assigned To | => rafaroda |
2008-11-10 15:00 | villind | sf_bug_id | 0 => 2255766 |
2008-11-10 15:00 | villind | Regression testing | => No |
2008-11-11 08:56 | rafaroda | Note Added: 0010152 | |
2008-11-11 08:56 | rafaroda | Status | new => feedback |
2008-11-11 15:47 | villind | Note Added: 0010170 | |
2008-11-12 09:34 | pjuvara | Status | feedback => new |
2008-11-20 10:24 | rafaroda | Priority | normal => low |
2008-11-20 10:25 | rafaroda | Status | new => scheduled |
2008-11-20 10:25 | rafaroda | Assigned To | rafaroda => shuehner |
2008-11-20 10:25 | rafaroda | fix_in_branch | => trunk |
2008-11-20 20:26 | shuehner | Note Added: 0010473 | |
2008-12-01 17:52 | nataliaperu | Note Added: 0010852 | |
2008-12-01 18:12 | shuehner | Note Added: 0010855 | |
2008-12-01 18:12 | shuehner | fix_in_branch | trunk => |
2008-12-01 18:12 | shuehner | Proposed Solution updated | |
2008-12-24 12:32 | shuehner | Status | scheduled => acknowledged |
2008-12-24 12:32 | shuehner | version | 2.40 => trunk |
2008-12-24 12:32 | shuehner | Status | acknowledged => scheduled |
2008-12-24 12:32 | shuehner | fix_in_branch | => trunk |
2008-12-24 13:00 | svnbot | Checkin | |
2008-12-24 13:00 | svnbot | Note Added: 0011731 | |
2008-12-24 13:00 | svnbot | Status | scheduled => resolved |
2008-12-24 13:00 | svnbot | Resolution | open => fixed |
2008-12-24 13:00 | svnbot | svn_revision | => 11573 |
2008-12-30 13:32 | iperdomo | Relationship added | has duplicate 0005581 |
2009-01-07 15:20 | shuehner | Relationship added | has duplicate 0006752 |
2009-04-21 11:09 | psarobe | Status | resolved => closed |
Notes |
|
|
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. |
|
|
|
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. |
|
|
|
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 ... |
|
|
|
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. |
|
|
|
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 [^]
|
|