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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0053215
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] Z. Othersminorhave not tried2023-08-14 15:252023-08-17 12:37
ReporteraferrazView Statuspublic 
Assigned Tofermin_gascon 
PrioritynormalResolutionfixedFixed in VersionPR23Q4
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 releasepi
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0053215: ReducedTranslationExportTests test failure

DescriptionThe problem is in the test ReducedTranslationExportTests when calling org.openbravo.service.db.CallProcess.callProcess() This method requires now Weld to be initiated in order to execute extension hooks.

The stacktrace of executing this test is the following:
java.lang.IllegalStateException: java.lang.NullPointerException
    at org.openbravo.service.db.CallProcess.callProcess(CallProcess.java:223)
    at org.openbravo.service.db.CallProcess.call(CallProcess.java:121)
    at org.openbravo.service.db.CallProcess.call(CallProcess.java:97)
    at org.openbravo.service.db.CallProcess.call(CallProcess.java:255)
    at org.openbravo.test.reducedtranslation.ReducedTranslationExportTests.doVerifyLanguageIfNotPreviouslyDoneBefore(ReducedTranslationExportTests.java:68)
    at org.openbravo.test.reducedtranslation.ReducedTranslationExportTests.exportReducedTranslation(ReducedTranslationExportTests.java:56)
    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 org.jboss.arquillian.junit.Arquillian$StatementLifecycleExecutor.invoke(Arquillian.java:378)
    at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.execute(ClientBeforeAfterLifecycleEventExecuter.java:88)
    at org.jboss.arquillian.container.test.impl.execution.ClientBeforeAfterLifecycleEventExecuter.on(ClientBeforeAfterLifecycleEventExecuter.java:57)
    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 org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
    at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:103)
    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:90)
    at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:83)
    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 org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
    at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:69)
    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 org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:86)
    at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:95)
    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:133)
    at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:105)
    at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:89)
    at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:163)
    at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:350)
    at org.jboss.arquillian.junit.Arquillian.access$200(Arquillian.java:54)
    at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:177)
    at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:115)
    at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.NullPointerException
    at org.openbravo.base.weld.WeldUtils.getStaticInstanceBeanManager(WeldUtils.java:55)
    at org.openbravo.base.weld.WeldUtils.getInstances(WeldUtils.java:149)
    at org.openbravo.base.weld.WeldUtils.getInstancesSortedByPriority(WeldUtils.java:174)
    at org.openbravo.service.db.CallProcess.getHooks(CallProcess.java:299)
    at org.openbravo.service.db.CallProcess.callProcess(CallProcess.java:218)
Steps To ReproduceSee the following CI job:
https://builds.openbravo.com/view/modules/job/mod-translations/1367/ [^]

TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
caused by feature request 0050364 closedfermin_gascon It will be nice to have and api to export goods receipts and shipments to external services 

-  Notes
(0153583)
hgbot (developer)
2023-08-17 12:36

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 5b4f0ea40e9ecf6aa9df4b2e4d00cf026f5967e2
Author: Fermín Gascón <fermin.gascon@openbravo.com>
Date: 17-08-2023 10:36:56
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/5b4f0ea40e9ecf6aa9df4b2e4d00cf026f5967e2 [^]

Fixed ISSUE-53215: fix test by executing CallProcess after Weld has been initialized

---
M src-test/src/org/openbravo/test/reducedtranslation/ReducedTranslationExportTests.java
---
(0153585)
caristu (developer)
2023-08-17 12:37

MR: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/971 [^]

- Issue History
Date Modified Username Field Change
2023-08-14 15:25 aferraz New Issue
2023-08-14 15:25 aferraz Assigned To => Triage Platform Conn
2023-08-14 15:25 aferraz Modules => Core
2023-08-14 15:25 aferraz Regression introduced in release => pi
2023-08-14 15:25 aferraz Triggers an Emergency Pack => No
2023-08-14 15:25 aferraz Relationship added caused by 0050364
2023-08-14 15:53 adrianromero Steps to Reproduce Updated View Revisions
2023-08-14 15:57 adrianromero Description Updated View Revisions
2023-08-14 15:57 adrianromero Steps to Reproduce Updated View Revisions
2023-08-17 12:36 hgbot Resolution open => fixed
2023-08-17 12:36 hgbot Status new => resolved
2023-08-17 12:36 hgbot Fixed in Version => PR23Q4
2023-08-17 12:36 hgbot Note Added: 0153583
2023-08-17 12:37 caristu Review Assigned To => caristu
2023-08-17 12:37 caristu Status resolved => closed
2023-08-17 12:37 caristu Assigned To Triage Platform Conn => fermin_gascon
2023-08-17 12:37 caristu Note Added: 0153585


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker