Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0053215 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] Z. Others | minor | have not tried | 2023-08-14 15:25 | 2023-08-17 12:37 | |||
Reporter | aferraz | View Status | public | |||||
Assigned To | fermin_gascon | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | PR23Q4 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | pi | |||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0053215: ReducedTranslationExportTests test failure | |||||||
Description | The 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 Reproduce | See the following CI job: https://builds.openbravo.com/view/modules/job/mod-translations/1367/ [^] | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
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 |