[jboss-jira] [JBoss JIRA] (DROOLS-1122) KieServicesClientImpl init not thread-safe
Marek Schmidt (JIRA)
issues at jboss.org
Thu Apr 14 11:11:00 EDT 2016
Marek Schmidt created DROOLS-1122:
-------------------------------------
Summary: KieServicesClientImpl init not thread-safe
Key: DROOLS-1122
URL: https://issues.jboss.org/browse/DROOLS-1122
Project: Drools
Issue Type: Bug
Components: kie server
Reporter: Marek Schmidt
Assignee: Edson Tirelli
Creating separate clients via KieServicesFactory.newKieServicesClient in separate threads sometimes fails due to unsafe use of ServiceLoader (which by itself is not safe to use from separate threads per https://docs.oracle.com/javase/8/docs/api/java/util/ServiceLoader.html ) in droolsjbpm-integration/kie-server-parent/kie-server-remote/kie-server-client/src/main/java/org/kie/server/client/impl/KieServicesClientImpl.java
The following can be seen in the logs of the failed threads
{noformat}
No builder found for 'BPM' capability
{noformat}
instead of the normal
{noformat}
Builder 'org.kie.server.client.helper.JBPMServicesClientBuilder at 7a988e48' for capability 'BPM'
{noformat}
Which is likely caused by ServiceLoader returning incorrect output in some race condition.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list