Previous source using AppsGroupsService removeOwnerFromGroup method no longer working

52 views
Skip to first unread message

Linda Toth

unread,
Mar 28, 2012, 3:23:49 PM3/28/12
to google-app...@googlegroups.com
Hello

I previously tested the removeOwnerFromGroup method, which removes the owner designation from a member without removing the member.  I am not repeatedly receiving an error that the method does not exist, even though it appears to be included in the gdata distribution I am using.  I want to make sure there is not some change at the Google level that is affecting my result before I go too deeply into why it is not working now.

Linda

Claudio Cherubino

unread,
Mar 28, 2012, 3:27:45 PM3/28/12
to google-app...@googlegroups.com
Hi Linda,

The removeOwnerFromGroup is defined in the AppsGroupsService class at:


I'm not aware of any changes that could affect this.

Claudio


Linda

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-apps-mgmt-apis/-/GZ_hjKI0m-MJ.
To post to this group, send email to google-app...@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Linda Toth

unread,
Mar 28, 2012, 4:10:20 PM3/28/12
to google-app...@googlegroups.com
Thank you for the revision number.  I am able to see the source as you listed it here in my version.  I will review import statements, etc.

Linda


On Wednesday, March 28, 2012 11:27:45 AM UTC-8, Claudio Cherubino wrote:
Hi Linda,

The removeOwnerFromGroup is defined in the AppsGroupsService class at:


I'm not aware of any changes that could affect this.

Claudio


Message has been deleted

Claudio Cherubino

unread,
Mar 28, 2012, 7:05:06 PM3/28/12
to google-app...@googlegroups.com
Hi Linda,

What exactly is the error you get?
Thanks

Claudio

On Wed, Mar 28, 2012 at 3:53 PM, Linda Toth <ltt...@alaska.edu> wrote:
Folks,

I have the latest libraries; the source clearly includes the method for removeOwnerFromGroup as shown by the result from a grep, searching for the method:  src/com/google/gdata/client/appsforyourdomain/AppsGroupsService.java:  public void removeOwnerFromGroup(String email, String groupId.

Our build process has not changed, our libraries have not changed, and I successfully tested this component before.  Some thing, some where has changed.  Can Googlers please follow up on this.

Linda
Message has been deleted

Claudio Cherubino

unread,
Mar 28, 2012, 8:29:51 PM3/28/12
to google-app...@googlegroups.com
Hi Linda,

Are you sure you are using the latest version of the GData Java client library?
As you said, the removeOwnerFromGroup is correctly defined in the source and the error is not on the server side, so there must be some configuration or versioning issue in your application.

Claudio

On Wed, Mar 28, 2012 at 5:26 PM, Linda Toth <ltt...@alaska.edu> wrote:
Claudio

The browser posts the following error (I am successfully adding members, owners, and deleting members via the AppsGroupsService methods.  This is the only method it repeatedly fails for):

The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet execution threw an exception
</pre></p><p><b>root cause</b> <pre>java.lang.NoSuchMethodError: com.google.gdata.client.appsforyourdomain.AppsGroupsService.removeOwnerFromGroup(Ljava/lang/String;Ljava/lang/String;)V

I have used the following information as parameters:  ltt...@poc.alaska.edu & test.own...@poc.alaska.edu (our test domain).
Claudio


To post to this group, send email to google-apps-mgmt-apis@googlegroups.com.
To unsubscribe from this group, send email to google-apps-mgmt-apis+unsub...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Apps Domain Information and Management APIs" group.

Linda Toth

unread,
Mar 29, 2012, 1:36:16 PM3/29/12
to google-app...@googlegroups.com
Yes Claudio

I downloaded 1.46 (although 1.44 stated it added this missing method).  However, I do wish to review some aspects of the code before continuing.  I did refactor one component and although others methods are working, it is worth reviewing one more time.  I will be back in touch later today.

Linda


On Wednesday, March 28, 2012 4:29:51 PM UTC-8, Claudio Cherubino wrote:
Hi Linda,

Are you sure you are using the latest version of the GData Java client library?
As you said, the removeOwnerFromGroup is correctly defined in the source and the error is not on the server side, so there must be some configuration or versioning issue in your application.

Claudio

On Wed, Mar 28, 2012 at 5:26 PM, Linda Toth <ltt...@alaska.edu> wrote:
Claudio

The browser posts the following error (I am successfully adding members, owners, and deleting members via the AppsGroupsService methods.  This is the only method it repeatedly fails for):

The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet execution threw an exception
</pre></p><p><b>root cause</b> <pre>java.lang.NoSuchMethodError: com.google.gdata.client.appsforyourdomain.AppsGroupsService.removeOwnerFromGroup(Ljava/lang/String;Ljava/lang/String;)V


Hi Linda,

Are you sure you are using the latest version of the GData Java client library?
As you said, the removeOwnerFromGroup is correctly defined in the source and the error is not on the server side, so there must be some configuration or versioning issue in your application.

Claudio

On Wed, Mar 28, 2012 at 5:26 PM, Linda Toth <ltt...@alaska.edu> wrote:
Claudio

The browser posts the following error (I am successfully adding members, owners, and deleting members via the AppsGroupsService methods.  This is the only method it repeatedly fails for):

The server encountered an internal error () that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>javax.servlet.ServletException: Servlet execution threw an exception
</pre></p><p><b>root cause</b> <pre>java.lang.NoSuchMethodError: com.google.gdata.client.appsforyourdomain.AppsGroupsService.removeOwnerFromGroup(Ljava/lang/String;Ljava/lang/String;)V


Linda Toth

unread,
Mar 29, 2012, 2:11:22 PM3/29/12
to google-app...@googlegroups.com

Hello Claudio

Yes, I double checked and reloaded everything and rebuilt everything.  I am still getting this error.  I am not getting any errors to add groups, update groups, add members, add owners, or delete owners.

This is the only method for which I receive this type of error.

Linda


On Thursday, March 29, 2012 9:36:16 AM UTC-8, Linda Toth wrote:
Yes Claudio

I downloaded 1.46 (although 1.44 stated it added this missing method).  However, I do wish to review some aspects of the code before continuing.  I did refactor one component and although others methods are working, it is worth reviewing one more time.  I will be back in touch later today.

Linda

On Wednesday, March 28, 2012 4:29:51 PM UTC-8, Claudio Cherubino wrote:
Hi Linda,

Are you sure you are using the latest version of the GData Java client library?
As you said, the removeOwnerFromGroup is correctly defined in the source and the error is not on the server side, so there must be some configuration or versioning issue in your application.

Claudio
Claudio

Claudio Cherubino

unread,
Mar 29, 2012, 2:20:04 PM3/29/12
to google-app...@googlegroups.com
Hi Linda,

The only explanation that I can think of is that there's something wrong in your classpath.
The removeOwnerFromGroup method is indeed there, perhaps you are not deploying the right jars?

Claudio

Linda Toth

unread,
Mar 29, 2012, 4:25:19 PM3/29/12
to google-app...@googlegroups.com
Claudio .. if there was something wrong with the classpath, the other methods in AppsGroupsService would not work.  They are the right jars .. I just re-deployed 1.46 today.

We are testing on a different system, but it looks to me like something has changed.

Am I the only person using this API method?

Linda


On Thursday, March 29, 2012 10:20:04 AM UTC-8, Claudio Cherubino wrote:
Hi Linda,

The only explanation that I can think of is that there's something wrong in your classpath.
The removeOwnerFromGroup method is indeed there, perhaps you are not deploying the right jars?

Claudio
Reply all
Reply to author
Forward
0 new messages