Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 3723 invoked from network); 19 Feb 2007 15:29:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Feb 2007 15:29:18 -0000 Received: (qmail 86104 invoked by uid 500); 19 Feb 2007 15:29:23 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 86074 invoked by uid 500); 19 Feb 2007 15:29:23 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 86063 invoked by uid 99); 19 Feb 2007 15:29:23 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 07:29:23 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of kevan.miller@gmail.com designates 209.85.132.244 as permitted sender) Received: from [209.85.132.244] (HELO an-out-0708.google.com) (209.85.132.244) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Feb 2007 07:29:11 -0800 Received: by an-out-0708.google.com with SMTP id b36so184547ana for ; Mon, 19 Feb 2007 07:28:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=o1mBCwKMREFdV52VAEMeBp96EEHbH1ys69sqyZJqHx4qOHSiSS5fBbpOFoFKisRo9SMdjXosVmQRAA7hmdqgtXsK1vPsaoAiK7jP8yau5ytocxJs/XAd3jST4Fqeg5tMhKt8dUytMjAnSIvjSeD0D8MlzxQhKtH3Ozi8IcyHjR0= Received: by 10.100.128.8 with SMTP id a8mr1584536and.1171898930154; Mon, 19 Feb 2007 07:28:50 -0800 (PST) Received: from ?192.168.1.100? ( [66.57.98.165]) by mx.google.com with ESMTP id i17sm9058929wxd.2007.02.19.07.28.48; Mon, 19 Feb 2007 07:28:49 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: References: <2C0C78DC-1DFF-4F80-9999-3F5C7AB419F2@gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-2-318196796 Message-Id: <2DC4992C-9334-4F77-9B2E-11EA42131C6F@gmail.com> From: Kevan Miller Subject: Re: Action instance creation failure in geronimo 1.1.1 - Reg Date: Mon, 19 Feb 2007 10:28:44 -0500 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-2-318196796 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed On Feb 19, 2007, at 9:44 AM, Kamalanathan Raman wrote: > Hi, > > > > Thanks Kevan for replying > > Our J2EE application uses struts. > > We are using filter before invoking every action (*.do). > > So, every action file will be invoked from =93Security Filter=94 = which =20 > implements Filter interface. > > Our problem is Security filter is not invoking in some of the =20 > instances the corresponding action file. > > > > When it successfully invokes action file > > chain.doFilter(request, response); > > > > after this step its going to the action file. But when unable to it =20= > is going to the catch block. > > Inspite of getting the path correct it is unable to invoke the =20 > action file. I confirmed whether it is getting the right path or =20 > not by keeping the alert in jsp > > > > So any idea why it=92s happening? Any thing to do with the objects =20= > being passed to chain.doFilter method ? > > > > May be the request and response objects are not getting populated =20 > properly. Or is there any other mistake? > > > > Please see the stack trace and kindly advice us how to proceed > > > > ERROR [SecurityFilter] doFilter(ServletRequest sreq, =20 > ServletResponse sres,FilterChain chain)SecurityFilter.doFilter : =20 > Exception > javax.servlet.ServletException: Servlet execution threw an exception > at org.apache.catalina.core. =20 > ApplicationFilterChain.internalDoFilter =20 > (ApplicationFilterChain.java:275) > at =20 > org.apache.catalina.core.ApplicationFilterChain.doFilter=20 > (ApplicationFilterChain.java:173) > at com.symcor.wir.security.web.SecurityFilter.doFilter=20 > (SecurityFilter.java:450) > at =20 > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter=20 > (ApplicationFilterChain.java:202) > at =20 > org.apache.catalina.core.ApplicationFilterChain.doFilter=20 > (ApplicationFilterChain.java:173) > at org.apache.catalina.core.StandardWrapperValve.invoke=20 > (StandardWrapperValve.java:213) > at org.apache.catalina.core.StandardContextValve.invoke=20 > (StandardContextValve.java:178) > at =20 > org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke=20 > (DefaultSubjectValve.java:56) > at org.apache.geronimo.tomcat.GeronimoStandardContext=20 > $SystemMethodValve.invoke(GeronimoStandardContext.java:342) > at =20 > org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke=20 > (GeronimoBeforeAfterValve.java:31) > at org.apache.catalina.core.StandardHostValve.invoke=20 > (StandardHostValve.java:126) > at org.apache.catalina.valves.ErrorReportValve.invoke=20 > (ErrorReportValve.java:105) > at org.apache.catalina.core.StandardEngineValve.invoke=20 > (StandardEngineValve.java:107) > at org.apache.catalina.valves.AccessLogValve.invoke=20 > (AccessLogValve.java:541) > at org.apache.catalina.connector.CoyoteAdapter.service=20 > (CoyoteAdapter.java:148) > at org.apache.coyote.http11.Http11Processor.process=20 > (Http11Processor.java:869) > at org.apache.coyote.http11.Http11BaseProtocol=20 > $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:=20 > 667) > at =20 > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket=20 > (PoolTcpEndpoint.java:527) > at =20 > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt=20 > (LeaderFollowerWorkerThread.java:80) > at org.apache.tomcat.util.threads.ThreadPool=20 > $ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Thread.java:595) Kamal, You'll need to use ServletException.getRootCause() to get to the =20 underlying error. --kevan= --Apple-Mail-2-318196796 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=WINDOWS-1252
On Feb 19, 2007, = at 9:44 AM, Kamalanathan Raman wrote:

Hi,=A0

Thanks Kevan for replyingOur J2EE application = uses struts.We are using filter = before invoking every action (*.do).So, = every action file will be =A0invoked from =93Security Filter=94 which implements = Filter = interface.Our problem is = Security filter is not invoking in some of the instances the = corresponding action file.

=A0

When it successfully invokes action = file

=A0

after this step its going to the action file. = But when unable to it is going to the catch block.Inspite of getting = the path correct it is unable to invoke the action file. I confirmed = whether it is getting the right path or not by keeping the alert in = jsp=A0

So any idea why it=92s happening? =A0Any thing to do with = the objects being passed to chain.doFilter method ?

May be the request and response objects are not getting = populated properly. Or is there any other mistake?=A0

Please see the stack trace and kindly advice us = how to proceed

ERROR [SecurityFilter] doFilter(ServletRequest sreq, = ServletResponse sres,FilterChain chain)SecurityFilter.doFilter : = Exception
javax.servlet.ServletException: Servlet = execution threw an exception

=A0 =A0 =A0 =A0 =A0 =A0 at = org.apache.catalina.core. ApplicationFilterChain.internalDoFilter = (ApplicationFilterChain.java:275)

=A0 =A0 =A0 =A0 =A0 =A0 at = org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter= Chain.java:173)
=A0 =A0 =A0 =A0 =A0 = =A0 at com.symcor.wir.security.web.SecurityFilter.doFilter(SecurityFilter.java:450)
=A0 =A0 =A0 =A0 =A0 =A0 at = org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati= onFilterChain.java:202)
=A0 =A0 =A0 =A0 =A0 =A0 at = org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter= Chain.java:173)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.= java:213)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.= java:178)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubject= Valve.java:56)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.invok= e(GeronimoStandardContext.java:342)
=A0 =A0 =A0 =A0 =A0 =A0 at = org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(GeronimoB= eforeAfterValve.java:31)
=A0 =A0 =A0 =A0 =A0 =A0 at = org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1= 26)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1= 05)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja= va:107)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)<= /SPAN>
=A0 =A0 =A0 =A0 =A0 =A0 at = org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148= )
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)=
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proces= sConnection(Http11BaseProtocol.java:667)
=A0 =A0 =A0 =A0 =A0 =A0 at = org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.j= ava:527)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollower= WorkerThread.java:80)
=A0 =A0 =A0 =A0 =A0 = =A0 at = org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.j= ava:684)
=A0 =A0 =A0 =A0 =A0 = =A0 at java.lang.Thread.run(Thread.java:595)

= --Apple-Mail-2-318196796--