[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index] [Home]

RE: Problems with includes


Wes,

Looks like I spoke too soon ... when attempting to access
http://<myserver>/Legal.jsp, I am getting:

java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.Throwable.(Throwable.java:74)
	at java.lang.Exception.(Exception.java:38)
	at java.lang.RuntimeException.(RuntimeException.java:43)
	at java.lang.IndexOutOfBoundsException.(IndexOutOfBoundsException.java:40)
	at
java.lang.StringIndexOutOfBoundsException.(StringIndexOutOfBoundsException.j
ava:52)
	at java.lang.String.substring(Compiled Code)
	at org.gjt.jsp.JspServlet$Page.getResourceImpl(JspServlet.java:697)
	at org.gjt.jsp.JspServlet$Page.needToRecompile(JspServlet.java:789)
	at org.gjt.jsp.JspServlet$Page.process(Compiled Code)
	at org.gjt.jsp.JspServlet.service(JspServlet.java:299)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
	at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
	at org.apache.jserv.JServConnection.run(JServConnection.java:188)
	at java.lang.Thread.run(Thread.java:492)

Checking a few of the variables, I see:

	usePageBase: false
	pageBase: /virtual/n/a/naturgraphia.com/htdocs/
	path: /Legal.jsp
	reqPath: d:/virtual/n/a/naturgraphia.com/htdocs/legal.jsp
	JspURI: /Legal.jsp
	i: -1

So somewhere along the way, the mixed case path (/Legal.jsp) was converted
to lower case, which fooled the substring call.

	--- Noel