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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0038512
TypeCategorySeverityReproducibilityDate SubmittedLast Update
design defect[Openbravo ERP] A. Platformminorhave not tried2018-05-10 09:232018-05-10 13:42
ReportercaristuView Statuspublic 
Assigned Toplatform 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0038512: OBQuery can fail using objects from OBContext as parameters

DescriptionOBQuery can fail using objects from OBContext as parameters.
Steps To Reproduce1) Apply the attached patch (obquery.diff)
2) Log-in
3) Open the About pop-up. The query fails, showing the following error trace:

ERROR org.openbravo.erpCommon.ad_forms.About - Error captured:
org.hibernate.MappingException: Unknown entity: org.openbravo.model.ad.system.Client
    at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:694)
    at org.hibernate.impl.SessionFactoryImpl.getIdentifierType(SessionFactoryImpl.java:781)
    at org.hibernate.type.EntityType.getIdentifierType(EntityType.java:560)
    at org.hibernate.type.EntityType.getIdentifierOrUniqueKeyType(EntityType.java:585)
    at org.hibernate.type.ManyToOneType.nullSafeSet(ManyToOneType.java:130)
    at org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:67)
    at org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:571)
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1716)

4) Note that when building the same query (with the same parameter) using OBCriteria, it can be executed properly (see attached obcriteria.diff)
TagsNo tags attached.
Attached Filesdiff file icon obquery.diff [^] (1,463 bytes) 2018-05-10 09:23 [Show Content]
diff file icon obcriteria.diff [^] (1,644 bytes) 2018-05-10 09:25 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on feature request 0037064 closedcaristu upgrade hibernate to 5.3.2 

-  Notes
(0104443)
caristu (developer)
2018-05-10 09:31
edited on: 2018-05-10 09:31

Note that this problem can't be reproduced with hibernate 5.3.0.CR2[1]. So, this issue will be fixed with the hibernate upgrade.

[1] https://code.openbravo.com/erp/devel/pi-hb53 [^]

(0104452)
caristu (developer)
2018-05-10 13:42

Fixed with 0037064

- Issue History
Date Modified Username Field Change
2018-05-10 09:23 caristu New Issue
2018-05-10 09:23 caristu Assigned To => platform
2018-05-10 09:23 caristu File Added: obquery.diff
2018-05-10 09:23 caristu Modules => Core
2018-05-10 09:23 caristu Triggers an Emergency Pack => No
2018-05-10 09:25 caristu File Added: obcriteria.diff
2018-05-10 09:26 caristu Steps to Reproduce Updated View Revisions
2018-05-10 09:28 caristu Relationship added related to 0037064
2018-05-10 09:31 caristu Note Added: 0104443
2018-05-10 09:31 caristu Note Edited: 0104443 View Revisions
2018-05-10 09:42 caristu Type defect => design defect
2018-05-10 09:42 caristu Relationship deleted related to 0037064
2018-05-10 09:42 caristu Relationship added depends on 0037064
2018-05-10 13:42 caristu Review Assigned To => caristu
2018-05-10 13:42 caristu Note Added: 0104452
2018-05-10 13:42 caristu Status new => closed
2018-05-10 13:42 caristu Resolution open => fixed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker