It looks like you are trying to pass an ArrayList
object into lookupUsers
but that method only accepts String[]
(an array of Strings) as an argument. So unless CFML does the conversion, I don't think it's going to work.
From a cursory glance at the ColdFusion docs, it looks like CFML can implicitly convert a CFML Array to a Java array, so perhaps the following would work:
screenNames = arrayNew(1);
screenNames[1] = 'Fry';
originUser = t4j.lookupUsers(screenNames);
Alternatively, if you want to keep on using a list there is an ArrayList#toArray(T[])
which could be useful, although I can't say how useful that would be in the CFML.
N.B. Please excuse my CFML code snippet.