Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
Description
SourceForge Submitter: kostakl .
Description:
If "HAPartition.callMethodOnCluster" is invoked with
argument with "null" value it fails.
Test case:
args = new Object[]
;
farmHAPartition.callMethodOnCluster( SERVICE_NAME,
"_methodName", args, false);
clustered _methodName call will result int "method
not found" error message
Reason:
Current implementation of "callMethodOnCluster" uses
deprecated constructor of "MethodCall"
<JGDOC>
Deprecated. use the complete constructor with a
java.lang.reflect.Method argument since null arguments
can not be correctly handled using null arguments
</JGDOC>
Solution:
add "java.lang.reflect.Method" parametr to
"callMethodOnCluster" method:
public ArrayList callMethodOnCluster(String objName,
String methodName, java.lang.reflect.Method method,
Object[] args, boolean excludeSelf) throws Exception
and use
MethodCall(java.lang.reflect.Method method,
java.lang.Object[] arguments) constructor