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

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Openbravo ERP] A. Platformminorhave not tried2019-09-26 17:072019-09-27 10:54
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PriorityimmediateResolutionfixedFixed in Version3.0PR19Q3
StatusclosedFix in branchFixed in SCM revision8c33062c4a20
ProjectionnoneETAnoneTarget Version3.0PR19Q3.1
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
Regression levelProduction - Confirmed Stable
Regression date2018-11-22
Regression introduced in release3.0PR19Q1
Regression introduced by commit [^]
Triggers an Emergency PackNo

0041893: Masked String reference can leave ADCS in an inconsitent state

DescriptionWindows with tabs with fields which columns have a Masked String reference can lead the system to an inconsistent state making fail that windows generation.

ADCS does not completely initialize those references.
Steps To ReproducePreparation
1. As Sys Admin
2. Edit Organization table, description column
3. Change its reference to Masked String
4. Add a sub reference to a new mask
5. Set all modules as not in development
6. Restart Tomcat

1. Open Organization window
2. Restart Tomcat
3. Log in with the same browser session and open Organization window
4. In a different browser log in and open Organization window

Caused by: java.lang.IllegalStateException: freemarker.template.TemplateModelException: get(fieldProperties) failed on instance of org.openbravo.client.application.window.OBViewFieldHandler$OBViewField
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate( ~[classes/:?]
Caused by: org.hibernate.LazyInitializationException: failed to lazily initialize a collection of role: ADReference.oBCLKERREFMASKList, could not initialize proxy - no Session
    at org.hibernate.collection.internal.AbstractPersistentCollection.throwLazyInitializationException( ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded( ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.collection.internal.AbstractPersistentCollection.readSize( ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.hibernate.collection.internal.PersistentBag.size( ~[hibernate-core-5.4.2.Final.jar:5.4.2.Final]
    at org.openbravo.client.kernel.reference.MaskedStringUIDefinition.getFieldProperties( ~[classes/:?]
    at org.openbravo.client.application.window.OBViewFieldHandler$OBViewField.getFieldProperties( ~[classes/:?]
Proposed SolutionWorkaround while the problem is not solved:
1) Download jmxterm-1.0.1-uber.jar
2) java -jar jmxterm-1.0.1-uber.jar
3) open <PID>
4) bean
5) run resetCache

** to the step 3) open <PID>: execute the "jps" command. It returns an id, to use.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0041892 closedalostale Masked String reference can leave ADCS in an inconsitent state 

-  Notes
hgbot (developer)
2019-09-27 10:14

Repository: erp/backports/3.0PR19Q3.1
Changeset: 8c33062c4a202552a67e93c7c1b126693070501d
Author: Asier Lostalé <asier.lostale <at>>
Date: Fri Sep 27 09:56:29 2019 +0200
URL: [^]

fixed bug 41893: Masked String reference can leave ADCS in an inconsitent state

  Masked String reference was partially initialized in ADCS, causing errors when
  a record in a tab with this reference triggered ADCS initialization for that
  window and later a view definition for the same window was requested.

  Now we are eagerly initializating masked string references.

M modules/org.openbravo.client.application/src/org/openbravo/client/application/window/
caristu (developer)
2019-09-27 10:54

Code reviewed + tested OK.

- Issue History
Date Modified Username Field Change
2019-09-26 17:14 alostale Type defect => backport
2019-09-26 17:14 alostale Target Version => 3.0PR19Q3.1
2019-09-27 10:14 hgbot Checkin
2019-09-27 10:14 hgbot Note Added: 0114831
2019-09-27 10:14 hgbot Status scheduled => resolved
2019-09-27 10:14 hgbot Resolution open => fixed
2019-09-27 10:14 hgbot Fixed in SCM revision => [^]
2019-09-27 10:54 caristu Note Added: 0114836
2019-09-27 10:54 caristu Status resolved => closed
2019-09-27 10:54 caristu Fixed in Version => 3.0PR19Q3

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker