Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4175

An empty input file causes java.lang.StringIndexOutOfBoundsException:

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.3.15.1
    • Fix Version/s: 2.5.x
    • Component/s: Plugin - Embedded JSP
    • Labels:
      None
    • Environment:

      Fedora 19 64 bit

      Description

      I invoke JspC with an empty file as follows

      java org.apache.struts2.jasper.JspC a.jsp

      java.lang.StringIndexOutOfBoundsException: String index out of range: 0
      at java.lang.String.charAt(String.java:658)
      at org.apache.struts2.jasper.JspCompilationContext.<init>(JspCompilationContext.java:118)
      at org.apache.struts2.jasper.JspC.processFile(JspC.java:920)
      at org.apache.struts2.jasper.JspC.execute(JspC.java:1056)
      at org.apache.struts2.jasper.JspC.main(JspC.java:237)
      org.apache.struts2.jasper.JasperException: java.lang.StringIndexOutOfBoundsException: String index out of range: 0

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lionghosthop Leo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: