i've similar problem while trying to update any URL in collection:
Exception in thread "main" com.google.gdata.util.ServiceException:
Internal Server Error
Internal Error
<p>You are getting this message because you have a Google IP address.
External clients only get "Internal Error"</p>
<pre>Server: ent1
Caller-Ip: 10.11.12.13
Request: /feeds/collection/some_collection
Referer: null
User-Agent: gsa-api-client GData-Java/1.30.0(gzip)
Stack Trace:
java.lang.NullPointerException
at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(Unknown Source)
at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(Unknown Source)
at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(Unknown Source)
at com.google.gdata.client.http.HttpGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.http.GoogleGDataRequest.execute(Unknown
Source)
at com.google.gdata.client.Service.update(Unknown Source)
at com.google.gdata.client.Service.update(Unknown Source)
at com.google.gdata.client.GoogleService.update(Unknown Source)
at com.google.enterprise.apis.client.GsaClient.updateEntry(Unknown
Source)
at com.jpmc.gsa.api.CrawlUrl.main
My code:
// Create an entry to hold properties to update
GsaEntry updateEntry = new GsaEntry();
String entryUrl = "http://Search_Appliance:8000/feeds/
collection/some_collection";
updateEntry.setId(entryUrl);
// Add properties to updateEntry
updateEntry.addGsaContent("followURLs", "http://good/");
// Send the request
myClient.updateEntry("collection", "some_collection",
updateEntry);
thanks,
rocky
On Dec 9, 11:17 am, Andy Wu <andywu200...@gmail.com> wrote:
> I saw an earlier thread about the following GSA Admin API error when
> trying to connect to a GSA:
>
> ---
> HTTP/1.1 500 Internal Server Error
> Content-Type: text/html; charset=UTF-8
> Transfer-Encoding: chunked
> Date: Fri, 04 Sep 2009 09:51:00 GMT
> Expires: Fri, 04 Sep 2009 09:51:00 GMT
> Cache-Control: private, max-age=0
> X-Content-Type-Options: nosniff
> Connection: keep-alive
> Keep-Alive: timeout=7200
>
> Internal Error
> <p>YouaregettingthismessagebecauseyouhaveaGoogleIPaddress.Externalclientsonlyget"Internal Error"</p>
> <pre>Server: ent1
> Caller-Ip: 192.168.101.103
> Request: /feeds/config/crawlURLs
> Referer: null
> User-Agent: php curl
> Stack Trace:
> java.lang.IllegalStateException: Authentication exception must contain
> WWW-Authenticate header
> ---
>
> I tried to respond to thatmessage, but I don't see a link for reply,
It looks like we are referring to different error messages here:
Mine: java.lang.IllegalStateException: Authentication exception must
contain WWW-Authenticate header
- vs -
Yours: java.lang.NullPointerException
Since the GSA is complaining about a missing field, I think you may
need to set both the include and exclude patterns like this:
updateEntry.addGsaContent("followURLs", "http://good/");
updateEntry.addGsaContent("doNotCrawlURLs", "http://frequent/");
Andy