×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Java.io.IOException in J2me application

    Hi,
    I am develop one application.I am using Nokia N95.
    I am using HTTP connection in GET method.Its working fine.
    Some times, The following errors occurred.

    java.io.IOException: -3
    java.io.IOException: -36
    java.io.IOException:-5105



    I don't know about this error. Why this error occurred? How to I solve this problem?

    help me..

  2. #2
    Nokia Developer Expert
    Join Date
    Aug 2007
    Posts
    1,595

    Re: Java.io.IOException in J2me application

    Hello DileepKumar,

    based on http://www.developer.nokia.com/Commu...OS_Error_Codes

    java.io.IOException: -3

    -3 The operation was cancelled

    java.io.IOException: -36

    -36 Disconnected

    java.io.IOException:-5105

    <Not defined on the list>

    Could you provide more information on the test, more particularly:

    -the test environment: which network coverage is available during the test, is it 2G or 3G? How good the network is available during the test, does the network have shade periods etc. when it is not fully available which could explain the errors?
    -what the application fetches via HTTP by using GET method?
    -do these errors happen with the same source code which you use?
    -how often these errors happen? Do they all happen at the same time, or separately?
    -do you make one HTTP connection with the GET method, or multiple connections in row?

    Regards,
    r2j7
    [URL="http://library.forum.nokia.com/java"][B] >>> Java Developer's Library <<<[/B][/URL]
    [URL="https://www.developer.nokia.com/Resources/Support/Technical_support.xhtml"] [B]>>> Technical Support for Java ME development <<<[/B][/URL]
    [URL="https://publish.ovi.com/info/"][B]>>> Nokia Publish: reach millions of Nokia users worldwide through Nokia Store <<<[/B][/URL]

  3. #3
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Re: Java.io.IOException in J2me application

    I am using 2G connection and Http GET method only once.

    I get this error in my nokia n95 mobile. But i am running my Emulator means it give ConnectionNotFoundException only.

    The Errors occurred separately. But it give java.io.IOException: -xx errors only.

  4. #4
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Re: Java.io.IOException in J2me application

    HTTPConnetion.Response code is not returned any value? Why?


    How to solve the symbian OS errors?


    I need your suggestion..
    Last edited by DileepKumar; 2011-12-17 at 06:23.

  5. #5
    Nokia Developer Expert
    Join Date
    Aug 2011
    Posts
    555

    Re: Java.io.IOException in J2me application

    Hi DileepKumar,

    Can you try to perform a GET operation with your code and see if you can get any Response Code from the following URL:

    http://www.w3.org

    I have just tested it on N95 after setting my Network to GSM (2G) and I managed to get a Response Code 200, which corresponds to HTTP_OK.

    On your first post, you mentioned that the connection works fine sometimes. Is this still the case, or do you always get the ConnectionNotFoundException on Emulator and the java.io.IOException on your device?

    Can you connect to any web site using the device's native web browser?

  6. #6
    Registered User
    Join Date
    Nov 2011
    Posts
    66

    Re: Java.io.IOException in J2me application

    Now , its working fine ..

  7. #7
    Registered User
    Join Date
    Mar 2013
    Posts
    21

    Re: Java.io.IOException in J2me application

    Quote Originally Posted by DileepKumar View Post
    HTTPConnetion.Response code is not returned any value? Why?


    How to solve the symbian OS errors?


    I need your suggestion..
    I have a same problem when i am running my application on emulator its work fine,but when i run that on Nokia N97 mini it giving java.io.ioexception -1 & java.io.exception -5120 on Nokia E7 for http connection which i making in my app

  8. #8
    Super Contributor
    Join Date
    Jun 2003
    Location
    Cheshire, UK
    Posts
    7,395

    Re: Java.io.IOException in J2me application

    If it helps, -1 is "unable to find the specified object", and -5120 is "no response from DNS server" (IP v6?).

    Can you open the same URL in the device's browser, connecting to the internet by the same mechanism?

    Can you open an HttpConnection to somewhere else (like "www.google.com") and get a response (probably a 302 in this case)?

Similar Threads

  1. IOException java.io.IOException: 40-Error in HTTP operation
    By @RainierLabs in forum Mobile Java General
    Replies: 2
    Last Post: 2011-05-06, 14:23
  2. java io IOException error 20
    By shanklin in forum Mobile Java General
    Replies: 6
    Last Post: 2010-04-29, 16:44
  3. java.io.IOException
    By dave33 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2010-04-08, 11:35
  4. java.io.IOException: -36
    By Sratytaty in forum Mobile Java General
    Replies: 0
    Last Post: 2009-07-31, 09:47
  5. java.ioException:-18 - need HELP!!!!
    By antonio5982 in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-03-13, 20:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×