Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010904Openbravo ERPA. Platformpublic2009-10-08 08:412009-10-14 00:00
psarobe 
marvintm 
urgentmajoralways
closedfixed 
5
pi 
2.50MP72.50MP7 
Core
No
0010904: Registration window: Null pointer exception
When I change from one role to another role, the user info pop-up opens without problems but when it closes another pop-up window opens showing a null pointer exception

The problem comes because when updating any process has removed the entry in the system info window
1. Login. You will probably be with the role "System administrator"
2. Change the to "Openbravo Admin". No problems shows up in this step
3. Then change the role to System administrator again using the user info pop-up
4. Select the System administrator role and press OK
5. The pop-up is closed but another pop-up is opened showing a null pointer exception

See attach and the log:

08:32:38 [http-8880-5] ERROR org.openbravo.erpCommon.ad_forms.Registration - Error captured:
java.lang.NullPointerException
    at org.openbravo.erpCommon.ad_forms.Registration.printPageDataSheet(Registration.java:99)
    at org.openbravo.erpCommon.ad_forms.Registration.doPost(Registration.java:49)
    at org.openbravo.base.HttpBaseServlet.doGet(HttpBaseServlet.java:286)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:224)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:340)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:79)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:93)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:834)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:640)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1286)
    at java.lang.Thread.run(Unknown Source)
No tags attached.
related to defect 00109112.50MP7 closed marvintm Lost images after updating PI 
png registration.PNG (37,336) 2009-10-08 08:41
https://issues.openbravo.com/file_download.php?file_id=1834&type=bug
png
Issue History
2009-10-08 08:41psarobeNew Issue
2009-10-08 08:41psarobeAssigned To => iperdomo
2009-10-08 08:41psarobeFile Added: registration.PNG
2009-10-08 08:41psarobeStatusnew => scheduled
2009-10-08 08:41psarobefix_in_branch => pi
2009-10-09 13:40psarobeRelationship addedrelated to 0010911
2009-10-09 13:41psarobefix_in_branchpi =>
2009-10-09 13:41psarobeDescription Updated
2009-10-09 13:50iperdomoAssigned Toiperdomo => marvintm
2009-10-09 13:55hgbotCheckin
2009-10-09 13:55hgbotNote Added: 0020908
2009-10-09 13:55hgbotStatusscheduled => resolved
2009-10-09 13:55hgbotResolutionopen => fixed
2009-10-09 13:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/d4725483efe239472ce414cdc04d2f8f5b9d5299 [^]
2009-10-13 09:01arunkumarStatusresolved => closed
2009-10-13 09:01arunkumarNote Added: 0020957
2009-10-13 09:01arunkumarFixed in Version => 2.50MP7
2009-10-14 00:00anonymoussf_bug_id0 => 2878315

Notes
(0020908)
hgbot   
2009-10-09 13:55   
Repository: erp/devel/pi
Changeset: d4725483efe239472ce414cdc04d2f8f5b9d5299
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Fri Oct 09 13:54:54 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d4725483efe239472ce414cdc04d2f8f5b9d5299 [^]

Fixes issue 10904: Added extra check to avoid NPE

---
M src/org/openbravo/erpCommon/ad_forms/Registration.java
---
(0020957)
arunkumar   
2009-10-13 09:01   
There is no nullPointerException while switching over to the "System Admin" role.