Limitation on using ':' character in Series 40 (Known Issue)
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) |
|||
| (9 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | [[Category: | + | [[Category:Java ME]][[Category:Series 40]][[Category:Known Issue]][[Category:Networking]] |
| − | + | {{ArticleMetaData <!-- v1.2 --> | |
| − | + | |sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) --> | |
| − | + | |installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) --> | |
| − | |- | + | |devices= Series 40 devices |
| − | | | + | |sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) --> |
| − | | | + | |platform= Series 40 |
| − | |- | + | |devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) --> |
| − | | | + | |dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 --> |
| − | | | + | |signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer --> |
| − | |- | + | |capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. --> |
| − | | | + | |keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase --> |
| − | | | + | |language= <!-- Language category code for non-English topics - e.g. Lang-Chinese --> |
| − | | | + | |translated-by= <!-- [[User:XXXX]] --> |
| − | + | |translated-from-title= <!-- Title only --> | |
| + | |translated-from-id= <!-- Id of translated revision --> | ||
| + | |review-by= <!-- After re-review: [[User:username]] --> | ||
| + | |review-timestamp= <!-- After re-review: YYYYMMDD --> | ||
| + | |update-by= <!-- After significant update: [[User:username]]--> | ||
| + | |update-timestamp= <!-- After significant update: YYYYMMDD --> | ||
| + | |creationdate= 20080529 | ||
| + | |author= [[User:Technical writer 1]] | ||
| + | <!-- The following are not in current metadata --> | ||
| + | |subcategory= | ||
| + | |id= TSJ000993 | ||
| + | }} | ||
== Description == | == 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. | |
| − | According to RFC 2396 (Uniform Resource Identifiers (URI) Generic Syntax), | + | |
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. | 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 == | == Solution == | ||
| − | |||
When defining URL for network resources, avoid using the the character ':' in the URL. | When defining URL for network resources, avoid using the the character ':' in the URL. | ||
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.

