Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019062Openbravo ERP09. Financial managementpublic2011-11-14 16:562011-11-15 17:04
vmromanos 
jonalegriaesarte 
immediatecriticalalways
closedfixed 
20Debian 5.0
3.0MP5 
3.0MP5 
Core
No
0019062: Report General Ledger shows a NullPointerException
If you run the Report General Ledger, it shows a NullPointerException.

In line 271 of the ReportGeneralLedger.java class, the xmlDocument object is always null, that's the cause of the Exception.

2199367 [http-8080-1] ERROR org.openbravo.erpCommon.ad_reports.ReportGeneralLedger - Error captured:
java.lang.NullPointerException
    at org.openbravo.erpCommon.ad_reports.ReportGeneralLedger.printPageDataSheet(ReportGeneralLedger.java:271)
    at org.openbravo.erpCommon.ad_reports.ReportGeneralLedger.doPost(ReportGeneralLedger.java:143)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at org.openbravo.base.HttpBaseServlet.serviceInitialized(HttpBaseServlet.java:225)
    at org.openbravo.base.secureApp.HttpSecureAppServlet.service(HttpSecureAppServlet.java:443)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.SessionExpirationFilter.doFilter(SessionExpirationFilter.java:66)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.utils.CharsetFilter.doFilter(CharsetFilter.java:35)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.client.kernel.KernelFilter$1.doAction(KernelFilter.java:62)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.client.kernel.KernelFilter.doFilter(KernelFilter.java:71)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.openbravo.dal.core.DalRequestFilter$1.doAction(DalRequestFilter.java:81)
    at org.openbravo.dal.core.ThreadHandler.run(ThreadHandler.java:46)
    at org.openbravo.dal.core.DalRequestFilter.doFilter(DalRequestFilter.java:103)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:662)

Run the General Ledger Report with dates from 01-01-2000 to 01-01-2222 for the Accounting Schema F&B International
xmlDocument object must be initialized before using it
Regression
related to defect 00188673.0MP5 closed jonalegriaesarte The General Ledger Report does not show properly data depending of the organization, when the organization is * 
Issue History
2011-11-14 16:56vmromanosNew Issue
2011-11-14 16:56vmromanosAssigned To => jonalegriaesarte
2011-11-14 16:56vmromanosModules => Core
2011-11-14 16:56vmromanosRelationship addedrelated to 0018867
2011-11-14 16:56vmromanosTag Attached: Regression
2011-11-14 16:57vmromanosSummaryReport General Ledger shows a NullPointer => Report General Ledger shows a NullPointerException
2011-11-14 18:52hgbotCheckin
2011-11-14 18:52hgbotNote Added: 0042813
2011-11-14 18:52hgbotStatusnew => resolved
2011-11-14 18:52hgbotResolutionopen => fixed
2011-11-14 18:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f063ce238a941c378ae02b9f05a6ebb2bf671f12 [^]
2011-11-14 19:10shuehnerIssue Monitored: shuehner
2011-11-15 10:46vmromanosNote Added: 0042816
2011-11-15 10:46vmromanosStatusresolved => closed
2011-11-15 17:04hudsonbotCheckin
2011-11-15 17:04hudsonbotNote Added: 0042845

Notes
(0042813)
hgbot   
2011-11-14 18:52   
Repository: erp/devel/pi
Changeset: f063ce238a941c378ae02b9f05a6ebb2bf671f12
Author: Jon Alegría <jon.alegria <at> openbravo.com>
Date: Mon Nov 14 18:51:04 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/f063ce238a941c378ae02b9f05a6ebb2bf671f12 [^]

Fixes issue 0019062: Report General Ledger shows a NullPointerException
The null pointer exception is solved. In html format, a warning is shown when
the fiscal year initial date can not be found regarding the date from selected
in the filter.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/erpCommon/ad_reports/ReportGeneralLedger.java
---
(0042816)
vmromanos   
2011-11-15 10:46   
Fixed and working fine. The NullPointerException does not appear in the same scenario
(0042845)
hudsonbot   
2011-11-15 17:04   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/22d704d9f2e8 [^]

Maturity status: Test