You Are Here:

Community: Developer Discussion Boards

#1 Old 3650/7650 Emulatore don't Connect - 2003-04-09, 19:32

Join Date: Apr 2003
Posts: 3
joller
Offline
Registered User
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

#2 Old 2003-04-23, 12:38

Join Date: Apr 2003
Posts: 34
Location: Russia
lizergil
Offline
Registered User
I have same problem, on 7210 emulator all works fine
Reply With Quote

#3 Old Emulator not connecting via http - 2003-05-08, 10:50

Join Date: May 2003
Posts: 9
Location: Portugal
nmfelix
Offline
Registered User
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
Reply With Quote

#4 Old 2003-06-12, 18:37

Join Date: Mar 2003
Posts: 37
aled.morris
Offline
Registered User
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia