[
https://issues.jboss.org/browse/ISPN-2039?page=com.atlassian.jira.plugin....
]
Vladimir Blagojevic updated ISPN-2039:
--------------------------------------
Git Pull Request:
https://github.com/infinispan/infinispan/pull/1113
Ales Justin provided a fix for this issue.
Iteration in DistributedTaskLifecycleService using ServiceLoader
fails
----------------------------------------------------------------------
Key: ISPN-2039
URL:
https://issues.jboss.org/browse/ISPN-2039
Project: Infinispan
Issue Type: Bug
Components: Distributed Cache
Affects Versions: 5.1.4.FINAL
Environment: This problem has been observed in AS 7 environment rather than
Infinispan standalone
Reporter: Ales Justin
Assignee: Vladimir Blagojevic
Priority: Minor
Fix For: 5.2.0.ALPHA1, 5.2.0.FINAL
For some unknown reason iteration over available DistributedTaskLifecycle services in
DistributedTaskLifecycleService fails, and it fails only in AS environment:
Caused by: java.util.NoSuchElementException
at java.util.AbstractList$Itr.next(AbstractList.java:350) [classes.jar:1.6.0_31]
at java.util.Collections$1.nextElement(Collections.java:3389) [classes.jar:1.6.0_31]
at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:332)
[classes.jar:1.6.0_31]
at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:415) [classes.jar:1.6.0_31]
at
org.infinispan.distexec.spi.DistributedTaskLifecycleService.onPreExecute(DistributedTaskLifecycleService.java:50)
[infinispan-core-5.2.0-SNAPSHOT.jar:5.2.0-SNAPSHOT]
public <T> void onPreExecute(Callable<T> task) {
try {
Iterator<DistributedTaskLifecycle> i = loader.iterator();
while (i.hasNext()) { // <-------------------------------------------------
we CHECK before
DistributedTaskLifecycle cl = i.next();
cl.onPreExecute(task);
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira