[flexcoders] Error: Cannot invoke method when using a VO

2005-03-28 Thread cazzaran


I have a delegate class on my server called GroupDelegate, and it has
a method addGroup(Group group).

When I try and call this method on my remote object, I get the error:

Error: Cannot invoke method addGroup

However, if I switch my method's signature to addGroup(String
groupName), the method executes, and the group is added to the DB.

Group is just a POJO, and obviously the second method wont work
because there is a lot more information than just the groupName that
needs to be recorded...

Interestingly, when I do a getGroups I get back an array of the
correct objects, and in my client side model of my Group class I have
correctly done the Object.registerClass. The only time I seem to have
an issue is when I pass it BACK to my server as a Group.

Any ideas? -Josh





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] Error: Cannot invoke method when using a VO

2005-03-28 Thread Peter Farland

Does the Java version of Group have a public no args constructor?


-Original Message-
From: cazzaran [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 28, 2005 3:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error: Cannot invoke method when using a VO



I have a delegate class on my server called GroupDelegate, and it has
a method addGroup(Group group).

When I try and call this method on my remote object, I get the error:

Error: Cannot invoke method addGroup

However, if I switch my method's signature to addGroup(String
groupName), the method executes, and the group is added to the DB.

Group is just a POJO, and obviously the second method wont work
because there is a lot more information than just the groupName that
needs to be recorded...

Interestingly, when I do a getGroups I get back an array of the
correct objects, and in my client side model of my Group class I have
correctly done the Object.registerClass. The only time I seem to have
an issue is when I pass it BACK to my server as a Group.

Any ideas? -Josh





 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/