Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0005899
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 02. Master data managementminorrandom2008-11-10 15:002009-04-21 11:09
ReportervillindView Statuspublic 
Assigned Toshuehner 
PrioritylowResolutionfixedFixed in Version
StatusclosedFix in branchpiFixed in SCM revision11573
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0005899: Null pointer Exception when entering Master Data -> Product

DescriptionBack 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 ReproduceEnter 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 SolutionCheck the code
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0006735 closedshuehner Null pointer Exception when entering Master Data -> Product 
depends on backport 0006736 closedshuehner Null pointer Exception when entering Master Data -> Product 
has duplicate defect 0005581 closediperdomo Product window not accessible when filtering for the window and no results are given 
has duplicate defect 0006752 closedrafaroda B.Partner problem, Null pointer exception 

-  Notes
(0010152)
rafaroda (developer)
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 (developer)
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 (administrator)
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 (reporter)
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 (administrator)
2008-12-01 18:12

I updated the steps to reproduce based on the last note by Natalia. Thanks Natalia
(0011731)
svnbot (reporter)
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 [^]

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker