Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0045653Openbravo ERPA. Platformpublic2020-12-28 09:442021-08-09 14:50
Leyre 
Leyre 
highmajoralways
newopen 
5
 
 
Core
No
0045653: "NullPointerException" in update.database when the log is at debug level or higher
"NullPointerException" in update.database when the log is at debug level or higher
1. Change in the file config/log4j2.xml:
  <Loggers>
    <Root level="info">
      <AppenderRef ref="Console"/>
For

  <Loggers>
    <Root level="debug">
      <AppenderRef ref="Console"/>

2. Execute: ant update.database

Result: see attached file with the error.
No tags attached.
txt error.txt (9,166) 2020-12-28 09:44
https://issues.openbravo.com/file_download.php?file_id=15208&type=bug
Issue History
2020-12-28 09:44LeyreNew Issue
2020-12-28 09:44LeyreAssigned To => platform
2020-12-28 09:44LeyreFile Added: error.txt
2020-12-28 09:44LeyreModules => Core
2020-12-28 09:44LeyreResolution time => 1610924400
2020-12-28 09:44LeyreTriggers an Emergency Pack => No
2020-12-29 11:57cbernerSummary"NullPointerException" in update.database when the log is at warning level or higher => "NullPointerException" in update.database when the log is at debug level or higher
2020-12-29 11:57cbernerDescription Updatedbug_revision_view_page.php?rev_id=21999#r21999
2021-01-04 10:35AugustoMauchNote Added: 0125236
2021-01-04 10:35AugustoMauchAssigned Toplatform => Leyre
2021-01-04 10:35AugustoMauchStatusnew => feedback
2021-08-09 14:50plujanNote Added: 0131041
2021-08-09 14:50plujanStatusfeedback => new
2021-08-09 14:50plujanTypedefect => design defect

Notes
(0125236)
AugustoMauch   
2021-01-04 10:35   
Leyre, I fixed the NullPointerException, but after that update.database does not finish, it seems that the XML parser it uses enters in an infinite loop when the log root is in debug mode.

If the original purpose of changing the log root to debug was to check some problem in the update.database project, you might achieve the same result adding this line instead:

    <Logger name="org.apache.ddlutils" level="debug"/>

Was that the purpose of changing the log level? Can you check if adding the line I mentioned achieves the same?
(0131041)
plujan   
2021-08-09 14:50   
Updated as a design defect and moved back to New status