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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0013537
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorhave not tried2010-06-04 19:072010-06-08 00:00
ReportershuehnerView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision3e66944fd007
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava 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

0013537: [NewCR] NPE in butler log when use Module tab of newly created forge project

DescriptionNPE in butler log when using Module tab of newly create forge project (which does not yet have a module assigned)

83.230.226.193 - - [04/Jun/2010:19:03:40 +0200] 33025 "GET /heartbeat-server/org.openbravo.utility.centralrepository.ui.sso/CentralRepository?navigate=ModuleTab&projectname=test1test2&projectId=715 HTTP/1.1" 200 461 "http://crtest.essentiaforge.org/projects/test1test2/module" [^] "Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.3) Gecko/20100423 Ubuntu/10.04 (lucid) Firefox/3.6.3"

==> /var/log/tomcat/butler.log <==
251ef582 19:03:41 [ajp-8009-3] ERROR org.openbravo.dal.core.ThreadHandler -
java.lang.NullPointerException
        at org.openbravo.utility.centralrepository.ui.sso.ModuleTab.printPageVersion(ModuleTab.java:166)
        at org.openbravo.utility.centralrepository.ui.sso.ModuleTab.doPost(ModuleTab.java:77)
Steps To ReproduceCreate a new project in the forge, mark the option 'module' when doing so
go to the projects page
Use the 'module' link on the top-menu
browser message says: Module not found
butler.log file has NPE
TagsNewCR
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0013553 closedalostale [NewCR] Production forge has much nicer message when clicking on Module tab on a newly created project (not having a module yet) 

-  Notes
(0028008)
shuehner (administrator)
2010-06-04 19:08

In ModuleTab.java

around line 66:
        if (module == null) {
          printPageError(resp, "Module Not Found!");
        }

the error message is added however the servlet flow continues and later code fails as module == null
(0028014)
hgbot (developer)
2010-06-04 22:55

Repository: erp/pmods/org.openbravo.utility.centralrepository
Changeset: 3e66944fd0079784c0cea0484a6050d633cf0c0c
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jun 04 22:54:08 2010 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.utility.centralrepository/rev/3e66944fd0079784c0cea0484a6050d633cf0c0c [^]

fixed bug 13537: prevent npe after showing no module found msg

---
M src/org/openbravo/utility/centralrepository/ui/sso/ModuleTab.java
---
(0028052)
shuehner (administrator)
2010-06-07 12:56

Tested, NPE does no longer happen.

- Issue History
Date Modified Username Field Change
2010-06-04 19:07 shuehner New Issue
2010-06-04 19:07 shuehner Assigned To => alostale
2010-06-04 19:08 shuehner Tag Attached: NewCR
2010-06-04 19:08 shuehner Note Added: 0028008
2010-06-04 22:55 hgbot Checkin
2010-06-04 22:55 hgbot Note Added: 0028014
2010-06-04 22:55 hgbot Status new => resolved
2010-06-04 22:55 hgbot Resolution open => fixed
2010-06-04 22:55 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.utility.centralrepository/rev/3e66944fd0079784c0cea0484a6050d633cf0c0c [^]
2010-06-07 12:55 shuehner Relationship added related to 0013553
2010-06-07 12:56 shuehner Note Added: 0028052
2010-06-07 12:56 shuehner Status resolved => closed
2010-06-08 00:00 anonymous sf_bug_id 0 => 3012881


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker