Why do I receive a Java exception while using Datafeed Toolbox to retrieve data from Yahoo when I specify an IP address in the connection?
Mostrar comentarios más antiguos
Using the Datafeed Toolbox, I connect to Yahoo and attempt to retrieve data using:
c = yahoo('<http://quote.yahoo.com','192.168.3.15',8080>);
d = fetch(c,'msft','05/01/04','05/31/04')
I receive the following Java exception:
??? Java exception occurred:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at ice.net.ConnectionManager.createSocket(OEAB)
at ice.net.ConnectionManager.getConnection(OEAB)
at ice.net.HttpURLConnection.connect(OEAB)
at ice.net.HttpURLConnection.getInputStream(OEAB)
at java.net.URL.openStream(Unknown Source).
Error in ==> yahoo.fetch>wwwread at 293
is = www.openStream;
Error in ==> yahoo.fetch at 243
[tmpdat,h] = wwwread(fetchurl,numinputs,c);
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre .NET Client Programming en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!