Results 1 to 2 of 2
  1. #1
    rajeshgubba is offline Member
    Join Date
    Apr 2008
    Posts
    7
    Rep Power
    0

    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 a 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?

  2. #2
    arnab321 is offline Member
    Join Date
    Oct 2008
    Posts
    40
    Rep Power
    0

    Default

    Your firewall is blocking internet connection for wtk. Just disable firewall and it should work.

Similar Threads

  1. javax.microedition.io/ javax.bluetooth
    By ahtiven in forum New To Java
    Replies: 3
    Last Post: 01-13-2009, 03:54 PM
  2. Replies: 2
    Last Post: 05-05-2008, 07:01 AM
  3. Replies: 3
    Last Post: 04-07-2008, 06:56 PM
  4. Cannot Resolve Symbol error...
    By seral1969 in forum New To Java
    Replies: 4
    Last Post: 02-18-2008, 01:17 AM
  5. map javax.swing.text.Element to javax.swing.text.View
    By elizabeth in forum New To Java
    Replies: 1
    Last Post: 07-30-2007, 08:02 PM

Posting Permissions

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