×
Namespaces

Variants
Actions
(Difference between revisions)

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

From Nokia Developer Wiki
Jump to: navigation, search
Forum Nokia KB (Talk | contribs)
hamishwillee (Talk | contribs)
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Technical Solution]][[Category:Java ME]][[Category:Series 40]]
+
[[Category:Java ME]][[Category:Series 40]][[Category:Known Issue]][[Category:Networking]]
{{KBTS}}
+
{{ArticleMetaData <!-- v1.2 -->
__NOTOC__
+
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
__NOEDITSECTION__
+
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
{|style="background:#eceff2" width="660px" border="1" cellpadding="5" cellspacing="0"
+
|devices= Series 40 devices
|-
+
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
|'''ID''' ||TSJ000993
+
|platform= Series 40
|'''Creation date''' ||May 29, 2008&nbsp;
+
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
|-
+
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
|'''Platform''' ||Series 40&nbsp;
+
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
|'''Devices''' ||Series 40 devices&nbsp;
+
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
|-
+
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
|'''Category''' ||Java ME&nbsp;
+
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
|'''Subcategory''' ||&nbsp;
+
|translated-by= <!-- [[User:XXXX]] -->
|}
+
|translated-from-title= <!-- Title only -->
 
+
|translated-from-id= <!-- Id of translated revision -->
 
+
|review-by= <!-- After re-review: [[User:username]] -->
==Description ==
+
|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 ==
 
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), 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.
 
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.

Revision as of 09:53, 19 July 2012

Article Metadata
Tested with
Devices(s): Series 40 devices
Compatibility
Platform(s): Series 40
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.

48 page views in the last 30 days.