Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

blocked search words? Or a bug?

0 views
Skip to first unread message

Tomas Salfischberger

unread,
Jul 25, 2006, 6:55:53 AM7/25/06
to
Hi All,

Are the words 'news' and 'business' blocked, or is there a bug in the
Google API?

When using PHP 5's SoapClient and the Google API WSDL file I get
strange results for searching on 'business'. The PHP class throws an
exception, and using the __getLastResponse() function (see:
http://www.php.net/manual/en/function.soap-soapclient-getlastresponse.php)
I get the following output:

SOAP-ENV:Server Exception from service object: For input string:
"7080000000" /search/beta2 java.lang.NumberFormatException: For input
string: "7080000000" at
java.lang.NumberFormatException.forInputString(Unknown Source) at
java.lang.Integer.parseInt(Unknown Source) at
java.lang.Integer.parseInt(Unknown Source) at
com.google.soap.search.GoogleSearchService.processRES(GoogleSearchService.java:573)
at
com.google.soap.search.GoogleSearchService.processGSP(GoogleSearchService.java:503)
at
com.google.soap.search.GoogleSearchService.convertToGoogleSearchResult(GoogleSearchService.java:478)
at
com.google.soap.search.GoogleSearchService.doGoogleSearch(GoogleSearchService.java:160)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at
java.lang.reflect.Method.invoke(Unknown Source) at
org.apache.soap.server.RPCRouter.invoke(RPCRouter.java:146) at
org.apache.soap.providers.RPCJavaProvider.invoke(RPCJavaProvider.java:129)
at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:288)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at
com.google.gse.HttpConnection.runServlet(HttpConnection.java:436) at
com.google.gse.HttpConnection.run(HttpConnection.java:376) at
com.google.gse.DispatchQueue$WorkerThread.run(DispatchQueue.java:254)

Which looks like a problem in the Java code serving the API? Or am I
doing something wrong here?

Tomas

cda...@gmail.com

unread,
Jul 27, 2006, 2:58:31 PM7/27/06
to
I can't find the thread, but I'm pretty certain that some people in
this group recently discovered that this was a problem when searching
for any term that results in more than x results (where x was something
close to two million, I think). So very popular terms, like 'news' or
'business' will probably display this behavior.

Tomas

unread,
Aug 3, 2006, 12:19:26 PM8/3/06
to
Ok, so that might indicate a bug in the software at Googles servers?

Is there a bugreport page? Or e-mailaddress? As this should be fixed
then.

Manfred

unread,
Aug 6, 2006, 4:29:36 PM8/6/06
to
Its a known bug, the maximum is +2147483647 (for Java's integer type
"int",
32 bits, see http://www.scism.sbu.ac.uk/jfl/Appa/appa1.html).
As for other victims search this group with "NumberFormatException" .

Manfred

theCo...@gmail.com

unread,
Sep 3, 2006, 4:25:51 AM9/3/06
to
Why can Google not fix this! If # of results is > 2^31, just return
2^31.
Atleast the search queries will work!

This is so frustrating, using the Google APIs.
Compared to Google APIs, MSN Search APIs are a lot better designed.

0 new messages