Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Archived:Lack of thread safety in Java ME TCP implementation on Series 40 1st and 2nd Edition (Known Issue)

From Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Article Metadata
Created: User:Technical writer 1 (21 Apr 2006)
Last edited: hamishwillee (16 Aug 2013)


There is a known race condition in the Java networking code for TCP, UDP, and SSL. In certain situations the code gets into an unstable state and remains unstable until all the operations have completed.


There is a known race condition in the Java networking code for TCP(, UDP, and SSL) in S40 devices. If more than one thread does any combination of these (not necessarily on the same socket): opening, reading, writing; the code gets in to an unstable state and the phone is likely to crash if any of these happen:

  • The connection drops (red end key, loss of signal, etc.)
  • Problems with a socket (remote host closes TCP connection or refuses new TCP connection, SSL certificate problems, etc.)
  • Almost anything else that would throw an IOException


No solution exists for Series 40 1st Edition and Series 40 2nd Edition. Avoid running multiple socket operations simultaneously.

This issue is fixed in the Series 40 3rd Edition devices.

This page was last modified on 16 August 2013, at 06:56.
37 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.