You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by __matthewHawthorne <ma...@apache.org> on 2004/01/09 00:01:32 UTC

method signature errors with 1.2alpha

I recently upgraded from 1.1 to 1.2alpha and am now unable to invoke my 
web services.  Both of these methods worked with 1.1.


1) Service.findAll()

Call.invoke(null) produces:

Tried to invoke method
public abstract java.util.Collection Service.findAll()
throws java.rmi.RemoteException
with arguments .
The arguments do not match the signature.; nested exception is: 
java.lang.IllegalArgumentException: object is not an instance of 
declaring class


2) Service.findById()

Call.invoke(new Object[] {new Integer(1)}) produces:
Tried to invoke method
public abstract java.util.Collection Service.findById(int)
throws java.rmi.RemoteException
with arguments java.lang.Integer.
The arguments do not match the signature.; nested exception is:
java.lang.IllegalArgumentException: object is not an instance of 
declaring class


So, does anyone have instructions (or an example) of how to execute a 
method that takes no arguments, as well as a method that takes primitive 
arguments?

Thanks!


Re: method signature errors with 1.2alpha

Posted by Davanum Srinivas <di...@yahoo.com>.
matt,

can you please create a bugzilla bug with some sample code that we can use to test?
(http://ws.apache.org/axis/bugs.html)

thanks,
dims

--- __matthewHawthorne <ma...@apache.org> wrote:
> I recently upgraded from 1.1 to 1.2alpha and am now unable to invoke my 
> web services.  Both of these methods worked with 1.1.
> 
> 
> 1) Service.findAll()
> 
> Call.invoke(null) produces:
> 
> Tried to invoke method
> public abstract java.util.Collection Service.findAll()
> throws java.rmi.RemoteException
> with arguments .
> The arguments do not match the signature.; nested exception is: 
> java.lang.IllegalArgumentException: object is not an instance of 
> declaring class
> 
> 
> 2) Service.findById()
> 
> Call.invoke(new Object[] {new Integer(1)}) produces:
> Tried to invoke method
> public abstract java.util.Collection Service.findById(int)
> throws java.rmi.RemoteException
> with arguments java.lang.Integer.
> The arguments do not match the signature.; nested exception is:
> java.lang.IllegalArgumentException: object is not an instance of 
> declaring class
> 
> 
> So, does anyone have instructions (or an example) of how to execute a 
> method that takes no arguments, as well as a method that takes primitive 
> arguments?
> 
> Thanks!
> 


=====
Davanum Srinivas - http://webservices.apache.org/~dims/