aspose file tools*
The moose likes Java Micro Edition and the fly likes J2me brain not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2me brain not found" Watch "J2me brain not found" New topic
Author

J2me brain not found

Anshal Patel
Ranch Hand

Joined: Feb 07, 2010
Posts: 32
I am developing a medical application for cell phones via the internet for my final year graduation project and I have created every list,function and other things I need.However I am really not able to solve the connection problems since a month .
Can anyone tell me whats my mistake or how to solve my mistake.



I get the error as STACKTRACE:javax.microedition.io.ConnectionNotFoundException: TCP open
And I am really getting mad now as its been a month of time day in and day out that i made this code but m not able to solve such silly things .

Can anyone please help me by literally teaching me step by step as how and what changes to make, my mind has stopped working over the code now .

Anshal Patel
Ranch Hand

Joined: Feb 07, 2010
Posts: 32
I am sorry I clicked on resolved by mistake.The error still persists please help me if possible.
Gopinath Karyadath
Ranch Hand

Joined: Oct 14, 2009
Posts: 87
?? server side (loginServlet )

check server side
Aleksandar Babic
Ranch Hand

Joined: May 30, 2007
Posts: 68
I guess you are using emulator
1.Check firewall (disable it).
2. Does the link work at all. I guess you are using localhost (127.0.0.1) as an conn_url, so check it out from browser.



Anshal Patel
Ranch Hand

Joined: Feb 07, 2010
Posts: 32
Hi thanks mate for the quick reply.
1)I am using Sun micros WTK 2.5.2
2)My localhost doesnt seem to work.
3)I just have windows firewall and I have disabled it and I have no other firewall nor any sort of softwares installed.
Anshal Patel
Ranch Hand

Joined: Feb 07, 2010
Posts: 32
Also it would be a great thing if you could guide me as how to connect 2 pcs over a LAN.I would really impress my teacher if it works on LAN.

So first I need to learn how to connect it on my self PC and then as an advanced thing how to connect via LAN.
Aleksandar Babic
Ranch Hand

Joined: May 30, 2007
Posts: 68
Well, how do you mean to connect to server if it doesnt' work

this

must be a valid address that works. If you have some local application on 8080 port with loginServlet mapping, than make it work.
Error you are receiving is probably produces by unreachable server. Application tries to connect but it doesn't have valid working address.

You could try using .netbeans with integrated wtk (or better newest version with integrated Java ME SDK 3.0.)
Than you can use debugger (and try/catch blocks or some logger) to find exact spot where error occurred.

To connect over lan you also need to have working server on one machine
and from application point to that machine with it's IP address. Port would be needed too.
(you need to have static ip addresses on both machines)
Anshal Patel
Ranch Hand

Joined: Feb 07, 2010
Posts: 32
the thing is I am just a noob in J2ME I have just created this code by lookin at various websites and learning by myself..

so you mean to say do i need to make a server application and then connect it?.

If yes then which one would you suggest.I am just new in here so dunno ANY of those.
Aleksandar Babic
Ranch Hand

Joined: May 30, 2007
Posts: 68
ahhh
OK

I haven't look at the code much (and don't need to), but first thing you should do is to think it out. What do you need to create app for?
Currently you have crated app for non existing website so it actually don't do anything.
I can suggest that you find some working service over the net, or create your own, and than make appropriate application for it.
Since it's client-server relationship, you first need to find/create server and than client. Now you have client without server.

Maybe you could also create some test app that will support your current app but that depends on your skill
You should decide what will need less work. Crate server or to re-factor app.
Anshal Patel
Ranch Hand

Joined: Feb 07, 2010
Posts: 32
ok i got it i have a server less client.Great so I will create a server now with various servlets and then think about connectivity.Thanks .
Gopinath Karyadath
Ranch Hand

Joined: Oct 14, 2009
Posts: 87

step by step example to installing servlet
http://roseindia.net/j2me/j2me-servlet.shtml
Anshal Patel
Ranch Hand

Joined: Feb 07, 2010
Posts: 32
Ok I will start making servlets now.
But one noob question

What tools should I use the best to make servlets.I know nothing abt servlets as well so ofcourse I would choose the easiest tool
I saw a few of XML too, that would be great as I am well versed with XML.

Wat are the various options for me to create servlets ex netbeans etc
Gopinath Karyadath
Ranch Hand

Joined: Oct 14, 2009
Posts: 87

download free Apache Tomcat web server goto http://tomcat.apache.org/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2me brain not found
 
Similar Threads
how to send email from j2me using Servlets
J2ME, servlet and database help..
calculate the amount values stored form recordstore in J2ME midlet
where i can get example konek client J2ME and server PHP
How to convert this into a form?