Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] Coremajorhave not tried2023-09-18 19:582023-09-19 09:22
ReportershuehnerView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0053480: core2 build generateApp step fails with NullPointerException (using merged+pos-modules as input set of modules)

Descriptionthe core2 specific build step we have as part of pos2 build

ant -f modules/org.openbravo.core2/build.xml build

fails with a NullPointerException for a set of modules where "and check.module.consistency" shows no issues.

Error is observed with set of modules when combining current merged.json + pos2-modules
See branch with concrete reproducer json in steps to reproduce

Exception details are:
[generateApp] 10862 [main] INFO - Generating POS2 application...

<workspace>/modules/org.openbravo.core2/build.xml:62: java.lang.NullPointerException
        at org.openbravo.dal.core.SessionHandler.createSession(
        at org.openbravo.dal.core.SessionHandler.begin(
        at org.openbravo.dal.core.SessionHandler.getSession(
        at org.openbravo.dal.core.SessionHandler.find(
        at org.openbravo.dal.core.SessionHandler.find(
        at org.openbravo.dal.core.SessionHandler.find(
        at org.openbravo.dal.core.OBContext.initialize(
        at org.openbravo.dal.core.OBContext.setOBContext(
        at org.openbravo.dal.core.OBContext.setOBContext(
        at org.openbravo.dal.core.OBContext.setAdminContextLocally(
        at org.openbravo.dal.core.OBContext.setAdminMode(
        at org.openbravo.dal.core.OBContext.setAdminMode(
        at org.openbravo.client.kernel.KernelUtils.getModulesOrderedByDependency(
        at org.openbravo.client.kernel.KernelUtils.getModule(
        at org.openbravo.retail.verystar.OBVERComponentProvider.getGlobalComponentResources(
        at java.base/$7$1.accept(
        at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(
        at java.base/
        at java.base/
        at java.base/$ReduceOp.evaluateSequential(
        at java.base/
        at java.base/
Steps To ReproduceSet of modules available in this file: [^]

ant install.source
npm ci --omit=dev
ant -f modules/org.openbravo.core2/build.xml build
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
hgbot (developer)
2023-09-19 08:41

Merge Request created: [^]
hgbot (developer)
2023-09-19 09:22

Merge request merged: [^]
hgbot (developer)
2023-09-19 09:22

Directly closing issue as related merge request is already approved.

Repository: [^]
Changeset: 25da9e5869294c9623edb21e5c1fef2bad814c3c
Author: Asier Lostalé <>
Date: 19-09-2023 08:34:23
URL: [^]

fixes BUG-53480: core2 build fails

Building pos2 with verystar module installed thrown a NPE performing core2's step.

It was caused by verystar's component provider trying to use DAL in an stage
that is not available.

M src/org/openbravo/retail/verystar/

- Issue History
Date Modified Username Field Change
2023-09-18 19:58 shuehner New Issue
2023-09-18 19:58 shuehner Assigned To => Triage Platform Base
2023-09-18 19:58 shuehner Triggers an Emergency Pack => No
2023-09-18 19:59 shuehner Description Updated View Revisions
2023-09-18 20:04 shuehner Summary core2 build steps fails with NullPointerException (using merged+pos-modules as input set of modules) => core2 build generateApp step fails with NullPointerException (using merged+pos-modules as input set of modules)
2023-09-19 08:41 hgbot Note Added: 0154968
2023-09-19 08:41 alostale Assigned To Triage Platform Base => alostale
2023-09-19 09:22 hgbot Resolution open => fixed
2023-09-19 09:22 hgbot Status new => closed
2023-09-19 09:22 hgbot Note Added: 0154970
2023-09-19 09:22 hgbot Note Added: 0154971

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker