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