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

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformminorhave not tried2017-04-25 15:552017-05-29 17:43
ReporteralostaleView Statuspublic 
Assigned Toalostale 
PrioritynormalResolutionfixedFixed in Version3.0PR17Q3
StatusclosedFix in branchFixed in SCM revisiona157881ce096
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tocaristu
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0035834: platform modules fail in CI

DescriptionCI for platform modules is failing in org.openbravo.client.application.test.MenuTemplateTest.testApplication (see [1]).

With the following error:
java.lang.IllegalStateException: freemarker.template.TemplateModelException: get(navigationBarComponents) failed on instance of org.openbravo.client.application.MainLayoutComponent
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(
    at org.openbravo.client.kernel.BaseTemplateProcessor.process(
Caused by: java.lang.IllegalStateException: Exception when creating component E918C30CA7DB434AA854720F4FCA32A4
    at org.openbravo.client.application.NavigationBarComponentGenerator.generateComponent(
    at org.openbravo.client.application.NavigationBarComponentGenerator.generateNavigationBarComponents(
    at org.openbravo.client.application.NavigationBarComponentGenerator.getDynamicNavigationBarComponents(
    at org.openbravo.client.application.MainLayoutComponent.getNavigationBarComponents(
Caused by: org.jboss.weld.context.ContextNotActiveException: WELD-001303 No active contexts for scope type javax.enterprise.context.Dependent
    at org.jboss.weld.manager.BeanManagerImpl.getContext(
    at org.jboss.weld.manager.BeanManagerImpl.getReference(
    at org.jboss.weld.manager.BeanManagerImpl.getReference(
    at org.jboss.weld.injection.FieldInjectionPoint.inject(

[1] [^]
Steps To ReproduceSee CI for platform modules (ie. [^])
Proposed SolutionThis problem started after login refactor project (0035553). It seems to be caused because there are 2 different instances of bean manager which are not able to properly create contexts for Dependent scope. The solution is to change test infrastructure to force to use the same manager.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 0035553 closedcaristu Improve scalability of the login process 

-  Notes
hgbot (developer)
2017-04-25 16:00

Repository: erp/devel/pi
Changeset: a157881ce09679dfddc16ccf6eb4e610fba13683
Author: Asier Lostalé <asier.lostale <at>>
Date: Tue Apr 25 15:59:15 2017 +0200
URL: [^]

fixed bug 35834: platform modules fail in CI

  Two different instances of Weld bean manager were in use, this caused dependant
  context not to be consistently handled in jUnit Arquillian test cases.

  Solved by setting the same instance for static and instance bean manager in WeldUtils
  whenever a test class is statarted.

M modules/org.openbravo.base.weld/src-test/org/openbravo/base/weld/test/
M modules/org.openbravo.base.weld/src/org/openbravo/base/weld/
alostale (developer)
2017-04-25 16:43

got a successful build after fix is applied: [^]
caristu (developer)
2017-04-28 08:16

hudsonbot (developer)
2017-05-29 17:43

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2017-04-25 15:55 alostale New Issue
2017-04-25 15:55 alostale Assigned To => platform
2017-04-25 15:55 alostale Modules => Core
2017-04-25 15:55 alostale Triggers an Emergency Pack => No
2017-04-25 15:56 alostale Relationship added related to 0035553
2017-04-25 15:56 alostale Assigned To platform => alostale
2017-04-25 15:56 alostale Review Assigned To => caristu
2017-04-25 16:00 hgbot Checkin
2017-04-25 16:00 hgbot Note Added: 0096159
2017-04-25 16:00 hgbot Status new => resolved
2017-04-25 16:00 hgbot Resolution open => fixed
2017-04-25 16:00 hgbot Fixed in SCM revision => [^]
2017-04-25 16:43 alostale Note Added: 0096161
2017-04-28 08:16 caristu Note Added: 0096246
2017-04-28 08:16 caristu Status resolved => closed
2017-04-28 08:16 caristu Fixed in Version => 3.0PR17Q3
2017-05-29 17:43 hudsonbot Checkin
2017-05-29 17:43 hudsonbot Note Added: 0096906

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker