Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2005

Tip: Looking for answers? Try searching our database.

J2ME - Http connection problems

Thread view: 
Nikola Veber - 27 Jul 2005 17:25 GMT
Hi!

I'm trying to make some sort of a global highscore function, which sends
per GET tje score and player name and recieves some info. Nothing
complicated, on the WTK2.2 emulator works great (with the apache running
as localhost, since my proxy doesnt allow wtk to go out).

Anyway, on the eml. it works fine, but on my Nokia 6630 not.

Connection code looks like this:

// showing the debugginig info in the parent thread
HS.err = "Http - 2"; // this is displayed ok
parent.repaint();

c =
(HttpConnection)Connector.open("http://www.kosidba.com/nikola/rush.php");
int rc = c.getResponseCode();

if (rc != HttpConnection.HTTP_OK) {
HS.err = "Gr conn: " + rc;
parent.repaint();
}

It simply stops at Connector.open and stands there for a couple of
minutes, then it makes the connection and stops at opening the input
stream. And waits at least 10 mins there, I didn't wait any longer then
that.
Im using German O2, gprs... Does anyone have a clue why is this happening?

Thanks!

Nikola Veber
Darryl Pierce - 30 Jul 2005 03:53 GMT
> It simply stops at Connector.open and stands there for a couple of
> minutes, then it makes the connection and stops at opening the input
> stream. And waits at least 10 mins there, I didn't wait any longer then
> that.

Are you doing this on its own, separate thread?

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.