×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Feb 2012
    Posts
    19

    java.IOexception:error in http operation

    Hello Sir,

    i am new to j2me.i am working in j2me polish and this is my first project in j2me polish.my appn is working fine on emulator but when run it on device(NOKIA - 6300) then after 6-7 URL hits.It gives exception (java.IOexception:error in http operation) in one particular URL.Every time exception generate on same URL(exception generate in network connection).I am using folloeing steps in Network Connection :-
    1) open connection (using connector .open)
    2) using POST method
    3) open outputstream
    4) after converting in bytes write data
    5) flush the outputstream
    6) open datainputstream
    7) read from inputstream

    When flow reaches at particular URL (where exception occured always)then it gives error in
    5) step in flushing the outputstream
    when i commented it then again When flow reaches at particular URL (where exception occured always)then it gives error in
    6) step in open datainputstream

    problem occured always at this particular URL . i am so confused and i am not able to solve this problem.Please help me

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105

    Re: java.IOexception:error in http operation

    Have you checked the emulator? Try all 3rd Edition ones. If it happens in the emulator as well, you can have a look at the network traffic exchanged (in the emulator’s log or via Wireshark).

  3. #3
    Registered User
    Join Date
    Feb 2012
    Posts
    19

    Re: java.IOexception:error in http operation

    Hye traud
    Thanks for ur reply . I have checked it out in emulator , but there my appn works fine . This problem is only my device (Nokia - 6300 and micromax) and works fine in N - 95 . If it's a problem of particular handset or some Access Points then why all URL's working fine and problem always be on always a same URL . I am helpless there . So plz help me.
    Thanks
    AB

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105

    Re: java.IOexception:error in http operation

    Which exception do you get? Does it contain a message?

  5. #5
    Registered User
    Join Date
    Feb 2012
    Posts
    19

    Re: java.IOexception:error in http operation

    Hye traud
    Thanks for ur reply . Look at my earlier post i have told you earlier on about my exception . By the way , let i will explain you again . I am getting exception of java.io.Error in Http Operation .In getResponseCode() it returns -1 and in getResponseMessage() it returns null . Plz replied me.
    Thanks
    AB

  6. #6
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105

    Re: java.IOexception:error in http operation

    Okay, I missed that. What a pity, that is quite generic! By the way, make sure to type it exactly as it is shown and try a Google search together with the name of your phone (Nokia 6300). My last idea: Go for a Nokia 6300i, the i variant. If it happens there too (although it belongs to a newer Series 40 Edition), you are at least able to debug it via WLAN (Wi-Fi).

  7. #7
    Registered User
    Join Date
    Feb 2012
    Posts
    19

    Re: java.IOexception:error in http operation

    Hye traud
    I have searched on google (specified Nokia - 6300) and also it creates problem only in device but not on emulator.
    Thanks
    AB

Similar Threads

  1. java.io.IOException : Error in HTTP operation
    By hieuttit in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2011-10-17, 16:15
  2. java.io.IOException: Error in HTTP operation
    By varma_111 in forum Mobile Java Networking & Messaging & Security
    Replies: 19
    Last Post: 2011-10-16, 09:27
  3. 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
  4. Getting java.io.IOException: Error in Http operation
    By techendeavour_abhijeet in forum Mobile Java General
    Replies: 3
    Last Post: 2009-05-29, 07:18

Posting Permissions

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