472,131 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,131 software developers and data experts.

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

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
2 8430
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
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.

Similar topics

1 post views Thread by Java script Dude | last post: by
1 post views Thread by vsp15584 | last post: by
oll3i
12 posts views Thread by oll3i | last post: by
reply views Thread by mithunshitole | last post: by
oll3i
3 posts views Thread by oll3i | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.