Finally.... work fine... gooooo flipper!!! ehhehehehh OK, now, how do i turn off this log warning? Remember, my devMode isnt on!!!!
On Thu, Jun 12, 2008 at 8:23 AM, Ralf Fischer <[EMAIL PROTECTED]> wrote: > Hi, > > On Thu, Jun 12, 2008 at 1:08 PM, Felipe Lorenz <[EMAIL PROTECTED]> > wrote: > > I dont know if it is just a warning... cause i dont use devMode on. And > when > > i use the action whith action-redirect, it doesnt work. > > It IS just a warnung, as you see from the message: > > WARNING: Caught OgnlException while setting property > 'candidatoExt.codIdFeder' on type > 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. > ognl.NoSuchPropertyException: > org.apache.struts2.dispatcher.ServletActionRedirectResult.candidatoExt > > OGNL tries to find the property "candidatoExt" on type > ServletActionRedirectResult, which obviously isn't there. > > IIRC this is a known issue. When using the redirect aciton result you > have to set the action name and, optionally, the namespace to where > you want struts to redirect the request. Usually besides these two > result parameters you add parameters to the result definition in your > configuration which parametrize the redirect target, like you do with > 'candidatoExt.codIdFeder'. OGNL itself at this point cannot > distinguish between parameters for the result it self and the redirect > target, thus tries to set all values in the result and encounters the > problems as you see in your logfile. They usually don't harm. > > > Strange.... > > Yes. > > > Do you have idea? > > Not yet at least. Are there any other exceptions in your logfile? > > Bye, > -Ralf > > > Thanks! > > > > On Wed, Jun 11, 2008 at 5:12 PM, Dave Newton <[EMAIL PROTECTED]> > wrote: > > > >> That's a warning issued because params may be set either the action or > on a > >> result. It may go away if you turn devMode off; I don't recall what the > >> current status of this issue is. > >> > >> Dave > >> > >> --- On Wed, 6/11/08, Felipe Lorenz <[EMAIL PROTECTED]> wrote: > >> > >> > From: Felipe Lorenz <[EMAIL PROTECTED]> > >> > Subject: Re: Problems with action-redirect > >> > To: "Struts Users Mailing List" <user@struts.apache.org>, > >> [EMAIL PROTECTED] > >> > Date: Wednesday, June 11, 2008, 4:03 PM > >> > oooppps.. my bad.... > >> > > >> > And i use struts 2.0.11 > >> > > >> > WARNING: Caught OgnlException while setting property > >> > 'candidatoExt.codIdFeder' on type > >> > 'org.apache.struts2.dispatcher.ServletActionRedirectResult'. > >> > ognl.NoSuchPropertyException: > >> > org.apache.struts2.dispatcher.ServletActionRedirectResult.candidatoExt > >> > at > >> > > ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122) > >> > at > >> > > >> > com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.getProperty(OgnlValueStack.java:58) > >> > at > >> > ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643) > >> > at > >> > ognl.ASTProperty.getValueBody(ASTProperty.java:92) > >> > at > >> > ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) > >> > at ognl.SimpleNode.getValue(SimpleNode.java:210) > >> > at ognl.ASTChain.setValueBody(ASTChain.java:168) > >> > at > >> > ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177) > >> > at ognl.SimpleNode.setValue(SimpleNode.java:246) > >> > at ognl.Ognl.setValue(Ognl.java:476) > >> > at > >> > com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186) > >> > at > >> > > >> > com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(OgnlUtil.java:360) > >> > at > >> > com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76) > >> > at > >> > com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49) > >> > at > >> > > >> > org.apache.struts2.impl.StrutsObjectFactory.buildResult(StrutsObjectFactory.java:95) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:195) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:342) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150) > >> > at > >> > > >> > org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:167) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:207) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:74) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:127) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java:107) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:206) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:115) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:143) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:121) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:170) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:123) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223) > >> > at > >> > > >> > com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) > >> > at > >> > > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) > >> > at > >> > > >> > org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:50) > >> > at > >> > > >> > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:504) > >> > at > >> > > >> > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:419) > >> > at > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215) > >> > at > >> > > >> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) > >> > at > >> > > >> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > >> > at > >> > > >> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) > >> > at > >> > > >> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > >> > at > >> > > >> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > >> > at > >> > > >> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) > >> > at > >> > > >> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) > >> > at > >> > > >> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) > >> > at > >> > > >> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) > >> > at > >> > > >> > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) > >> > at > >> > > >> > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) > >> > at > >> > > >> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689) > >> > at java.lang.Thread.run(Thread.java:595) > >> > > >> > > >> > On Wed, Jun 11, 2008 at 4:59 PM, Dave Newton > >> > <[EMAIL PROTECTED]> wrote: > >> > > >> > > --- On Wed, 6/11/08, Felipe Lorenz > >> > <[EMAIL PROTECTED]> wrote: > >> > > > Im did try a action-redirect, but it throw a > >> > exception. > >> > > > And i dont know why, cause i use it in other > >> > action-redirect > >> > > > and work. What can be? > >> > > > > >> > > You didn't even say what the exception was or > >> > provide any information about > >> > > under what circumstances the exception was thrown. > >> > > > >> > > So to answer your question it could be just about > >> > anything, as I don't see > >> > > anything obviously wrong with your configuration. > >> > > > >> > > Dave > >> > > > >> > > > >> > > > >> > --------------------------------------------------------------------- > >> > > To unsubscribe, e-mail: > >> > [EMAIL PROTECTED] > >> > > For additional commands, e-mail: > >> > [EMAIL PROTECTED] > >> > > > >> > > > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >