| Reply | « Previous Thread | Next Thread » |
|
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? |
|
I have same problem, on 7210 emulator all works fine
|
|
I have the same problem.
I developed several http networking midlets which perform flawlessly in the default Sun emulatoras but fail to connect when i try to use the Series 60 emulator from Nokia. Non networking midlets work in the series 60 emulator without any problems. Has anyone have any clue as to what is causing this behaviour? Is there any configuration file related to the Series 60 emulator that needs tweaking? Best Regards, Nuno Félix |
|
I had the same problem...
My investigations show that in the Sun emulator, connections to "localhost" or "127.0.0.1" get routed to the host PC. In the Series 60 emulator however, error -191 is returned. (Presumably "localhost" is the emulator itself). I worked around this by using the actual IP address of the host PC. |
| aled.morris |
| View Public Profile |
| Find all posts by aled.morris |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|