2012-07-12 30 views
0

当我使用GData Java客户端库 的批处理功能获取此异常。我们能够获得Feed,但无法批量删除。java.lang.nullpointerexception no authentication header informatio

[email protected]5b 
    java.lang.NullPointerException: No authentication header information 
     at 
    com.google.gdata.util.AuthenticationException.initFromAuthHeader(AuthenticationException.java:96) 
     at 
    com.google.gdata.util.AuthenticationException.<init>(AuthenticationException.java:67) 
     at 
    com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse(HttpGDataRequest.java:608) 
     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.batch(Service.java:1454)  at 
    com.google.gdata.client.GoogleService.batch(GoogleService.java:770) 

任何帮助。

回答

0

我认为这个错误是关于访问一个空的getter或setter,这意味着它不存在! 因此,您可以调试该程序,并在尝试访问getter/setter时查看NullPointerException是否发生。