Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > J2ME UDP Datagram 3 Second Delay

Thread Tools

J2ME UDP Datagram 3 Second Delay
Posts: n/a
I have been working on a problem receiving UDP datagrams on an emulated
MIDP 2.0 phone. The datagrams are held for 3 seconds before the phone
can receive them.

A history of my trying to isolate this problem can be found at...

....but it basically is this:

When my WinXpSp2 box running Netbeans-4.0 simulating a MIDP-2.0 phone
(either any J2ME Wireless Toolkit 2.2 default phone, or any Motorola
SDK 4.2 for J2ME phone), regardless of CLDC-1.0 or CLDC-1.1, when this
emulated phone tries to receive a UDP datagram, the following line of


....takes 3 seconds to execute IF the datagram is coming from my other
PC. But if the datagram comes from the same PC that the emulation is
being run on, there is no delay.

But this problem appears to be J2ME specific because running a similar
receive-a-udp-datagram app in J2SE does NOT have any delay regardless
of where the datagram comes from.

J2ME has a bunch of tools in netbeans to simulate degraded network
performance. I haven't used those. Also if I use a toolkit to launch an
emulated cell phone outside of Netbeans, I get same delay. I can't
think of anywhere to narrow it down to other then the J2ME

Has anyone tried receiving UDP datagrams with their J2ME app? Surely it
must be a very common activity. Has anyone seen such a delay? Has
anyone NOT seen such a delay on a simulated cellphone?
Thanks for any help. -Gord

Reply With Quote
Posts: n/a
That link didn't come out properly...

....or this google will find it...

Reply With Quote
David Van de Voorde
Posts: n/a
Already tried the Java Bug Parade ?

You could eventually report the bug there also.


<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)
> That link didn't come out properly...
> ...or this google will find it...

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
udp, datagram sockets 7stud Python 6 08-06-2007 10:46 PM
UDP max datagram size Iain King Python 6 04-13-2006 01:23 AM
What's the difference between and Datagram.receive? - Java 11 08-26-2005 08:01 AM
J2ME - UDP/Datagram - Siemens TC45 cellular engine Jonas Hei Java 1 06-14-2004 09:55 PM
Timeout causes loss of Datagram Packet (UDP). Javayang Java 1 09-11-2003 09:26 PM