geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamalanathan Raman" <Kamalanathan_Ra...@infosys.com>
Subject RE: Action instance creation failure in geronimo 1.1.1 - Reg
Date Mon, 19 Feb 2007 14:44:49 GMT
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 "Security Filter" which
implements Filter interface. 

Our problem is Security filter is not invoking in some of the 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 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

 

So any idea why it's happening?  Any 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?

 

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 
            at org.apache.catalina.core.
ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:275) 
            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173) 
            at
com.symcor.wir.security.web.SecurityFilter.doFilter(SecurityFilter.java:
450) 
            at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202) 
            at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173) 
            at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213) 
            at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178) 
            at
org.apache.geronimo.tomcat.valve.DefaultSubjectValve.invoke(DefaultSubje
ctValve.java:56) 
            at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMethodValve.inv
oke(GeronimoStandardContext.java:342) 
            at
org.apache.geronimo.tomcat.valve.GeronimoBeforeAfterValve.invoke(Geronim
oBeforeAfterValve.java:31) 
            at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126) 
            at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105) 
            at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107) 
            at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541
) 
            at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48) 
            at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9) 
            at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:667) 
            at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527) 
            at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80) 
            at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684) 
            at java.lang.Thread.run(Thread.java:595)

 

 

Thanks & Regards,

kamal

 

 

**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
solely for the use of the addressee(s). If you are not the intended
recipient, please notify the sender by e-mail and delete the original
message. Further, you are not to copy, disclose, or distribute this
e-mail or its contents to any other person and any such actions are
unlawful. This e-mail may contain viruses. Infosys has taken every
reasonable precaution to minimize this risk, but is not liable for any
damage you may sustain as a result of any virus in this e-mail. You
should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content
of all messages sent to or from this e-mail address. Messages sent to or
from this e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***

 

 

________________________________

From: Kevan Miller [mailto:kevan.miller@gmail.com] 
Sent: Monday, February 19, 2007 8:13 PM
To: user@geronimo.apache.org
Subject: Re: Action instance creation failure in geronimo 1.1.1 - Reg

 

 

On Feb 19, 2007, at 8:14 AM, Kamalanathan Raman wrote:





Hi,

 

We are using Geronimo 1.1.1. Our application uses struts.

Every action file will be invoke from a file called
"SecurityFilter.java" which implements Filter.

But in some of the instances action file is not invoked.

Including the logs when successfully invoking the action file and when
failed to invoke.

 

Log when action file is successfully invoked:

 

17:49:11,485 DEBUG [RequestProcessor]
processForwardConfig(ForwardConfig[name=success_add_org_EN,path=/73d113f
d/admin/createOrganization.do?actionType=new_action,redirect=false,conte
xtRelative=false])

17:49:11,485 DEBUG [RequestUtils] Get module name for path
/73d113fd/admin/createOrganization.do

17:49:11,485 DEBUG [RequestUtils] Module name found: default

17:49:11,485 DEBUG [RequestProcessor] Processing a 'GET' for path
'/73d113fd/admin/createOrganization'

17:49:11,485 DEBUG [RequestUtils]  Looking for ActionForm bean instance
in scope 'request' under attribute key 'organizationForm'

17:49:11,485 DEBUG [RequestUtils]  Creating new ActionForm instance of
type 'com.symcor.wiradmin.organization.web.forms.OrganizationForm'

17:49:11,485 DEBUG [RequestProcessor]  Storing ActionForm bean instance
in scope 'request' under attribute key 'organizationForm'

17:49:11,485 DEBUG [RequestProcessor]  Populating bean properties from
this request

17:49:11,485 DEBUG [RequestProcessor]  Looking for Action instance for
class
com.symcor.wiradmin.organization.web.actions.CreateOrganizationAction

 

Log when action file is not invoked:

 

 

17:49:11,485 DEBUG [RequestProcessor]
processForwardConfig(ForwardConfig[name=success_EN,path=/WEB-INF/web/sym
cor/common/jsps/admin/createOrganization.jsp,redirect=false,contextRelat
ive=false])

17:50:12,238 DEBUG [RequestUtils] Get module name for path
/73d113fd/admin/createProfile.do

17:50:12,238 DEBUG [RequestUtils] Module name found: default

17:50:12,238 DEBUG [RequestProcessor] Processing a 'POST' for path
'/73d113fd/admin/createProfile'

17:50:12,238 DEBUG [RequestUtils]  Looking for ActionForm bean instance
in scope 'request' under attribute key 'profileForm'

17:50:12,238 DEBUG [RequestUtils]  Creating new ActionForm instance of
type 'com.symcor.wiradmin.organization.web.forms.ProfileForm'

17:50:12,238 DEBUG [RequestProcessor]  Storing ActionForm bean instance
in scope 'request' under attribute key 'profileForm'

17:50:12,238 DEBUG [RequestProcessor]  Populating bean properties from
this request

17:50:12,254 ERROR [SecurityFilter] doFilter(ServletRequest sreq,
ServletResponse sres,FilterChain chain)SecurityFilter.doFilter :
Exception

 

Seems that it is not able to get the action instance
CreateProfileAction.

Not able to figure out why its so. Any clues?

Hi Kamal,

Pretty hard to say from the information given. What is the exception
(with stacktrace) that SecurityFilter is receiving?

 

--kevan


Mime
View raw message