import javax.microedition.io.HttpConnection times out

Hello,

This is in a BlackBerry JDE application.

The call to 'openInputStream' always times out, as does,

connection.getResponseCode(); or

connection.getType();

try {

String URL = "http://www.google.com/index.html";

HttpConnection connection = (HttpConnection)Connector.open(URL);

connection.setRequestMethod(HttpConnection.GET);

InputStream is = connection.openInputStream(); // this times out

// ...

}

catch (Exception exc) {

String s = exc.getMessage();

}

Any ideas? Thanks.

[576 byte] By [BurnChromea] at [2007-11-27 7:06:04]
# 1
not so much the import part, I copied the package include declaration to get the full name.
BurnChromea at 2007-7-12 18:57:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Are you running mds server
sailesh_dita at 2007-7-12 18:57:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Yes for production.Why do you ask?
BurnChromea at 2007-7-12 18:57:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
oh I see, there is a Mobile Data Service simulator. best documentation ever
BurnChromea at 2007-7-12 18:57:20 > top of Java-index,Java Mobility Forums,Java ME Technologies...