Description of problem: TaskModelProvider is not thread safe while it should be because it uses ServiceLoader which explicitly states in documentation that: "Instances of this class are not safe for use by multiple concurrent threads." (http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html) This affects environments that need to use the TaskModelProvider from different threads with no prior invocation. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
fix already pushed to master droolsjbpm-knowledge master: https://github.com/droolsjbpm/droolsjbpm-knowledge/commit/57bb84c1b976614d864aaa4602f44d3351ecaff9
backported to 6.0.x droolsjbpm-knowledge 6.0.x: https://github.com/droolsjbpm/droolsjbpm-knowledge/commit/1b8dcb8b3de490ff929c3f5ca9b613a272eff689
Verified in BPMS 6.0.2.ER1. Concurrency issues are not easily unit testable.