com.google.gdata.util.ServiceForbiddenException: Forbidden This service does not support the 'q' parameter." I have downloaded latest Java Client Library: GData-Java/1.47.1(gzip) for GDATA. Try to use the setFullTextQuery method for searching contact groups. What steps will reproduce the problem? Setup Java Sample Contacts In ContactsExample.java, in queryEntries method, add a new line. myQuery.setFullTextQuery("Your search term here"); And run it I checked the version is correct, it is using GData-Version: 3.0 If run the sample java as it is provided, everything runs fine. But, I need to search the contacts. And using 'q' parameter should be the right approach. Please help. Is it something wrong in the library, or I need to take a different approach to search contacts? Logs below: Executing action: QUERY Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest setPrivateHeader FINER: Authorization: Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest setHeader FINER: User-Agent: Google-contactsExampleApp-3 GContacts-Java/3.1.0 GData-Java/1.47.1(gzip) Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest setHeader FINER: Accept-Encoding: gzip Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest setHeader FINER: GData-Version: 3.0 Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINE: 403 Forbidden Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: null: HTTP/1.1 403 Forbidden Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: X-Frame-Options: SAMEORIGIN Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Transfer-Encoding: chunked Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Date: Wed, 28 Nov 2012 17:38:48 GMT Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Expires: Wed, 28 Nov 2012 17:38:48 GMT Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: X-XSS-Protection: 1; mode=block Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Content-Encoding: gzip Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Content-Type: text/html; charset=UTF-8 Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Server: GSE Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Cache-Control: private, max-age=0 Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: X-Content-Type-Options: nosniff Exception in thread "main" com.google.gdata.util.ServiceForbiddenException: Forbidden This service does not support the 'q' parameter. at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:605)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by user1860920
, 1 year ago
Forbidden This service does not support the 'q' parameter." I have downloaded latest Java Client Library: GData-Java/1.47.1(gzip) for GDATA. Try to use the setFullTextQuery method for searching contact groups. What steps will reproduce the problem
via Stack Overflow by Ashish Jagtap
, 2 years ago
Forbidden <?xml version="1.0" encoding="UTF-8"?><errors xmlns="http://schemas.google.com/g/2005"><error><domain>GData</domain><code>insufficientPermissions</code><internalReason>User does not have
via Stack Overflow by aki
, 2 years ago
Developer key required for this operation </code></pre> <p>GData<code>ServiceForbiddenException</code>Developer key required for this operation</p> <pre><code>at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:605)
com.google.gdata.util.ServiceForbiddenException: Forbidden This service does not support the 'q' parameter." I have downloaded latest Java Client Library: GData-Java/1.47.1(gzip) for GDATA. Try to use the setFullTextQuery method for searching contact groups. What steps will reproduce the problem? Setup Java Sample Contacts In ContactsExample.java, in queryEntries method, add a new line. myQuery.setFullTextQuery("Your search term here"); And run it I checked the version is correct, it is using GData-Version: 3.0 If run the sample java as it is provided, everything runs fine. But, I need to search the contacts. And using 'q' parameter should be the right approach. Please help. Is it something wrong in the library, or I need to take a different approach to search contacts? Logs below: Executing action: QUERY Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest setPrivateHeader FINER: Authorization: Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest setHeader FINER: User-Agent: Google-contactsExampleApp-3 GContacts-Java/3.1.0 GData-Java/1.47.1(gzip) Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest setHeader FINER: Accept-Encoding: gzip Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest setHeader FINER: GData-Version: 3.0 Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINE: 403 Forbidden Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: null: HTTP/1.1 403 Forbidden Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: X-Frame-Options: SAMEORIGIN Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Transfer-Encoding: chunked Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Date: Wed, 28 Nov 2012 17:38:48 GMT Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Expires: Wed, 28 Nov 2012 17:38:48 GMT Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: X-XSS-Protection: 1; mode=block Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Content-Encoding: gzip Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Content-Type: text/html; charset=UTF-8 Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Server: GSE Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: Cache-Control: private, max-age=0 Nov 28, 2012 12:38:48 PM com.google.gdata.client.http.HttpGDataRequest execute FINER: X-Content-Type-Options: nosniff Exception in thread "main" com.google.gdata.util.ServiceForbiddenException: Forbidden This service does not support the 'q' parameter. at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:605)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:564)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:560)
at com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:538)
at com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:536)
at com.google.gdata.client.Service.getFeed(Service.java:1135)
at com.google.gdata.client.Service.getFeed(Service.java:1077)
at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:676)
at com.google.gdata.client.Service.query(Service.java:1237)
at sample.contacts.ContactsExample.queryEntries(ContactsExample.java:406)
at sample.contacts.ContactsExample.processAction(ContactsExample.java:350)
at sample.contacts.ContactsExample.main(ContactsExample.java:626)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.