Oops!! Sorry ! I thought u r running iplanet server. The answer was for
i-planet server.
----- Original Message -----
From: "Lisa Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 7:48 PM
Subject: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException
> Problem: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException
> Environment: We are using java version "1.2.2" and Solaris VM
(solaris_JDK_1.2.2_05a)
> and Jrun 2.3.3 and Netscape iPanet 4.0 Webserver. We are running
Solaris 2.7 on a Ultra-2 with 512M of memory.
>
> What is strange is this code worked yesterday and we have not made any
> changes to the code and it is not working today. We are suddently getting
a java.lang.ArrayIndexOutOfBoundsException. We don't know why we
> tried several things but in vain, if any one could help we would
> appreciate it. We already tried rebooting our machine and restarting our
servers just in case it was related to problems in memory.
>
>
> Here is a snippet from our JSP file that is causing the error:
>
> ArrayList selectedPatientList = null;
> selectedPatientList =
(ArrayList)request.getAttribute("selectedpatientlist");
>
> PatientRow patient = (PatientRow) selectedPatientList.get(1);
>
> (note: what is very strange about this is the selectedPatientList.size()
shows the correct size!)
>
> The code snippet in our Controller Servlet where the requestDispatcher
forwards the request to the JSP page:
>
> ArrayList selectedPatientList = new ArrayList();
>
session.putValue("MARSGUI.selectedPatientList",selectedPatientList);
>
> while (tknzr.hasMoreTokens())
> {
> patientKey = tknzr.nextToken();
> if (patientKey.startsWith(",")) patientKey
=patientKey.substring(1);
>
> patientRow = (PatientRow) patientList.get( patientKey );
> if (patientRow == null)
> {
> throw new Exception("Patient " + patientKey + " could not
befound.");
> }
>
> patientRow.select(); // Mark the PatientRow selected
> selectedPatientList.add( patientRow );
> }
>
>
>
> RequestDispatcher requestDispatcher =
> getServletContext().getRequestDispatcher("/ReportsFrameSet.jsp");
> if (selectedPatientList != null)
> {
> req.setAttribute("selectedpatientlist", selectedPatientList );
> }
>
> requestDispatcher.forward(req, res);
>
>
>
> --------------------------------------------------------------------------
---
> We are getting this error
>
> java.lang.ArrayIndexOutOfBoundsException at
> java.lang.String.getChars(Compiled Code) at
> com.jclark.xsl.sax.ResultBase.characters(Compiled Code) at
> com.jclark.xsl.tr.ValueOfAction.invoke(Compiled Code) at
> com.jclark.xsl.tr.AppendAction.invoke(Compiled Code) at
> com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled Code)
> at com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.process(Compiled Code)
> at com.jclark.xsl.tr.ProcessAction.invoke(Compiled Code) at
> com.jclark.xsl.tr.AppendAction.invoke(Compiled Code) at
> com.jclark.xsl.tr.IfAction.invoke(Compiled Code) at
> com.jclark.xsl.tr.AppendAction.invoke(Compiled Code) at
> com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled Code)
> at com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.process(Compiled Code)
> at com.jclark.xsl.tr.ProcessAction.invoke(Compiled Code) at
> com.jclark.xsl.tr.AppendAction.invoke(Compiled Code) at
> com.jclark.xsl.tr.SheetImpl$ProcessContextImpl.processSafe(Compiled Code)
> at com.jclark.xsl.tr.SheetImpl.process(SheetImpl.java) at
> com.jclark.xsl.sax.XSLProcessorImpl.parse(XSLProcessorImpl.java) at
> com.livesoftware.xml.XT.process(XT.java:66) at
> com.livesoftware.jsp.JSPCompiler.createServlet(JSPCompiler.java:111) at
> com.livesoftware.jsp.JSPServlet.service(Compiled Code) at
> javax.servlet.http.HttpServlet.service(Compiled Code) at
> com.livesoftware.jrun.JRun.runServlet(Compiled Code) at
>
com.livesoftware.jrun.JRunServletContext$JRunRequestDispatcher.forward(JRunS
ervletContext.java:355)
> at GuiControllerServlet.doPost(Compiled Code) at
> javax.servlet.http.HttpServlet.service(Compiled Code) at
> javax.servlet.http.HttpServlet.service(Compiled Code) at
> com.livesoftware.jrun.JRun.runServlet(Compiled Code) at
> com.livesoftware.jrun.JRunGeneric.handleConnection(JRunGeneric.java:116)
> at com.livesoftware.jrun.JRunGeneric.handleProxyConnection(Compiled Code)
> at
>
com.livesoftware.jrun.service.proxy.JRunProxyServiceHandler.handleRequest(Co
mpiled
> Code) at com.livesoftware.jrun.service.ThreadConfigHandler.run(Compiled
> Code)
>
> ( What are these jclark.xsl and jclark.xsl.sax classes?
>
> Thanks very much
> Lisa
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets