Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0056921
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2024-10-29 11:442024-10-29 11:45
ReporterAugustoMauchView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0056921: generate.entities.quick does not detect data origin type changes

DescriptionWhen 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
Steps To ReproduceSee above
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2024-10-29 11:44 AugustoMauch New Issue
2024-10-29 11:44 AugustoMauch Assigned To => Triage Platform Base
2024-10-29 11:44 AugustoMauch Modules => Core
2024-10-29 11:44 AugustoMauch Triggers an Emergency Pack => No
2024-10-29 11:45 shuehner Issue Monitored: shuehner


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker