Only thing that comes to mind right away is try another JVM, like Sun's
1.3.1.  I doubt JRun's trying to use a class before it's loaded since JRun
doesn't really have any control over events at that level.  There was a bug
in Sun 1.2.2_0x (not sure which 'x' - I think '6') that would cause an
ArrayIndexOutOfBoundsException when a class was reloaded.  But actually your
stack trace looks like it might be a bug in JRun.  You say the JSP itself is
simple, but it uses a very large class as a bean.  What about pages that
don't use this class?  I don't think people are seeing this problem with
straight JSP scriptlet code.

The exception below indicates a compile-time error, which shouldn't be
relevant when your page is compiled and in production.  Have you tried it on
Tomcat?  That's always good for a sanity check.

Scott Stirling

> -----Original Message-----
> From: Tom Duffy [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 09, 2001 11:15 AM
> To: JRun-Talk
> Subject: Re: ArrayIndexOutOfBoundsException when JSP is requested for
> the first time
>
>
> I'm experiencing the same error.  No solution yet here - did
> you find a solution to this Markus?
>
> ----- Original Message -----
> From: "Markus Loeffler" <[EMAIL PROTECTED]>
> To: "JRun-Talk" <[EMAIL PROTECTED]>
> Sent: Monday, May 07, 2001 1:11 PM
> Subject: ArrayIndexOutOfBoundsException when JSP is requested
> for the first
> time
>
>
> > Hi,
> >
> > we have a very simple JSP that causes an
> ArrayIndexOutOfBoundsException:
> >
> > <%@ page import="our.package.*" %>
> > <jsp:useBean id="myObject" class="MyClass" scope="session" />
> >
> >
> > java.lang.ArrayIndexOutOfBoundsException
> > at
> >
> allaire.jrun.jsp.JSPLineNumberTable.getSourceLine(JSPLineNumbe
> rTable.java:48
> > )
> > at
> >
> allaire.jrun.jsp.JSPServlet.processCompileErrors(JSPServlet.java:504)
> > at allaire.jrun.jsp.JSPServlet.compilePage(JSPServlet.java:467)
> > at allaire.jrun.jsp.JSPServlet.createServlet(JSPServlet.java:399)
> > at allaire.jrun.jsp.JSPServlet.loadPage(JSPServlet.java:202)
> > at allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:169)
> > at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> > at allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> > at
> >
> allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequest
> Dispatcher.java:88)
> > at allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> > at allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
> > at allaire.jrun.jrpp.ProxyEndpoint.run(ProxyEndpoint.java:367)
> > at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
> > at allaire.jrun.WorkerThread.run(WorkerThread.java:75)
> >
> >
> > The exception occurs only when the page is accessed for the
> > first time after it has been modified. If we reload the page,
> > it works. The reason seems to be that MyClass is a very large
> > class. Looks like JRun tries to use the
> > object before it has been fully created.(?)
> >
> > What can we do about this error (apart from writing smaller
> > classes)? We are using JRun 3.0 SP1 with IIS on a Windows
> > 2000 server.
> >
> > Thanks
> >
> > Markus


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to