473,834 Members | 1,615 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 8571
16 New Member

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
4 New Member
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

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...
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
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.*;
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;
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 )
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 ...
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...
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
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: ...
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,...
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...
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...
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.