×
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)
m (Protected "TSJ000993 - Limitation on using ':' character in Series 40" [edit=sysop:move=sysop])
hamishwillee (Talk | contribs)
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Technical Solution]][[Category:For publishing]][[Category:Java ME]][[Category:Series 40]]
+
[[Category:Java ME]][[Category:Series 40]][[Category:Known Issue]][[Category:Networking]]
__NOTOC__
+
{{ArticleMetaData <!-- v1.2 -->
__NOEDITSECTION__
+
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
{|style="background:#eceff2" width="660px" border="1" cellpadding="5" cellspacing="0"
+
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
|-
+
|devices= Series 40 devices
|'''ID''' ||TSJ000993
+
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
|'''Creation date''' ||May 29, 2008&nbsp;
+
|platform= Series 40
|-
+
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
|'''Platform''' ||Series 40&nbsp;
+
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
|'''Devices''' ||Series 40 devices&nbsp;
+
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
|-
+
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
|'''Category''' ||Java ME&nbsp;
+
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
|'''Subcategory''' ||&nbsp;
+
|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), 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.

80 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.

×