[jboss-jira] [JBoss JIRA] (DROOLS-457) TaskModelProvider's ServiceLoader sync problem
Mariano De Maio (JIRA)
issues at jboss.org
Fri Mar 14 08:18:10 EDT 2014
[ https://issues.jboss.org/browse/DROOLS-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mariano De Maio updated DROOLS-457:
-----------------------------------
Attachment: test-case.zip
Test case project attachment
> 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
> 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: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list