Google Groupes n'accepte plus les nouveaux posts ni abonnements Usenet. Les contenus de l'historique resteront visibles.

help: meetting terrible problems of google webservice of java version

4 vues
Accéder directement au premier message non lu

cheng...@sina.com

non lue,
19 juin 2005, 10:28:3819/06/2005
à
meet the "coonection timed out fults", i set the timeout param is
60000.

by the way, does the google webservice url is :
http://api.google.com/search/beta2


this is the call stack trace:

AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.ConnectException: Connection timed out: connect
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.ConnectException:
Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:136)
at
org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:100)
at
org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:130)
at
org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:380)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:88)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:147)
at org.apache.axis.client.Call.invokeEngine(Call.java:2735)
at org.apache.axis.client.Call.invoke(Call.java:2718)
at org.apache.axis.client.Call.invoke(Call.java:2394)
at org.apache.axis.client.Call.invoke(Call.java:2317)
at org.apache.axis.client.Call.invoke(Call.java:1774)
at
GoogleSearch.GoogleSearchBindingStub.doSpellingSuggestion(GoogleSearchBindingStub.java:229)
at GoogleSearch.Do.demo.main(demo.java:28)

cheng...@sina.com

non lue,
19 juin 2005, 10:41:5519/06/2005
à
this is the output of calling of com.google.search.GoogleAPIDemo.class:

C:\Documents and Settings\Cheng\Desktop\googleapi>java -cp
googleapi.jar com.goo
gle.soap.search.GoogleAPIDemo Jz0S9c1QFHKIi308p+jOAN4QxD6g6x3o search
"windows"
Parameters:
Client key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Directive = search
Args = windows
The call to the Google Web APIs failed:
com.google.soap.search.GoogleSearchFault: [SOAPException:
faultCode=SOAP-ENV:Cli
ent; msg=Error opening socket: Connection timed out: connect;
targetException=ja
va.lang.IllegalArgumentException: Error opening socket: Connection
timed out: co
nnect]

justncase80

non lue,
20 juin 2005, 09:50:4120/06/2005
à
actually I think the google web service is found at:

http://api.google.com/GoogleSearch.wsdl

NOT

http://api.google.com/search/b­eta2

0 nouveau message