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

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 00. Application dictionarymajorsometimes2017-03-30 14:132017-09-21 16:49
Reportereduardo_ArgalView Statuspublic 
Assigned Tocaristu 
PriorityhighResolutionfixedFixed in Version3.0PR17Q4
StatusclosedFix in branchFixed in SCM revisionb8e85d42ebbc
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0035654: module validation fails for killable BG processes using CDI

DescriptionExport database task failing when trying to modify a BG process to be killable in case its classes make use of ie CDI.

The required java class uses weld and that makes export.database fail due to a validation
Steps To Reproduceinstall org.openbravo.retail.autocancelreservation module
set is as in development = 'Y'
go to dictionary and flag as killable VoidLayawaysBGProcess (Report and Process)
export database

Find error attached.

Process do implement killable interface
TagsNo tags attached.
Attached Filestxt file icon KillableProcessError.txt [^] (3,155 bytes) 2017-03-30 14:13 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to feature request 00297513.0PR15Q3 closedrafademiguel It would be nice to have the ability to kill a background process 

-  Notes
shuehner (administrator)
2017-03-30 16:05

Looks like export.db classpath is not the full project.class.path causing Class.forName to fail to the some injection related class
hgbot (developer)
2017-09-06 17:11

Repository: erp/devel/pi
Changeset: b8e85d42ebbcbce3c676d8b625f35b9a12fc6db0
Author: Carlos Aristu <carlos.aristu <at>>
Date: Wed Sep 06 17:09:53 2017 +0200
URL: [^]

fixes bug 35654: module validation fails for killable BG processes using CDI

 The DatabaseValidator class uses Class.forName(className) to retrieve the class of the background processes and then determine if they implement the KillableProcess interface.

 When using that method, the class is also initialized. This initialization failed in some cases with a java.lang.NoClassDefFoundError if the class was making use of weld (CDI).

 As we don't need to initialize the background process class to determine if it implements the KillableProcess interface, we replace the usage of Class.forName(className) with Class.forName(className, false, classLoader). With the second argument the class initialization is prevented.

M src/org/openbravo/service/system/
alostale (developer)
2017-09-08 12:02

reviewed + tested
hudsonbot (developer)
2017-09-21 16:49

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-03-30 14:13 eduardo_Argal New Issue
2017-03-30 14:13 eduardo_Argal Assigned To => platform
2017-03-30 14:13 eduardo_Argal File Added: KillableProcessError.txt
2017-03-30 14:13 eduardo_Argal Modules => Core
2017-03-30 14:13 eduardo_Argal Triggers an Emergency Pack => No
2017-03-30 16:04 shuehner Issue Monitored: shuehner
2017-03-30 16:05 shuehner Note Added: 0095718
2017-04-07 08:58 alostale Summary Export database task failing when trying to modify a BG process to be killable => module validation fails for killable BG processes using CDI
2017-04-07 08:58 alostale Description Updated View Revisions
2017-04-07 08:59 alostale Status new => acknowledged
2017-09-06 13:03 caristu Relationship added related to 0029751
2017-09-06 17:11 hgbot Checkin
2017-09-06 17:11 hgbot Note Added: 0098870
2017-09-06 17:11 hgbot Status acknowledged => resolved
2017-09-06 17:11 hgbot Resolution open => fixed
2017-09-06 17:11 hgbot Fixed in SCM revision => [^]
2017-09-06 17:20 caristu Assigned To platform => caristu
2017-09-06 17:20 caristu Review Assigned To => alostale
2017-09-08 12:02 alostale Note Added: 0098903
2017-09-08 12:02 alostale Status resolved => closed
2017-09-08 12:02 alostale Fixed in Version => 3.0PR17Q4
2017-09-21 16:49 hudsonbot Checkin
2017-09-21 16:49 hudsonbot Note Added: 0099365

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker