struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Miguel Almeida <mig...@almeida.at>
Subject Re: OGNL error in log - Error setting expression
Date Fri, 27 Jul 2012 17:45:13 GMT
Answering my own question: apparently you need to define a name property
for the submit tag.

Thanks to http://www.coderanch.com/t/487063/Struts/Internationalization


Miguel 

On Fri, 2012-07-27 at 18:33 +0100, Miguel Almeida wrote:

> I noticed some OGNL warnings in my log that I show below [1].
> User scenario:
> 1) go to form. no warnings
> 2) submit form - page is reloaded. warnings appear.
> 
> The warning is for property which is being used on a key: <s:submit
> key="geral.save" />. The key is defined in globalmessages.properties.
> 
> It seems the question of whether or not these warnings should appear has
> been discussed in the mailing list before. What I couldn't find is this:
> should there even be a warning in this case, given that the property
> should be searched for in the i18n resources and not the action?
> 
> 
> Thank you,
> 
> Miguel Almeida
> 
> [1]
> 2012-07-27 18:28:12,879 WARN  [CommonsLogger.java:60] : Error setting
> expression 'geral.save' with value '[Ljava.lang.String;@5b36cbd0'
> ognl.OgnlException: target is null for setProperty(null, "save",
> [Ljava.lang.String;@5b36cbd0)
> 	at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2309)
> 	at ognl.ASTProperty.setValueBody(ASTProperty.java:127)
> 	at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
> 	at ognl.SimpleNode.setValue(SimpleNode.java:301)
> 	at ognl.ASTChain.setValueBody(ASTChain.java:227)
> 	at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220)
> 	at ognl.SimpleNode.setValue(SimpleNode.java:301)
> 	at ognl.Ognl.setValue(Ognl.java:737)
> 	at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:217)
> 	at
> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186)
> 	at
> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173)
> 	at
> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:151)
> 	at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:292)
> 	at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:203)
> 	at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)
> 	at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
> 	at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.itclinical.audit.AuditMeaningInterceptor.intercept(AuditMeaningInterceptor.java:45)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.itclinical.opensessioninview.OpenSessionInViewInterceptor.intercept(OpenSessionInViewInterceptor.java:75)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> security.interceptors.AnnotatedRolesInterceptor.intercept(AnnotatedRolesInterceptor.java:63)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> 	at
> org.apache.struts2.components.ActionComponent.executeAction(ActionComponent.java:293)
> 	at
> org.apache.struts2.components.ActionComponent.end(ActionComponent.java:175)
> 	at
> org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:42)
> 	at
> org.apache.jsp.jsp.user.manage_jsp._jspx_meth_s_action_1(org.apache.jsp.jsp.user.manage_jsp:874)
> 	at
> org.apache.jsp.jsp.user.manage_jsp._jspx_meth_s_form_1(org.apache.jsp.jsp.user.manage_jsp:815)
> 	at
> org.apache.jsp.jsp.user.manage_jsp._jspx_meth_s_if_1(org.apache.jsp.jsp.user.manage_jsp:751)
> 	at
> org.apache.jsp.jsp.user.manage_jsp._jspService(org.apache.jsp.jsp.user.manage_jsp:128)
> 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
> 	at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
> 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at
> org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:534)
> 	at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)
> 	at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> 	at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
> 	at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> 	at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934)
> 	at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
> 	at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> 	at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869)
> 	at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> 	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:285)
> 	at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:116)
> 	at
> org.apache.struts2.dispatcher.ServletDispatcherResult.doExecute(ServletDispatcherResult.java:164)
> 	at
> org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:374)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278)
> 	at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
> 	at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
> 	at
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
> 	at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)
> 	at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:211)
> 	at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
> 	at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.itclinical.audit.AuditMeaningInterceptor.intercept(AuditMeaningInterceptor.java:45)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> com.itclinical.opensessioninview.OpenSessionInViewInterceptor.intercept(OpenSessionInViewInterceptor.java:75)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> security.interceptors.AnnotatedRolesInterceptor.intercept(AnnotatedRolesInterceptor.java:63)
> 	at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
> 	at
> org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
> 	at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:511)
> 	at
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:432)
> 	at org.eclipse.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1323)
> 	at
> com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129)
> 	at
> com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77)
> 	at org.eclipse.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1323)
> 	at
> org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102)
> 	at org.eclipse.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1323)
> 	at security.jaas.aux.FilterRoles.doFilter(FilterRoles.java:50)
> 	at org.eclipse.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1323)
> 	at
> org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
> 	at org.eclipse.jetty.servlet.ServletHandler
> $CachedChain.doFilter(ServletHandler.java:1323)
> 	at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:474)
> 	at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
> 	at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
> 	at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
> 	at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:934)
> 	at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:404)
> 	at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:184)
> 	at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:869)
> 	at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
> 	at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
> 	at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:151)
> 	at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> 	at org.eclipse.jetty.server.Server.handle(Server.java:346)
> 	at
> org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:581)
> 	at org.eclipse.jetty.server.HttpConnection
> $RequestHandler.content(HttpConnection.java:1057)
> 	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:807)
> 	at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:220)
> 	at
> org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
> 	at
> org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:526)
> 	at org.eclipse.jetty.io.nio.SelectChannelEndPoint
> $1.run(SelectChannelEndPoint.java:41)
> 	at org.eclipse.jetty.util.thread.QueuedThreadPool
> $3.run(QueuedThreadPool.java:528)
> 	at java.lang.Thread.run(Thread.java:619)
> 



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message