×
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)
extkbeditor1 (Talk | contribs)
m
Line 3: Line 3:
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
{|style="background:#eceff2" width="660px" border="1" cellpadding="5" cellspacing="0"
+
{{KnowledgeBase
|-
+
|id=TSJ000993
|'''ID''' ||TSJ000993
+
|platform=Series 40
|'''Creation date''' ||May 29, 2008 
+
|devices=Series 40 devices
|-
+
|category=Java ME
|'''Platform''' ||Series 40 
+
|subcategory=
|'''Devices''' ||Series 40 devices 
+
|creationdate=May 29, 2008
|-
+
|keywords=
|'''Category''' ||Java ME 
+
}}
|'''Subcategory''' || 
+
|}
+
 
+
 
+
==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 13:50, 23 October 2008

Template:KBTS


Article Metadata
Tested with
Devices(s): Series 40 devices
Compatibility
Platform(s): Series 40
Series 40
Article
Created: (29 May 2008)
Last edited: extkbeditor1 (23 Oct 2008)

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.

38 page views in the last 30 days.