Project:
View Revisions: Issue #53480 | [ Back to Issue ] | ||
Summary | 0053480: core2 build generateApp step fails with NullPointerException (using merged+pos-modules as input set of modules) | ||
Revision | 2023-09-18 19:59 by shuehner | ||
Description | the 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 org.openbravo.core2.build.AppGenerator - Generating POS2 application... BUILD FAILED <workspace>/modules/org.openbravo.core2/build.xml:62: java.lang.NullPointerException at org.openbravo.dal.core.SessionHandler.createSession(SessionHandler.java:230) at org.openbravo.dal.core.SessionHandler.begin(SessionHandler.java:576) at org.openbravo.dal.core.SessionHandler.getSession(SessionHandler.java:183) at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:535) at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:501) at org.openbravo.dal.core.SessionHandler.find(SessionHandler.java:481) at org.openbravo.dal.core.OBContext.initialize(OBContext.java:838) at org.openbravo.dal.core.OBContext.setOBContext(OBContext.java:530) at org.openbravo.dal.core.OBContext.setOBContext(OBContext.java:486) at org.openbravo.dal.core.OBContext.setAdminContextLocally(OBContext.java:186) at org.openbravo.dal.core.OBContext.setAdminMode(OBContext.java:218) at org.openbravo.dal.core.OBContext.setAdminMode(OBContext.java:240) at org.openbravo.client.kernel.KernelUtils.getModulesOrderedByDependency(KernelUtils.java:257) at org.openbravo.client.kernel.KernelUtils.getModule(KernelUtils.java:221) at org.openbravo.retail.verystar.OBVERComponentProvider.getGlobalComponentResources(OBVERComponentProvider.java:53) at org.openbravo.core2.build.BusinessLogicBundler.lambda$generatebaseBusinessLogicBundle$0(BusinessLogicBundler.java:63) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:271) at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) at org.openbravo.core2.build.BusinessLogicBundler.generatebaseBusinessLogicBundle(BusinessLogicBundler.java:68) at org.openbravo.core2.build.AppGenerator.execute(AppGenerator.java:48) |
Copyright © 2000 - 2009 MantisBT Group |