Limitation on using ':' character in Series 40 (Known Issue)
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot update - Merge KB into wiki) |
hamishwillee
(Talk | contribs) m (moved Limitation on using ':' character in Series 40 to Limitation on using ':' character in Series 40 (Known Issue): Is a known issue - spell that out) |
||
| (2 intermediate revisions by one user not shown) | |||
| Line 1: | Line 1: | ||
| − | [[Category:Java ME]][[Category:Series 40]] | + | [[Category:Java ME]][[Category:Series 40]][[Category:Known Issue]][[Category:Networking]] |
{{ArticleMetaData <!-- v1.2 --> | {{ArticleMetaData <!-- v1.2 --> | ||
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) --> | |sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) --> | ||
Latest revision as of 09:53, 19 July 2012
Article Metadata
Tested with
Devices(s): Series 40 devices
Compatibility
Platform(s): Series 40
Article
Created: User:Technical writer 1
(29 May 2008)
Last edited: hamishwillee
(19 Jul 2012)
Description
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.
Solution
When defining URL for network resources, avoid using the the character ':' in the URL.

