Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013865Openbravo ERPA. Platformpublic2010-07-01 21:552010-07-24 00:00
zosrothko 
mtaal 
normalmajoralways
closedduplicate 
10Pro SP2
pi 
2.50MP20 
Core
No
0013865: NPE when setting OBContext.ADMIN_TRACE_SIZE = 5 and running import.sample.data
Hi

when setting the constant OBContext.ADMIN_TRACE_SIZE to a value higher than 0, one gets a NullPointerException with no way to trace what the problem is. See the following log:

Z:\ERP\OpenBRAVO\erp\devel\openbravo>hg heads
changeset: 7793:f9da16b458d1
tag: tip
user: Eduardo Argal Guibert <eduardo.argal@openbravo.com>
date: Thu Jul 01 16:33:12 2010 +0200
summary: Merge

build.war:
   [delete] Deleting: Z:\ERP\OpenBRAVO\erp\devel\openbravo\lib\openbravo.war
      [war] Building war: Z:\ERP\OpenBRAVO\erp\devel\openbravo\lib\openbravo.war
      [sql] Executing commands
      [sql] 2 of 2 SQL statements executed successfully

compile.complete.deploy:

install.source:
     [echo] applying modules
Trying to override old definition of task axis-wsdl2java
Trying to override old definition of task axis-admin
Trying to override old definition of task axis-java2wsdl

set.code.rev:

code.rev:

init:

compile.apply.module:
      [sql] Executing commands
      [sql] 2 of 2 SQL statements executed successfully

init:

compile.apply.module:
    [mkdir] Created dir: Z:\ERP\OpenBRAVO\erp\devel\openbravo\build.apply\classes
     [java] 0 [main] INFO org.openbravo.data.Sqlc - strFileProperties: Z:\ERP\OpenBRAVO\erp\devel\openbravo\config/O
penbravo.properties
     [java] 1438 [main] INFO org.openbravo.data.Sqlc - javaDateFormat: yyyy-MM-dd
     [java] 1485 [main] INFO org.openbravo.data.Sqlc - directory source: .
     [java] 1516 [main] INFO org.openbravo.data.Sqlc - directory destiny: Z:\ERP\OpenBRAVO\erp\devel\openbravo\build\ja
vasqlc/src
     [java] 1547 [main] INFO org.openbravo.data.Sqlc - file termination: .xsql
     [java] 1563 [main] INFO org.openbravo.data.Sqlc - file connection: Z:\ERP\OpenBRAVO\erp\devel\openbravo\config/Ope
nbravo.properties
     [java] 1594 [main] INFO org.openbravo.data.Sqlc - Write TXT Files: false
     [java] 1610 [main] INFO org.openbravo.data.Sqlc - QueryExecutionStrategy: optimized
     [java] 1641 [main] INFO org.openbravo.data.Sqlc - Loading driver: org.postgresql.Driver
     [java] 1657 [main] INFO org.openbravo.data.Sqlc - Driver loaded
     [java] 1735 [main] INFO org.openbravo.data.Sqlc - connect made
    [javac] Compiling 1 source file to Z:\ERP\OpenBRAVO\erp\devel\openbravo\build.apply\classes

apply.module:
     [java] 0 [main] INFO org.openbravo.erpCommon.modules.ApplyModule - Looking for translation modules
     [java] 93 [main] INFO org.openbravo.erpCommon.modules.ApplyModule - Looking for reference data modules
     [java] 296 [main] INFO org.openbravo.erpCommon.modules.ApplyModule - 1 reference data modules have data files
     [java] 343 [main] INFO org.openbravo.erpCommon.modules.ApplyModule - Importing data from core module. Dataset: Ma
sterdata.xml
   [delete] Deleting directory Z:\ERP\OpenBRAVO\erp\devel\openbravo\build.apply\classes
Trying to override old definition of task axis-wsdl2java
Trying to override old definition of task axis-admin
Trying to override old definition of task axis-java2wsdl

set.code.rev:

code.rev:

import.sample.data:

init:

compile.src.gen:

clean.src.gen:

generate.entities:
 [workflow] Adding param: Z:\ERP\OpenBRAVO\erp\devel\openbravo\src/org/openbravo/base/gen/gen_entity.oaw
 [workflow] Adding param: -pob.properties.location=Z:\ERP\OpenBRAVO\erp\devel\openbravo\config/Openbravo.properties
 [workflow] Adding param: -pbase.src.gen=Z:\ERP\OpenBRAVO\erp\devel\openbravo\src-gen
 [workflow] Adding param: --ant
    [javac] Compiling 473 source files to Z:\ERP\OpenBRAVO\erp\devel\openbravo\build\classes

import.sample.data:
     [echo] Importing sample reference data

BUILD FAILED
Z:\ERP\OpenBRAVO\erp\devel\openbravo\build.xml:629: The following error occurred while executing this line:
Z:\ERP\OpenBRAVO\erp\devel\openbravo\build.xml:542: The following error occurred while executing this line:
Z:\ERP\OpenBRAVO\erp\devel\openbravo\src\build.xml:237: java.lang.NullPointerException

Total time: 34 minutes 27 seconds
Z:\ERP\OpenBRAVO\erp\devel\openbravo>ant import.sample.data
self describing
No tags attached.
duplicate of defect 0013572pi closed mtaal Maintain and print stacktraces when calls to setAdminMode and restoreAdminMode are unbalanced 
Issue History
2010-07-01 21:55zosrothkoNew Issue
2010-07-01 21:55zosrothkoAssigned To => alostale
2010-07-03 17:56zosrothkoNote Added: 0029040
2010-07-05 08:22alostaleStatusnew => scheduled
2010-07-05 08:22alostaleAssigned Toalostale => mtaal
2010-07-05 08:22alostalefix_in_branch => pi
2010-07-23 14:06mtaalRelationship addedduplicate of 0013572
2010-07-23 14:06mtaalStatusscheduled => closed
2010-07-23 14:06mtaalResolutionopen => duplicate
2010-07-23 14:06mtaalFixed in Version => 2.50MP20
2010-07-24 00:00anonymoussf_bug_id0 => 3033808

Notes
(0029040)
zosrothko   
2010-07-03 17:56   
Confere issue 13572