You may have this problem if you do not have the 157 patch installed
for JRun 2.3.3. You can download it from the allaire site - by the way,
I believe this problem is discussed in the allaire knowledge base.

-----Original Message-----
From: naveen
Sent: Wednesday, June 28, 2000 8:18 AM
To: JSP-INTEREST
Subject: Re: JRUN, JSP Error - java.lang.ArrayIndexOutOfBoundsException


Just stop and start the instance of the iplanet you are running. Dont
know
the cause. The JSP page may not have any error. Still some times
i-planet
when used with jdk option (instead of jre option , which can only be
used if
we not compiling JSP pages) the i-planet gives this error.

----- 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(J
RunS
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.handleReques
t(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


This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.

===========================================================================
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

Reply via email to