Hi allz.
I just wrote a simple Midlet that create a connection to my localhost (with Tomcat 4.0.3) and try to read an XML document.
String url = "http://localhost:8080/examples/servlet/Regia?all=1";
StringBuffer sbuf = new StringBuffer();
HttpConnection c = null;
InputStream is = null;
boolean blOut = false;
try {
c = (HttpConnection) Connector.open(url);
System.out.println("DEBUG --00");
is = c.openInputStream();
System.out.println("DEBUG --01");
String status = parse(is);
System.out.println("DEBUG --02");
Here is the code. Compiling the code is all rigth, packaging too. When I execute the jar in Symbian Series 60 (nokia version) the emulator ask me which kind of connection use (Direct Http is the only one), i wait some second and the program stop in timeout, I obtain an IOException n° 109. Y? The code is right, I know. Is all about the Emulator? Or more?

Reply With Quote

