]
Mariano De Maio resolved DROOLS-457.
------------------------------------
Fix Version/s: 6.1.0.Beta2
Resolution: Done
Pull request merged into master by Maciej Swiderski
TaskModelProvider's ServiceLoader sync problem
----------------------------------------------
Key: DROOLS-457
URL:
https://issues.jboss.org/browse/DROOLS-457
Project: Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 6.0.0.Final, 6.0.1.Final, 6.1.0.Beta1, 6.1.0.Beta2, 6.1.0.Final
Reporter: Mariano De Maio
Assignee: Mark Proctor
Fix For: 6.1.0.Beta2
Attachments: test-case.zip
This bug was found related to jBPM6 components, but its solution needs to be implemented
in the kie-internal project, hence we report it in this project.
When the TaskModelProvider access the factory object, it iterates the service loader
directly. Unfortunately, the ServiceLoader class states:
"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 causes that environments that need to use the TaskModelProvider from different
threads with no prior invocation.
I'll add a maven test to reproduce the issue. We have also a solution we'll
submit in a pull request
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: