×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    47

    what could be reson for http error code 500?

    hi,

    i know that http error code 500 is for internal server error.

    when i use that url it works fine with browser.

    i am using sun wirelesstoolkit 2.5.0. and in my httpconnector method i am using GET method.

    so can anyone tell me what is the reason for this kind of behaviour.

    thankkx

  2. #2
    Regular Contributor
    Join Date
    May 2010
    Posts
    94

    Re: what could be reson for http error code 500?

    Provide the code which you are using to make connection and response.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Posts
    47

    Re: what could be reson for http error code 500?

    connection=(HttpConnection)Connector.open(url,Connector.READ);
    connection.setRequestMethod(HttpConnection.GET);
    if(connection.getResponseCode()==HttpConnection.HTTP_OK)
    {
    inputstream=connection.openInputStream();
    int ch;
    buffer=new StringBuffer();
    while((ch=inputstream.read())!=-1)
    {
    buffer.append((char)ch);
    }

  4. #4
    Regular Contributor
    Join Date
    May 2010
    Posts
    94

    Re: what could be reson for http error code 500?

    you are attempting in a right way,
    Try with the another Url and check that with another URL Response code is 200 or 500.
    If 200 then it is internal server error.Not the Problem in client side.
    if 500 then i will check the code in my side.
    thanks.

  5. #5
    Registered User
    Join Date
    Nov 2010
    Posts
    47

    Re: what could be reson for http error code 500?

    ok
    i am using it in many class but in some it gives me error.Let i check that if there is any problem with server or not.

    thankx.

  6. #6
    Nokia Developer Champion
    Join Date
    Apr 2007
    Posts
    2,708

    Re: what could be reson for http error code 500?

    Http error 500 is an internal server error... So it's on your server side, it might be that some script is crashing or throwing exceptions...
    Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them.

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

    Re: what could be reson for http error code 500?

    Quote Originally Posted by hitendrasinh.gohil View Post
    ok
    i am using it in many class but in some it gives me error.Let i check that if there is any problem with server or not.

    thankx.
    The URL which are working that means the at that time the server was available and was able to process the request too,however the case when it throws the 500 then the server encountered an unexpected condition which prevented it from fulfilling the request.
    Any client (e.g. your Web browser or our CheckUpDown robot) goes through the following cycle when it communicates with the Web server:

    * Obtain an IP address from the IP name of the site (the site URL without the leading 'http://'). This lookup (conversion of IP name to IP address) is provided by domain name servers (DNSs).
    * Open an IP socket connection to that IP address.
    * Write an HTTP data stream through that socket.
    * Receive an HTTP data stream back from the Web server in response. This data stream contains status codes whose values are determined by the HTTP protocol. Parse this data stream for status codes and other useful information.

    This error occurs in the final step above when the client receives an HTTP status code that it recognises as '500
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

Similar Threads

  1. Http error 500
    By phpgenerator in forum Symbian
    Replies: 2
    Last Post: 2010-06-11, 09:03
  2. browser hangs on http status code 500 ( urgent)
    By harshith in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2010-01-21, 00:15
  3. HTTP 500 responce code
    By HasithaRandika in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2009-02-25, 13:31
  4. HTTP : 500 Error
    By j2me8 in forum Mobile Java General
    Replies: 3
    Last Post: 2008-11-26, 08:19
  5. HTTP Error 500
    By francom in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2003-05-05, 05:48

Posting Permissions

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