2012-07-12 29 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是否發生。