Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0056921Openbravo ERPA. Platformpublic2024-10-29 11:442024-10-29 11:45
AugustoMauch 
Triage Platform Base 
normalminorhave not tried
newopen 
5
 
 
Core
No
0056921: generate.entities.quick does not detect data origin type changes
When the data origin type of a table changes (i.e. from Table to HQL Query), the generate.entities.quick does not detect the change, and as a consequence the entities are not regenerated, resulting in a failed build:



generate.entities.quick:

init:

compile.src.gen:
     [copy] Copying 61 files to /srv/ci/workspace/pos2-inc-pgsql/build/classes

generate.entities.quick:
     [java] 1520 [main] INFO org.openbravo.base.gen.GenerateEntitiesTask - Model has not changed since last run, not re-generating entities

...

BUILD FAILED
/srv/ci/workspace/pos2-inc-pgsql/modules/org.openbravo.core2/build.xml:54: org.openbravo.base.exception.OBException: java.lang.NullPointerException
    at org.openbravo.base.session.SessionFactoryController.initialize(SessionFactoryController.java:186)
    at org.openbravo.dal.core.DalLayerInitializer.initialize(DalLayerInitializer.java:86)
    at org.openbravo.dal.core.DalInitializingTask.execute(DalInitializingTask.java:115)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:99)
    at org.apache.tools.ant.Task.perform(Task.java:350)
    at org.apache.tools.ant.Target.execute(Target.java:449)
    at org.apache.tools.ant.Target.performTasks(Target.java:470)
    at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1391)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
    at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1254)
    at org.apache.tools.ant.Main.runBuild(Main.java:830)
    at org.apache.tools.ant.Main.startAnt(Main.java:223)
    at org.apache.tools.ant.launch.Launcher.run(Launcher.java:284)
    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:101)
Caused by: java.lang.NullPointerException
    at org.hibernate.metamodel.internal.AttributeFactory.determineSingularAssociationAttributeType(AttributeFactory.java:645)
    at org.hibernate.metamodel.internal.AttributeFactory.determineAttributeMetadata(AttributeFactory.java:520)
    at org.hibernate.metamodel.internal.AttributeFactory.buildAttribute(AttributeFactory.java:92)
    at org.hibernate.metamodel.internal.MetadataContext.wrapUp(MetadataContext.java:263)
    at org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:275)
    at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:319)
    at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:471)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:728)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:746)
    at org.openbravo.base.session.SessionFactoryController.initialize(SessionFactoryController.java:177)
    ... 19 more
See above
No tags attached.
Issue History
2024-10-29 11:44AugustoMauchNew Issue
2024-10-29 11:44AugustoMauchAssigned To => Triage Platform Base
2024-10-29 11:44AugustoMauchModules => Core
2024-10-29 11:44AugustoMauchTriggers an Emergency Pack => No
2024-10-29 11:45shuehnerIssue Monitored: shuehner

There are no notes attached to this issue.