Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor shanklin's Avatar
    Join Date
    Mar 2010
    Posts
    159
    Hi,

    Thanks.
    Last edited by shanklin; 2010-09-21 at 14:09.

  2. #2
    Nokia Developer Champion raj_J2ME's Avatar
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,314
    Quote Originally Posted by shanklin View Post
    Hi,
    Has anyone got this error before? especially when using a GET REQUEST?

    java io IOException error 20
    What are you trying to do,please explain the requirement in much more details?
    are you getting this exception on the emulator or device?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    java io IOException
    on GET Request means, you are not able to open the request URL for connecting to the server.
    It may be due to error in URL string itself, bad encoding of QueryString (try URLecoding), or non-avaiablity of internet connectivity or non-reachablilty of server.

    thanks,
    ~Amitabh

  4. #4
    Regular Contributor shanklin's Avatar
    Join Date
    Mar 2010
    Posts
    159
    Hi,

    Thanks.
    Last edited by shanklin; 2010-09-21 at 14:09.

  5. #5
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    try to print the getID and check if it contains any blank space or special characters that need / encoding, try trimmig the getID.

    Also try hardcoing the getID for testing and see the result.

    thanks,
    ~Amitabh

  6. #6
    Regular Contributor shanklin's Avatar
    Join Date
    Mar 2010
    Posts
    159
    Hi,

    Thanks.
    Last edited by shanklin; 2010-09-21 at 14:09.

  7. #7
    Nokia Developer Champion im2amit's Avatar
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    2,903
    why trimming the field contents, allowed the value to be retrieved correctly? so i can avoid this issue in the future.
    Any space or special character as a part of URL/QueryString needs to be URLencoded to pass over the network - else - if will throw IO exception - The getID when trimed, you removed all the extra spaces from it and hence it worked.

    If space is needed to be send over the internet in http request querrystring it is replaced by %20, you might have seen it on browser IE URL area when you try to hit any server url that has spaces.. it autoconverts spaces to %20.

    thanks,
    ~Amitabh

Similar Threads

  1. GUI Libraries for Java ME
    By erik.hellman in forum Mobile Java Media (Graphics & Sounds)
    Replies: 5
    Last Post: 2008-04-11, 11:56
  2. Why is Java the Language of Choice of Most Mobile Game Developers and Not C++?
    By lightninglord2000 in forum General Development Questions
    Replies: 3
    Last Post: 2008-02-19, 18:00
  3. can't open Nokia MMS Java Library
    By barnsley in forum General Messaging
    Replies: 3
    Last Post: 2004-08-28, 05:44
  4. j2ME, java enabled, and the 3410
    By davidkangaroo in forum Mobile Java General
    Replies: 2
    Last Post: 2002-07-05, 22:30
  5. WAP with Java. I want to develop a wap application using java. I use tomcat
    By ask_expert in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2002-05-10, 16:15

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
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