Namespaces
Variants
Actions
Revision as of 11:50, 29 May 2008 by Forum Nokia KB (Talk | contribs)

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

Jump to: navigation, search


ID TSJ000993 Creation date May 29, 2008 
Platform Series 40  Devices Series 40 devices 
Category Java ME  Subcategory  


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.

159 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved