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

Servlet filter and proxy servlet

4 views
Skip to first unread message

Eddie Baue

unread,
Jan 30, 2004, 9:55:30 AM1/30/04
to

Hi Everyone !

I'm having problems with using a servlet filter mapped to a url that the
proxy servlet is also mapped to. I've isolated the problem to these 2 lines
of code in doFilter(...):

String user_id = request.getParameter("user_id");
String password = request.getParameter("password");

Somehow when I call these lines of code, the chain.doFilter(request,response)
throws the exception below:


18981093,name=DefaultWebApp,context-path=)] Servlet failed with Exception
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:115)
at weblogic.servlet.proxy.GenericProxyServlet.sendRequest(GenericProxyServlet.java:450)
at weblogic.servlet.proxy.GenericProxyServlet.service(GenericProxyServlet.java:279)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at bny.adr.common.web.LoginFilter.doFilter(LoginFilter.java:114)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at bny.adr.common.web.LoginFilter.doFilter(LoginFilter.java:114)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
>

0 new messages