473,657 Members | 3,041 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to resolve javax.microedit ion.io.Connecti onNotFoundExcep tion: TCP exception

4 New Member
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?
Jul 11 '08 #1
2 8550
JayaseelanVaiyapuri
16 New Member
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
rajeshgubba
4 New Member
Hi,
thanks for the reply,,

Where can i find the proxy server address and port number???
Jul 14 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
4494
by: Shawn | last post by:
I am getting the following error with a Java Applet being served out by IIS over HTTPS/SSL using a Verisign certificate: java.lang.NoClassDefFoundError: javax/help/HelpSetException at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1590) at java.lang.Class.getConstructor0(Class.java:1762) at java.lang.Class.newInstance0(Class.java:276) at...
1
27774
by: Java script Dude | last post by:
I am investigating a solution to build all pages sent from my application servlet in UTF-8 encoding. From what I understand, I should be using HttpServletResponse.setCharacterEncoding("UTF-8"). The J2EE API clearly shows that this method is available with superclass ServletResponse but I am getting compile errors using NetBeans 3.6 final. Thanks for your help! Tim
1
4622
by: vsp15584 | last post by:
Hii..i use the coding as below :- import java.applet.applet; import java.awt.*; import com.sun.j3d.utils.applet.mainframe; import com.sun.j3d.utils.universe.*; import com.sun.j3d.utils.geometry.*; import javax.media.j3d.*; import javax.vecmath.*;
12
11326
oll3i
by: oll3i | last post by:
when i launch the application from sun application server the console opens throws something i cannt even read what and closes before the application opened and threw nullpointerexception now it suddenly stopped even opening ? but when i run it form bat with JAVA_CLIENT parameter it throws javax.ejb.EJBException: nested exception is: java.rmi.RemoteException: package library.common; import java.sql.ResultSet;
8
6156
oll3i
by: oll3i | last post by:
it worked but suddenly when i run it and click a button it throws exception ? D:\SR>java Producent queue1 queue2 queue3 queue4 queue1,queue2,queue3,queue4 javax.naming.NoInitialContextException: Cannot instantiate class: org.exolab.jms .jndi.InitialContextFactory at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:6 57) at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288 )
0
985
by: mithunshitole | last post by:
hi, when i tried to add javax.microedition package to my j2me program I'm getting error :javax.microedition doesnot exist. I'm using j2sdk 1.4.2 ...
2
2176
by: Richard Maher | last post by:
Hi, I would dearly love a server with a "self-signed certificate" to be accessible by my javax.net.ssl.startHandshake() but it seems to consistently crap-out with a failure :-( Look I've only ever tested the client code (please see below) with a https server (just to see if everything was kosher) and it maybe something I'm doing wrong. I just couldn't find anything in the handshake listener that controlled self-cert. So, is my code...
3
3068
oll3i
by: oll3i | last post by:
when i run my create.jsp that populates the database i get javax.ejb.EJBException error it throws the exception at line phoneHome.create("01", "01", "0957205114"); i have three lookups in one file my create.jsp
0
2535
by: plsHelpMe | last post by:
Hi All, I am trying to send an outlook meeting request using the java code. It works fine when i execute the code using the text pad. But when i actually deploy the code using the "Websphere Apllication Server v5.1" i get the following exception. It would really be great if someone could help me. javax.mail.MessagingException: IOException while sending message; nested exception is: ...
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7314
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4300
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1937
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.