当我使用GData Java客户端库的批处理功能时 得到这个例外。我们能够获取Feed但无法进行批量删除。
com.google.gdata.client.GoogleAuthTokenFactory$OAuthToken@259e215b
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 :(得分:0)
我认为这个错误是关于访问null getter或setter,意味着它不存在!
因此,您可以调试程序,看看当您尝试访问getter / setter时是否出现NullPointerException
。