Results 1 to 3 of 3
  1. #1
    amergerm35 is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default HTTP 500 server exception error

    I realize there was a thread that had this subject, but it's out of date and not the same exception.

    We have a server that started returning an HTTP 500 error. The lead programmer is out for extended leave, so they wanted me to investigate.

    When I traced it back, this is the message that was stored:
    type Exception report

    message

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

    exception

    org.apache.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: -3
    org.apache.jasper.servlet.JspServletWrapper.handle JspException(JspServletWrapper.java:521)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:415)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:336)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)

    root cause

    java.lang.StringIndexOutOfBoundsException: String index out of range: -3
    java.lang.String.checkBounds(Unknown Source)
    java.lang.String.<init>(Unknown Source)
    org.apache.jsp.jsp.NewEditIDsUpload_jsp._jspServic e(NewEditIDsUpload_jsp.java:97)
    org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:373)
    org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:336)
    org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:265)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:803)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFilter.java:96)

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,755
    Rep Power
    7

    Default Re: HTTP 500 server exception error

    java.lang.StringIndexOutOfBoundsException: String index out of range: -3

    This is obvious. There is no character at position -3 in a String. You need to go through the stack trace to find out where in your code, not in Java or 3rd party library code this occurs. Then look at the line in that class and find out why it is getting an index of -3.

  3. #3
    amergerm35 is offline Member
    Join Date
    Dec 2011
    Posts
    2
    Rep Power
    0

    Default Re: HTTP 500 server exception error

    Thanks for the reply. I'll ask our secondary programmer to start there.

Similar Threads

  1. 'IO exception:Server returned HTTP responsecode:401
    By pink123 in forum New To Java
    Replies: 0
    Last Post: 09-23-2011, 03:35 PM
  2. HTTP Status 500 error with apache tomcat server
    By raazu in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 06-22-2011, 06:29 AM
  3. Run servlet in HTTP server
    By jithan in forum New To Java
    Replies: 25
    Last Post: 10-16-2008, 10:10 AM
  4. Does any file in an FTP server ends up in an HTTP server?
    By islamfunny in forum CLDC and MIDP
    Replies: 4
    Last Post: 08-15-2008, 04:30 PM
  5. java.io.Exception: Server returned HTTP response code: 403
    By navishkumarb in forum Advanced Java
    Replies: 1
    Last Post: 01-05-2008, 01:33 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
  •