×

Discussion Board

Results 1 to 13 of 13
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    Error in HTTP operation

    Hi All.

    My issue is to get some data from server.

    I using NetBeans and 'Series 40 SDK 3rd Edition Feature Pack 2' SDK emulator.
    My application work with HTTP connection for get data from server.
    Every time I try to open an http connection, I get "java.io.IOException : Error in HTTP operation".
    This issue arise only on Emulator. On real device it work OK.

    Actually I don't know why this issue is arise.

    Thanks for any help.

  2. #2
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Error in HTTP operation

    This error on the emulator may be due to non-reliable IO steams on the emulator or non-support of Internet connection.

    thanks,
    ~Amitabh

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

    Re: Error in HTTP operation

    If you're using POST, but you're adding a query string to the URL ("?name-value"), then this might cause an error.

    Graham.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Error in HTTP operation

    As the things work on real device, this means that even http POST method can send data as query string appended to URL thou its not a common practise. [People have started sending QueryStrings with HTTP with URL even with POST method where post data may be some binary data and QS can be some text to avoid multipart post data parseing overhead]

    I feel the problem here is with the Emulator not able to connect to the Network, IO exception its not able to open the http connection with the target server.

    try some other emulators.

    thanks,
    ~Amitabh

  5. #5
    Registered User
    Join Date
    Nov 2009
    Posts
    188

    Re: Error in HTTP operation

    Quote Originally Posted by gorec View Post
    Hi All.

    My issue is to get some data from server.

    I using NetBeans and 'Series 40 SDK 3rd Edition Feature Pack 2' SDK emulator.
    My application work with HTTP connection for get data from server.
    Every time I try to open an http connection, I get "java.io.IOException : Error in HTTP operation".
    This issue arise only on Emulator. On real device it work OK.

    Actually I don't know why this issue is arise.

    Thanks for any help.
    Have you set the API permission for javax.microedition.io.Connector.http?
    If not then set this and then try it may work!
    Thanks & Regards,
    Ajit

  6. #6
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    Re: Error in HTTP operation

    Hmm...
    No, I haven't.
    Can you give me an example how to set the API permission for javax.microedition.io.Connector.http?
    Thanks a lot.
    Gorec

  7. #7
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Error in HTTP operation

    you are using - 'Series 40 SDK 3rd Edition Feature Pack 2' SDK emulator

    Are you able to Open the browser on this emualtor and connect to any website like google or can you connect to your server from emulator browser... ?

    Set the permissions from emulator prefrences, allow all permission to the midlet making it max trusted domain.

    thanks,
    ~Amitabh

  8. #8
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    Re: Error in HTTP operation

    Oh.. Finally.. It works)
    Thank you guys.

  9. #9
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Error in HTTP operation

    What was the Issue, why was it not working before ?

  10. #10
    Registered User
    Join Date
    Nov 2009
    Posts
    20

    Re: Error in HTTP operation

    Hey Gorec,
    I am getting the same issue:
    java.io.IOException: Error in HTTP operation
    But in my case,Neither my application working on mobile nor emulator.

    Can anybody plz help?

    Manmeet

  11. #11
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Error in HTTP operation

    Quote Originally Posted by manmeet_narang View Post
    Hey Gorec,
    I am getting the same issue:
    java.io.IOException: Error in HTTP operation
    But in my case,Neither my application working on mobile nor emulator.
    where exactly are you getting this exception?

    Did you read this discussion?
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  12. #12
    Registered User
    Join Date
    Jul 2008
    Posts
    5

    Re: Error in HTTP operation

    Quote Originally Posted by manmeet_narang View Post
    Hey Gorec,
    I am getting the same issue:
    java.io.IOException: Error in HTTP operation
    But in my case,Neither my application working on mobile nor emulator.

    Can anybody plz help?

    Manmeet
    Hi

    Just set the permissions from emulator prefrences, allow all permission to the midlet making it max trusted domain.

    After this changes, all work OK.

    Gorec

  13. #13
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,085

    Re: Error in HTTP operation

    Manmeet

    Your case looks different, it looks that your Server is not reachable. Try your server URL from mobile browser, it should be on public IP.

    Apart from giving all permissions to the app for network access.

    thanks,
    ~Amitabh

Similar Threads

  1. Error in HTTP operation
    By gorec in forum Series 40 & S60 Platform Feedback Archive
    Replies: 1
    Last Post: 2010-04-23, 05:47
  2. Error in Http operation for HEAD request (S40/6230i)
    By elazar.raab in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2010-01-21, 08:34
  3. IO exception in HTTP operation
    By J2me_champ in forum Mobile Java General
    Replies: 7
    Last Post: 2009-10-12, 17:56
  4. cancel http operation
    By badzio in forum Symbian Networking & Messaging (Closed)
    Replies: 9
    Last Post: 2009-05-21, 22:52
  5. Error in HTTP operation
    By fethy in forum Mobile Java General
    Replies: 10
    Last Post: 2007-08-30, 11:53

Posting Permissions

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