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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rajeshgubba
    New Member
    • Jul 2008
    • 4

    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.openInputS tream();

    At this line i am getting exception on WTK emulator,

    javax.microedit ion.io.Connecti onNotFoundExcep tion: TCP open
    at com.sun.midp.io .j2me.socket.Pr otocol.connect( +99)
    at com.sun.midp.io .ConnectionBase Adapter.openPri m(+52 )
    at com.sun.midp.io .j2me.socket.Pr otocol.openPrim (+108 )
    at com.sun.midp.io .ConnectionBase Adapter.openPri m(+14 )
    at com.sun.midp.io .ConnectionBase Adapter.openPri m(+8)
    at com.sun.midp.io .j2me.http.Prot ocol.connect(+7 3)
    at com.sun.midp.io .j2me.http.Prot ocol.streamConn ect(+ 57)
    at com.sun.midp.io .j2me.http.Prot ocol.startReque st(+1 2)
    at com.sun.midp.io .j2me.http.Prot ocol.sendReques t(+38 )
    at com.sun.midp.io .j2me.http.Prot ocol.sendReques t(+6)
    at com.sun.midp.io .j2me.http.Prot ocol.getRespons eCode
    (+8) at MidletPackage.K XmlLinkParser.P arse(+48)
    at MidletPackage.K XmlLinkParser$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?
  • JayaseelanVaiyapuri
    New Member
    • Jul 2008
    • 16

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

    Comment

    • rajeshgubba
      New Member
      • Jul 2008
      • 4

      #3
      Hi,
      thanks for the reply,,

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

      Comment

      Working...