Connecting Tech Pros Worldwide Help | Site Map
Reply
 
LinkBack Thread Tools Search this Thread
  #1  
Old July 11th, 2008, 07:16 PM
Newbie
 
Join Date: Jul 2008
Posts: 4
Default 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?
Reply
  #2  
Old July 14th, 2008, 09:37 AM
Newbie
 
Join Date: Jul 2008
Location: CHENNAI
Age: 25
Posts: 15
Default

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....
Reply
  #3  
Old July 14th, 2008, 11:07 AM
Newbie
 
Join Date: Jul 2008
Posts: 4
Default

Hi,
thanks for the reply,,

Where can i find the proxy server address and port number???
Reply
Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.