Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix: TaskModelProvider's ServiceLoader sync problem #63

Merged
merged 1 commit into from
Mar 14, 2014

Conversation

marianbuenosayres2
Copy link

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. This patch solves the issue

mswiderski added a commit that referenced this pull request Mar 14, 2014
BZ-1076633 - TaskModelProvider is not thread safe
@mswiderski mswiderski merged commit ac4aaa8 into kiegroup:master Mar 14, 2014
@mswiderski
Copy link
Contributor

thanks @marianbuenosayres2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants