423,473 Members | 2,593 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 423,473 IT Pros & Developers. It's quick & easy.

How to resolve javax.microedition.io.ConnectionNotFoundException: TCP exception

P: 4
Hi all,

Can anybody help me how to resolve the below problem?

I am trying to read xml file from an URL link

as shown below,
HttpConnection conn = (HttpConnection)Connector.open(Url);
InputStream InputStream = conn.openInputStream();

At this line i am getting exception on WTK emulator,

javax.microedition.io.ConnectionNotFoundException: TCP open
at com.sun.midp.io.j2me.socket.Protocol.connect(+99)
at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+52 )
at com.sun.midp.io.j2me.socket.Protocol.openPrim(+108 )
at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+14 )
at com.sun.midp.io.ConnectionBaseAdapter.openPrim(+8)
at com.sun.midp.io.j2me.http.Protocol.connect(+73)
at com.sun.midp.io.j2me.http.Protocol.streamConnect(+ 57)
at com.sun.midp.io.j2me.http.Protocol.startRequest(+1 2)
at com.sun.midp.io.j2me.http.Protocol.sendRequest(+38 )
at com.sun.midp.io.j2me.http.Protocol.sendRequest(+6)
at com.sun.midp.io.j2me.http.Protocol.getResponseCode
(+8) at MidletPackage.KXmlLinkParser.Parse(+48)
at MidletPackage.KXmlLinkParser$1.run(+7)

I am using eclipseMe and WTK for emulator.
Can i read anything from any website using J2ME?
Are there any settings in WTK to connect to any website from emulator?

Or if there are security problems when conecting the site, then how to overcome them?

Please help me?
Jul 11 '08 #1
Share this Question
Share on Google+
2 Replies


P: 16
Hi,

Is your system directly connected with Internet?

or If your system using proxy for accessing the simulator?

If proxy means,

Go for Preferences and select the Network Configuration option and set the Proxy details..


Then try to run the app..

I hope it wil work....
Jul 14 '08 #2

P: 4
Hi,
thanks for the reply,,

Where can i find the proxy server address and port number???
Jul 14 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.