First of all thanks for the answer.

And it did work when not adding any workers, so I guess I should updated my 
code example.

I had called 
addprocs(1)

before the whole thing.

So I guess now I'm more confused, my *pmap* call works when *nprocs() == 1* but 
not after adding workers...
And it's also surprising that I only get that *BoundsError* when my array 
contains something *>= 26 *(which means *findAndReturn2 *should return the 
last value of my SortedSet)*.*

eg:
pmap(findAndReturn2, [1,1,1]) #returns [1,1,1]
pmap(findAndReturn2, [1,1,26]) #returns [1,1,RemoteException]

Any idea what I could be doing wrong?

Cheers,
Louis

Reply via email to