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. Thanks for all your past and future contributions.

Limitation on using ':' character in Series 40 (Known Issue)

From Wiki
Jump to: navigation, search
Article Metadata
Tested with
Devices(s): Series 40 devices
Series 40
Created: User:Technical writer 1 (29 May 2008)
Last edited: lpvalente (07 May 2014)


This article describes a known issue when using the character ":" in Series 40 applications.

According to RFC 2396 (Uniform Resource Identifiers (URI) Generic Syntax), the character ":" is considered to be one of the reserved characters within the query component, meaning that such a character cannot be used generically.

In Series 40, the character ':' has been reserved to be used as a port delimiter in network requests. If a port number has not been defined after the character ':', the prompt 'java.lang.IllegalArgumentException: invalid port' will result while performing a network request.


When defining URL for network resources, avoid using the the character ':' in the URL.

This page was last modified on 7 May 2014, at 12:58.
26 page views in the last 30 days.