Thanks Alain for your reply. I solved the issue.Exception was coming
because I did not write the code to "Access the token" and store it in
string variable.

Thanks,
Anand

On Fri, Nov 4, 2011 at 3:52 AM, Alain Vongsouvanh <[email protected]> wrote:

> If you are using 2-Legged OAuth authorization mechanism, this error can be
> due to the fact that the domain's consumer key and secret haven't been
> authorized on the Contacts API scopes.
> Please make sure to authorize the domain's consumer key and secret in the
> domain's control panel.
>
>
> On Wed, Nov 2, 2011 at 4:53 AM, anand reddy akidi <
> [email protected]> wrote:
>
>> Hi Alain,
>>
>> Thanks for your reply. I am using Conatct API but I am getting beloww
>> exception. I have set all OAuth Parameters. Still I am getting below
>> Exception. There is no proper solution for this exception in any
>> forums.Please help me on this.
>>
>>
>> java.lang.NullPointerException: No authentication header information
>>      
>> com.google.gdata.util.AuthenticationException.initFromAuthHeader(AuthenticationException.java:96)
>>      
>> com.google.gdata.util.AuthenticationException.<init>(AuthenticationException.java:67)
>>      
>> com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:600)
>>      
>> com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse(GoogleGDataRequest.java:563)
>>      
>> com.google.gdata.client.http.HttpGDataRequest.checkResponse(HttpGDataRequest.java:552)
>>      
>> com.google.gdata.client.http.HttpGDataRequest.execute(HttpGDataRequest.java:530)
>>      
>> com.google.gdata.client.http.GoogleGDataRequest.execute(GoogleGDataRequest.java:535)
>>      com.google.gdata.client.Service.getFeed(Service.java:1135)
>>      com.google.gdata.client.Service.getFeed(Service.java:998)
>>      com.google.gdata.client.GoogleService.getFeed(GoogleService.java:631)
>>      com.google.gdata.client.Service.getFeed(Service.java:1017)
>>      org.apache.jsp.addcontact_jsp._jspService(addcontact_jsp.java:180)
>>      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>      
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
>>      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>>      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>>      javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
>> To post to this group, send email to
>> [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://code.google.com/apis/contacts/community/forum.html
>>
>
>
>
> --
> Alain Vongsouvanh | Developer Programs Engineer
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
> To post to this group, send email to
> [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://code.google.com/apis/contacts/community/forum.html
>

-- 
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/contacts/community/forum.html

Reply via email to