JDeveloper. ArrayIndexOutOfBoundsException when logging to website
From: <michel.kowalczyk_at_gmail.com>
Date: 20 Jul 2005 09:36:49 -0700
Message-ID: <1121877409.562251.32300_at_g49g2000cwa.googlegroups.com>
Hi,
import javax.servlet.ServletException;
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
return mapping.findForward("success"); }
}
Date: 20 Jul 2005 09:36:49 -0700
Message-ID: <1121877409.562251.32300_at_g49g2000cwa.googlegroups.com>
Hi,
I am building a webpage using JSPs in jdev with form-based
authorization.
When I enter a bad password it directs me to the error page. OK.
But when I enter the right password I get and error
java.lang.ArrayIndexOutOfBoundsException: 0 at java.lang.System.arraycopy(Native Method) at com.evermind[Oracle Application Server Containers for J2EE 10gjava.lang.Thread.run(Thread.java:534)
(10.1.2.0.0)].server.http.EvermindHttpServletRequest.getRequestURI(EvermindHttpServletRequest.java:1740) at
com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.0)].server.http.NotFoundServlet.sendNotFound(NotFoundServlet.java:24) at
com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.0)].server.http.HttpRequestHandler.handleNotFound(HttpRequestHandler.java:951) at
com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:827) at
com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at
com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at
com.evermind[Oracle Application Server Containers for J2EE 10g
(10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192) at
and my login.java file looks like this
package loginapp.view;
import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionMapping;import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionError; import org.apache.struts.action.ActionErrors;import java.io.IOException;
import javax.servlet.ServletException;
public class Action1Action extends Action {
/** * This is the main action called from the Struts framework. * _at_param mapping The ActionMapping used to select this instance. * _at_param form The optional ActionForm bean for this request. * _at_param request The HTTP Request we are processing. * _at_param response The HTTP Response we are processing. * _at_throws javax.servlet.ServletException * _at_throws java.io.IOException * _at_return */
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
return mapping.findForward("success"); }
}
There are no arrays there, so I am wondering how to tackle this problem
or what could be the cause of this. I am using
OS : Windows XP
App: JDeveloper 10.1.2.
TIA
Michal
Received on Wed Jul 20 2005 - 18:36:49 CEST