Bugs item #719347, was opened at 2003-04-10 15:51
Message generated for change (Comment added) made by starksm
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=719347&group_id=22866

Category: Clustering
Group: CVS HEAD
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: David Klimek (kostakl)
Assigned to: Sacha Labourey (slaboure)
Summary: Imposible use callMethodOnCluster with null argument value

Initial Comment:
Description:

If "HAPartition.callMethodOnCluster" is invoked with
argument with "null" value it fails.

Test case:
args = new Object[] { newId, type, null};      
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



----------------------------------------------------------------------

>Comment By: Scott M Stark (starksm)
Date: 2004-11-20 09:59

Message:
Logged In: YES 
user_id=175228

There is now a callMethodOnCluster that accepts the method
signature:

public ArrayList callMethodOnCluster(String objName,
   String methodName, Object[] args, Class[] types,
   boolean excludeSelf) throws Exception


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=719347&group_id=22866


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to