Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

WebSphere 5.1 & compiling JSPs: StringIndexOutOfBoundsException

28 views
Skip to first unread message

Brummer

unread,
Sep 2, 2004, 9:12:56 AM9/2/04
to
Hi,

got a problem while compiling JSPs on WSAD - WebSphere 5.1 (5.1
Express) Server-Instances:

I got a JSP (JSP1) which includes another JSP (JSP2) via
<jsp:include>.
When I request the included JSP (JSP2) by its own, it gets compiled
and displayed correctly. When I request the Parent-JSP (JSP1) the
server puts out following Exception:

[02.09.04 14:26:54:266 CEST] 683c00e1 WebGroup E SRVE0026E:
[Servlet-Fehler]-[String index out of range: 107]:
java.lang.StringIndexOutOfBoundsException: String index out of range:
107
at java.lang.String.charAt(String.java(Compiled Code))
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.decodeUriEscape(WebAppRequestDispatcherInfo.java:291)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.decodeURL(WebAppRequestDispatcherInfo.java:253)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.calculateInfo(WebAppRequestDispatcherInfo.java:178)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcherInfo.<init>(WebAppRequestDispatcherInfo.java:68)
at com.ibm.ws.webcontainer.webapp.WebApp.getRequestDispatcher(WebApp.java:1462)
at com.ibm.ws.webcontainer.srt.SRTServletRequestContext.getRequestDispatcher(SRTServletRequestContext.java:149)
at com.ibm.ws.webcontainer.srt.SRTServletRequest.getRequestDispatcher(SRTServletRequest.java:1200)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:989)
at org.apache.jsp._wgadmin._jspService(_wgadmin.java:311)
at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:669)
at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:767)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:76)
at de.innovationgate.wgpublisher.WGAFilter.doFilter(WGAFilter.java:244)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

If I request a JSP which is not including another jsp, everything gets
compiled well on the server and the output is correct.
I tried several servers (IBM WebSphere 5.1 / 5.1 Express and Apache
Tomcat 4.1.24) and I got just about the same error all the time.

The Apache Tomcat 4.1.24 returns following Exception when requesting
JSP1:

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Since fork is true, ignoring compiler setting.
[javac] Compiling 1 source file
[javac] Since fork is true, ignoring compiler setting.
[javac] javac: invalid flag: C:\Programme\Apache\Tomcat
[javac] Usage: javac
[javac] where possible options include:
[javac] -g Generate all debugging info
[javac] -g:none Generate no debugging info
[javac] -g:{lines,vars,source} Generate only some debugging info


bla bla....


Anyone out there who can help me with this issue?

Cheers,
Eric

0 new messages