Results 1 to 2 of 2
  1. #1
    sally mally is offline Member
    Join Date
    Nov 2013
    Posts
    14
    Rep Power
    0

    Unhappy Re: HTTP Status 500 - type Exception report

    i have problem in my codes
    please help me

    HTTP Status 500 - For input string: "Chicken Rice Shop"

    --------------------------------------------------------------------------------

    type Exception report

    message For input string: "Chicken Rice Shop"

    description The server encountered an internal error that prevented it from fulfilling this request.

    exception

    java.lang.NumberFormatException: For input string: "Chicken Rice Shop"
    java.lang.NumberFormatException.forInputString(Num berFormatException.java:65)
    java.lang.Integer.parseInt(Integer.java:492)
    java.lang.Integer.parseInt(Integer.java:527)
    stall.menu.MenuServlet.doPost(MenuServlet.java:51)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:647)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:728)
    org.apache.tomcat.websocket.server.WsFilter.doFilt er(WsFilter.java:51)


    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.47 logs.


    --------------------------------------------------------------------------------

    Apache Tomcat/7.0.47

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default Re: HTTP Status 500 - type Exception report

    Please don't hijack another thread, especially one that's 4 years old.
    I've moved this to its own thread.

    Your error is quite clear.
    You are trying to get parseInt to parse a string that is not an integer...in this case "Chicken Rice Shop".
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2012, 10:47 AM
  2. HTTP Status 500 - type Exception report
    By gladiator in forum Java Servlet
    Replies: 1
    Last Post: 04-19-2011, 06:52 AM
  3. HTTP Status 500 - type Exception report - TOM CAT
    By hari krishna in forum Java Servlet
    Replies: 6
    Last Post: 10-16-2010, 04:06 PM
  4. HTTP Status 500 - type Exception report
    By sini.sep87 in forum Java Servlet
    Replies: 15
    Last Post: 11-17-2009, 03:18 PM
  5. Replies: 7
    Last Post: 11-11-2009, 09:29 PM

Posting Permissions

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