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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0035834
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
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

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(FreemarkerTemplateProcessor.java:69)
    at org.openbravo.client.kernel.freemarker.FreemarkerTemplateProcessor.processTemplate(FreemarkerTemplateProcessor.java:48)
    at org.openbravo.client.kernel.BaseTemplateProcessor.process(BaseTemplateProcessor.java:60)
...
Caused by: java.lang.IllegalStateException: Exception when creating component E918C30CA7DB434AA854720F4FCA32A4
    at org.openbravo.client.application.NavigationBarComponentGenerator.generateComponent(NavigationBarComponentGenerator.java:138)
    at org.openbravo.client.application.NavigationBarComponentGenerator.generateNavigationBarComponents(NavigationBarComponentGenerator.java:92)
    at org.openbravo.client.application.NavigationBarComponentGenerator.getDynamicNavigationBarComponents(NavigationBarComponentGenerator.java:76)
    at org.openbravo.client.application.MainLayoutComponent.getNavigationBarComponents(MainLayoutComponent.java:47)
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(BeanManagerImpl.java:596)
    at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:626)
    at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:692)
    at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:136)


[1] https://ci.openbravo.com/job/mod-simple/12411/testReport/ [^]
Steps To ReproduceSee CI for platform modules (ie. https://ci.openbravo.com/job/mod-simple/12411/testReport/ [^])
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
(0096159)
hgbot (developer)
2017-04-25 16:00

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

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/WeldBaseTest.java
M modules/org.openbravo.base.weld/src/org/openbravo/base/weld/WeldUtils.java
---
(0096161)
alostale (manager)
2017-04-25 16:43

got a successful build after fix is applied: https://ci.openbravo.com/view/modules/job/mod-platform/511/ [^]
(0096246)
caristu (developer)
2017-04-28 08:16

Reviewed
(0096906)
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: https://code.openbravo.com/erp/devel/main/rev/1ee70113bdc4 [^]
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 => http://code.openbravo.com/erp/devel/pi/rev/a157881ce09679dfddc16ccf6eb4e610fba13683 [^]
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