Re: Getting InstantiatingNullHandler exception while using Struts2.5.30
Could you enable DEBUG level for the class "com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler" and post the log? pon., 13 lut 2023 o 16:36 Swapna Ponnam napisał(a): > > Here is the Request URL: > https://localhost/app/PerformLater.action?view=json&username=admin&password=password > Request Method: POST > > view=json&username=admin&password=password > *payload :* > > applicationName:Main > name:PING_IPADDRESSES > resources.crontab: > 14 23 12 2 0 > resources.description: > resources.invoke: > true > resources.visibility:USER_VIEWABLE > resources.runTaskNow:false > resources.scheduleTime:2023-2-12 23:14:55 IST > req.neInfo[0].ipAddress:10.51.251.90 > > > > This is the action configuration: > class="com.app.mvc.controller.useraction.soa.PerformLater"> > > > On Mon, Feb 13, 2023 at 8:48 PM Dave Newton wrote: > > > And what are you sending, what is the action, what is the action > > configuration? > > > > On Mon, Feb 13, 2023 at 09:48 Swapna Ponnam > > wrote: > > > > > while hitting the backens (action) call the error getting in the logs. > > > > > > On Mon, Feb 13, 2023 at 8:09 PM Dave Newton > > wrote: > > > > > > > And when does this happen? > > > > > > > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > > > > wrote: > > > > > > > > > Hi, > > > > > > > > > > > > > > > > > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30. > > > > > Please help me on this. > > > > > > > > > > INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - > > > Could > > > > > not create and/or set value back on to object > > > > > > > > > > java.lang.InstantiationException: java.io.Serializable > > > > > > > > > > at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332] > > > > > > > > > > at > > > > > > > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154) > > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > > > at > > > > > > > > > > > > > > > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152) > > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > > > at > > > > > > > > > > > > > > > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128) > > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > > > at > > > > > > > > > > > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39) > > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > > > at ognl.ASTProperty.getValueBody(ASTProperty.java:125) > > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > > > at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) > > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > > > at ognl.SimpleNode.getValue(SimpleNode.java:258) > > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > > > at ognl.ASTChain.setValueBody(ASTChain.java:222) > > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > > > at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) > > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > > > at ognl.SimpleNode.setValue(SimpleNode.java:308) > > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > > > at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?] > > > > > > > > > > at > > > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436) > > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > > > at > > > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428) > > > > > ~[struts2-core-2.5.30.jar:
Re: Getting InstantiatingNullHandler exception while using Struts2.5.30
Here is the Request URL: https://localhost/app/PerformLater.action?view=json&username=admin&password=password Request Method: POST view=json&username=admin&password=password *payload :* applicationName:Main name:PING_IPADDRESSES resources.crontab: 14 23 12 2 0 resources.description: resources.invoke: true resources.visibility:USER_VIEWABLE resources.runTaskNow:false resources.scheduleTime:2023-2-12 23:14:55 IST req.neInfo[0].ipAddress:10.51.251.90 This is the action configuration: On Mon, Feb 13, 2023 at 8:48 PM Dave Newton wrote: > And what are you sending, what is the action, what is the action > configuration? > > On Mon, Feb 13, 2023 at 09:48 Swapna Ponnam > wrote: > > > while hitting the backens (action) call the error getting in the logs. > > > > On Mon, Feb 13, 2023 at 8:09 PM Dave Newton > wrote: > > > > > And when does this happen? > > > > > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > > > wrote: > > > > > > > Hi, > > > > > > > > > > > > > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30. > > > > Please help me on this. > > > > > > > > INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - > > Could > > > > not create and/or set value back on to object > > > > > > > > java.lang.InstantiationException: java.io.Serializable > > > > > > > > at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332] > > > > > > > > at > > > > > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at ognl.ASTProperty.getValueBody(ASTProperty.java:125) > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > at ognl.SimpleNode.getValue(SimpleNode.java:258) > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > at ognl.ASTChain.setValueBody(ASTChain.java:222) > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > at ognl.SimpleNode.setValue(SimpleNode.java:308) > > > > ~[ognl-3.1.29.jar:?] > > > > > > > > at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?] > > > > > > > > at > > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at > > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at > > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at > > > > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186) > > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > > > at > > > > > > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setVal
Re: Getting InstantiatingNullHandler exception while using Struts2.5.30
pon., 13 lut 2023 o 15:48 Swapna Ponnam napisał(a): > > while hitting the backens (action) call the error getting in the logs. Do you mean the Back button in a browser? Regards -- Łukasz - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Getting InstantiatingNullHandler exception while using Struts2.5.30
And what are you sending, what is the action, what is the action configuration? On Mon, Feb 13, 2023 at 09:48 Swapna Ponnam wrote: > while hitting the backens (action) call the error getting in the logs. > > On Mon, Feb 13, 2023 at 8:09 PM Dave Newton wrote: > > > And when does this happen? > > > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > > wrote: > > > > > Hi, > > > > > > > > > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30. > > > Please help me on this. > > > > > > INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - > Could > > > not create and/or set value back on to object > > > > > > java.lang.InstantiationException: java.io.Serializable > > > > > > at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332] > > > > > > at > > > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at ognl.ASTProperty.getValueBody(ASTProperty.java:125) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.SimpleNode.getValue(SimpleNode.java:258) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.ASTChain.setValueBody(ASTChain.java:222) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.SimpleNode.setValue(SimpleNode.java:308) > > > ~[ognl-3.1.29.jar:?] > > > > > > at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?] > > > > > > at > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99) > > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > > > at > > > > > > > > > com.opensymphony.
Re: Getting InstantiatingNullHandler exception while using Struts2.5.30
while hitting the backens (action) call the error getting in the logs. On Mon, Feb 13, 2023 at 8:09 PM Dave Newton wrote: > And when does this happen? > > On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam > wrote: > > > Hi, > > > > > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30. > > Please help me on this. > > > > INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - Could > > not create and/or set value back on to object > > > > java.lang.InstantiationException: java.io.Serializable > > > > at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332] > > > > at > > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at ognl.ASTProperty.getValueBody(ASTProperty.java:125) > > ~[ognl-3.1.29.jar:?] > > > > at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) > > ~[ognl-3.1.29.jar:?] > > > > at ognl.SimpleNode.getValue(SimpleNode.java:258) > > ~[ognl-3.1.29.jar:?] > > > > at ognl.ASTChain.setValueBody(ASTChain.java:222) > > ~[ognl-3.1.29.jar:?] > > > > at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) > > ~[ognl-3.1.29.jar:?] > > > > at ognl.SimpleNode.setValue(SimpleNode.java:308) > > ~[ognl-3.1.29.jar:?] > > > > at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?] > > > > at > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) > > ~[struts2-core-2.5.30.jar:2.5.30] > > > > at > > > > > com.opensymphony.xwork2.interceptor.StaticParam
Re: Getting InstantiatingNullHandler exception while using Struts2.5.30
And when does this happen? On Mon, Feb 13, 2023 at 09:20 Swapna Ponnam wrote: > Hi, > > > > Getting InstantiatingNullHandler exception while using Struts2.5.30. > Please help me on this. > > INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - Could > not create and/or set value back on to object > > java.lang.InstantiationException: java.io.Serializable > > at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332] > > at > com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39) > ~[struts2-core-2.5.30.jar:2.5.30] > > at ognl.ASTProperty.getValueBody(ASTProperty.java:125) > ~[ognl-3.1.29.jar:?] > > at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) > ~[ognl-3.1.29.jar:?] > > at ognl.SimpleNode.getValue(SimpleNode.java:258) > ~[ognl-3.1.29.jar:?] > > at ognl.ASTChain.setValueBody(ASTChain.java:222) > ~[ognl-3.1.29.jar:?] > > at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) > ~[ognl-3.1.29.jar:?] > > at ognl.SimpleNode.setValue(SimpleNode.java:308) > ~[ognl-3.1.29.jar:?] > > at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?] > > at > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133) > ~[struts2-core-2.5.30.jar:2.5.30] > > at > > com.opensymphony.xwork2.DefaultActionInvocation.inv
Getting InstantiatingNullHandler exception while using Struts2.5.30
Hi, Getting InstantiatingNullHandler exception while using Struts2.5.30. Please help me on this. INFO [STDOUT] 10:21:48.145 [http-0.0.0.0-8443-3] ERROR com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler - Could not create and/or set value back on to object java.lang.InstantiationException: java.io.Serializable at java.lang.Class.newInstance(Class.java:427) ~[?:1.8.0_332] at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:154) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:152) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:128) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:39) ~[struts2-core-2.5.30.jar:2.5.30] at ognl.ASTProperty.getValueBody(ASTProperty.java:125) ~[ognl-3.1.29.jar:?] at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212) ~[ognl-3.1.29.jar:?] at ognl.SimpleNode.getValue(SimpleNode.java:258) ~[ognl-3.1.29.jar:?] at ognl.ASTChain.setValueBody(ASTChain.java:222) ~[ognl-3.1.29.jar:?] at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:220) ~[ognl-3.1.29.jar:?] at ognl.SimpleNode.setValue(SimpleNode.java:308) ~[ognl-3.1.29.jar:?] at ognl.Ognl.setValue(Ognl.java:780) ~[ognl-3.1.29.jar:?] at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:436) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.ognl.OgnlUtil$1.execute(OgnlUtil.java:428) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecute(OgnlUtil.java:523) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.ognl.OgnlUtil.setValue(OgnlUtil.java:428) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:186) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:173) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:157) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:214) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:132) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:140) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:99) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:201) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) ~[struts2-core-2.5.30.jar:2.5.30] at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:67) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) ~[struts2-core-2.5.30.jar:2.5.30] at org.apache.struts2.interceptor.DateTextFieldInterceptor.intercept(DateTextFieldInterceptor.java:133) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) ~[struts2-core-2.5.30.jar:2.5.30] at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:89) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) ~[struts2-core-2.5.30.jar:2.5.30] at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:321) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:101) ~[struts2-core-2.5.30.jar:2.5.30] at com.opensymphony.xwork2
Re: Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
hi! issue created: https://github.com/struts-community-plugins/struts2-jquery/issues/316 thanks! El mar, 27 sept 2022 a la(s) 08:07, Lukasz Lenart (lukaszlen...@apache.org) escribió: > wt., 27 wrz 2022 o 12:31 Matias Rodriguez > napisał(a): > > > > Yes, sure, I mean, even tho I wanted to point out the issue as it just > > comes out of the box -a common (no rare) configuration-. Thanks again > > Ok, I think it would be good to report this issue here [1] as well, > there are already a few issues addressed so this will be a good to > know information once a new release pops up > > [1] https://github.com/struts-community-plugins/struts2-jquery/issues > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
wt., 27 wrz 2022 o 12:31 Matias Rodriguez napisał(a): > > Yes, sure, I mean, even tho I wanted to point out the issue as it just > comes out of the box -a common (no rare) configuration-. Thanks again Ok, I think it would be good to report this issue here [1] as well, there are already a few issues addressed so this will be a good to know information once a new release pops up [1] https://github.com/struts-community-plugins/struts2-jquery/issues Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
Yes, sure, I mean, even tho I wanted to point out the issue as it just comes out of the box -a common (no rare) configuration-. Thanks again El mar., 27 de septiembre de 2022 04:25, Lukasz Lenart < lukaszlen...@apache.org> escribió: > wt., 27 wrz 2022 o 08:35 Matias Rodriguez > napisał(a): > > > > But the 6.0.0 version is not using the right DTD, and causes the > exception. > > Remember that I'm using the struts2-jquery-plugin:5.0.0 (latest), and it > > uses the velocity plugin 6.0.0. > > You can override the dependency, if you are using Maven just add > with the Velocity plugin or you can exclude it if not > using Velocity > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
wt., 27 wrz 2022 o 08:35 Matias Rodriguez napisał(a): > > But the 6.0.0 version is not using the right DTD, and causes the exception. > Remember that I'm using the struts2-jquery-plugin:5.0.0 (latest), and it > uses the velocity plugin 6.0.0. You can override the dependency, if you are using Maven just add with the Velocity plugin or you can exclude it if not using Velocity Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
But the 6.0.0 version is not using the right DTD, and causes the exception. Remember that I'm using the struts2-jquery-plugin:5.0.0 (latest), and it uses the velocity plugin 6.0.0. El mar., 27 de septiembre de 2022 03:22, Lukasz Lenart < lukaszlen...@apache.org> escribió: > wt., 27 wrz 2022 o 08:10 Matias Rodriguez > napisał(a): > > > > Thanks Lukasz! I'm using the right one (6.0), but the issue is in the > > velocity plugin > > Are you sure? Version 6.0.3 is using a proper one > > https://github.com/apache/struts/blob/STRUTS_6_0_3/plugins/velocity/src/main/resources/struts-plugin.xml#L22-L24 > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
wt., 27 wrz 2022 o 08:10 Matias Rodriguez napisał(a): > > Thanks Lukasz! I'm using the right one (6.0), but the issue is in the > velocity plugin Are you sure? Version 6.0.3 is using a proper one https://github.com/apache/struts/blob/STRUTS_6_0_3/plugins/velocity/src/main/resources/struts-plugin.xml#L22-L24 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
Thanks Lukasz! I'm using the right one (6.0), but the issue is in the velocity plugin El mar., 27 de septiembre de 2022 02:41, Lukasz Lenart < lukaszlen...@apache.org> escribió: > wt., 27 wrz 2022 o 03:52 Matias Rodriguez > napisał(a): > > Caused by: java.io.FileNotFoundException: > > http://struts.apache.org/dtds/struts-2.6.dtd > > > > the problem seems to be related to a struts2-jquery-plugin dependency: > > struts2-velocity-plugin:6.0.0, because it tries to use a non-existent DTD > > (404): http://struts.apache.org/dtds/struts-2.6.dtd > > Use https - http isn't supported anymore, also please use > struts-6.0.dtd as documented here: > > https://cwiki.apache.org/confluence/display/WW/Struts+2.5+to+6.0.0+migration#Struts2.5to6.0.0migration-DTD > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
wt., 27 wrz 2022 o 03:52 Matias Rodriguez napisał(a): > Caused by: java.io.FileNotFoundException: > http://struts.apache.org/dtds/struts-2.6.dtd > > the problem seems to be related to a struts2-jquery-plugin dependency: > struts2-velocity-plugin:6.0.0, because it tries to use a non-existent DTD > (404): http://struts.apache.org/dtds/struts-2.6.dtd Use https - http isn't supported anymore, also please use struts-6.0.dtd as documented here: https://cwiki.apache.org/confluence/display/WW/Struts+2.5+to+6.0.0+migration#Struts2.5to6.0.0migration-DTD Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts 6.0.3 + struts2-jquery-plugin 5.0.0 = exception on initialization
hi! I'm getting the following warning: [WARN ] 2022-09-26 22:46:37.547 [main] (DomHelper.java:355) - Local DTD is missing for publicID: -//Apache Software Foundation//DTD Struts Configuration 2.6//EN - defined mappings: {-//Apache Software Foundation//DTD Struts Configuration 2.0//EN=struts-2.0.dtd, -//Apache Software Foundation//DTD Struts Configuration 2.1//EN=struts-2.1.dtd, -//Apache Software Foundation//DTD Struts Configuration 2.3//EN=struts-2.3.dtd, -//Apache Software Foundation//DTD Struts Configuration 2.1.7//EN=struts-2.1.7.dtd, -//Apache Software Foundation//DTD Struts Configuration 2.5//EN=struts-2.5.dtd, -//Apache Software Foundation//DTD Struts Configuration 6.0//EN=struts-6.0.dtd} followed by an exception: [ERROR] 2022-09-26 22:46:37.594 [main] (Dispatcher.java:565) - Dispatcher initialization failed com.opensymphony.xwork2.config.ConfigurationException: Unable to load configuration. ... Caused by: java.io.FileNotFoundException: http://struts.apache.org/dtds/struts-2.6.dtd the problem seems to be related to a struts2-jquery-plugin dependency: struts2-velocity-plugin:6.0.0, because it tries to use a non-existent DTD (404): http://struts.apache.org/dtds/struts-2.6.dtd thanks!
Re: Struts 6.0.0 Upgrade issue: Security Exception for s:select list attribute that is quite long
wt., 12 lip 2022 o 21:44 Krishnaraj Viswanathan napisał(a): > > Hi, > We upgrade our dev environment from Struts 2.5.30 to Struts 6.0.0 > and we found that our "s:select" tag with a "list" attribute of time > intervals (list="#{'12:00':'12:00 PM', '12:30':'12:30 PM', '13:00':'1:00 > PM',... covering the whole day) is now throwing a security Exception as below As you already know, this is a default limitation of an expression length, due to security reasons. I would suggest moving this list into an action basically - you can cover it with test as well Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Struts 6.0.0 Upgrade issue: Security Exception for s:select list attribute that is quite long
Raised this in Stackoverflow and got to know the recent security changes for OGNL https://struts.apache.org/security/#apply-a-maximum-allowed-length-on-ognl-expressions I will work on getting this expression into a variable. ~K -Original Message- From: Krishnaraj Viswanathan Sent: 12 July 2022 18:08 To: user@struts.apache.org Subject: [External] : Struts 6.0.0 Upgrade issue: Security Exception for s:select list attribute that is quite long Hi, We upgrade our dev environment from Struts 2.5.30 to Struts 6.0.0 and we found that our "s:select" tag with a "list" attribute of time intervals (list="#{'12:00':'12:00 PM', '12:30':'12:30 PM', '13:00':'1:00 PM',... covering the whole day) is now throwing a security Exception as below ognl.OgnlException: Parsing blocked due to security reasons! Caused by: java.lang.SecurityException: This expression exceeded maximum allowed length: #{'12:00':'12:00 PM', '12:30':'12:30 PM', '13:00':'1:00 PM','13:30':'1:30 PM', Is it possible to relax this validation temporarily for my specific tag or would it be easier if I look for alternatives in implementing this for Struts 6.0.0. ~Krishnaraj V - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts 6.0.0 Upgrade issue: Security Exception for s:select list attribute that is quite long
Hi, We upgrade our dev environment from Struts 2.5.30 to Struts 6.0.0 and we found that our "s:select" tag with a "list" attribute of time intervals (list="#{'12:00':'12:00 PM', '12:30':'12:30 PM', '13:00':'1:00 PM',... covering the whole day) is now throwing a security Exception as below ognl.OgnlException: Parsing blocked due to security reasons! Caused by: java.lang.SecurityException: This expression exceeded maximum allowed length: #{'12:00':'12:00 PM', '12:30':'12:30 PM', '13:00':'1:00 PM','13:30':'1:30 PM', Is it possible to relax this validation temporarily for my specific tag or would it be easier if I look for alternatives in implementing this for Struts 6.0.0. ~Krishnaraj V
Re: spring struts 2: Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy164
I am back to *no* longer using the spring+struts plugin. I chose to have actions be created by the struts framework instaead to avoid issues. Sent from Outlook From: Christoph Nenning Sent: Monday, July 31, 2017 3:49 AM To: Struts Users Mailing List Subject: Re: spring struts 2: Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy164 Hi, seems to me like a issue with spring setup. Can you share that? Regards, Christoph > From: Rubens Gomes > To: "user@struts.apache.org" , > Date: 30.07.2017 22:54 > Subject: spring struts 2: Unexpected Exception caught setting > 'lang' on 'class com.sun.proxy.$Proxy164 > > I am using the Spring + Struts 2 Plugin, and I am getting an error > from the Struts2 ParameterInteceptor (see below) when setting > request parameters sent on the URL. My Actions are being created by > the Spring factory. And I *do* have the proper properties setters > in my class (see below). > > In the URL below, the "lang" and "redirectURL" , both lang/ > redirectURL are not being set. > > http://localhost:8080/locale/change-locale.do?lang=en&redirectURL=% > 2Fsecurity%2Fview-login.do > > > 07-30 13:49:05.187 DEBUG [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Setting params lang => enredirectURL => > 07-30 13:49:05.188 DEBUG [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Parameter [lang] was accepted and > will be appended to action! > 07-30 13:49:05.188 DEBUG [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Parameter [redirectURL] was accepted > and will be appended to action! > ... > 07-30 13:49:05.235 ERROR [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Developer Notification (set > struts.devMode to false to disable this message): > Unexpected Exception caught setting 'lang' on 'class com.sun.proxy. > $Proxy164: Error setting expression 'lang' with value ['en', ] > 07-30 13:49:05.236 DEBUG [http-nio-8080-exec-5] > c.o.x.c.i.InstantiatingNullHandler - Entering nullPropertyValue > [target=[com.ezlista.web.struts2.action.ChangeLocaleAction@4bfd8bce, > com.opensymphony.xwork2.DefaultTextProvider@18e0976d], property=devmode] > 07-30 13:49:05.245 ERROR [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Developer Notification (set > struts.devMode to false to disable this message): > Unexpected Exception caught setting 'redirectURL' on 'class > com.sun.proxy.$Proxy164: Error setting expression 'redirectURL' with > value ['', ] > > > > @Scope("request") > @Controller > @SuppressWarnings("serial") > @Namespace("/locale") > @Results( { > @Result(name=Action.INPUT, > location="/error.do", > type="dispatcher"), > @Result(name=Action.SUCCESS, > location="${redirectURL}", > type="dispatcher") > } ) > public class ChangeLocaleAction extends BaseAction > { > private String lang; > private String redirectURL; > > > public ChangeLocaleAction() > { > super(); > } > > >@Override > public String execute() > { > // code not displayed > } > > > /** > * @return the redirectURL > */ > public String getRedirectURL() > { > return redirectURL; > } > > > > /** > * @param url the redirectURL to set > */ > public void setRedirectURL(String url) > { > // _->>>>>> NOT BEING CALLED <<<< > this.redirectURL = url; > } > > > /** > * @return the lang > */ > public String getLang() > { > return lang; > } > > > /** > * @param lang the lang to set > */ > public void setLang(String lang) > { > // _->>>>>> NOT BEING CALLED <<<< > this.lang = lang; > } > > } > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > This Email was scanned by Sophos Anti Virus - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: spring struts 2: Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy164
Hi, seems to me like a issue with spring setup. Can you share that? Regards, Christoph > From: Rubens Gomes > To: "user@struts.apache.org" , > Date: 30.07.2017 22:54 > Subject: spring struts 2: Unexpected Exception caught setting > 'lang' on 'class com.sun.proxy.$Proxy164 > > I am using the Spring + Struts 2 Plugin, and I am getting an error > from the Struts2 ParameterInteceptor (see below) when setting > request parameters sent on the URL. My Actions are being created by > the Spring factory. And I *do* have the proper properties setters > in my class (see below). > > In the URL below, the "lang" and "redirectURL" , both lang/ > redirectURL are not being set. > > http://localhost:8080/locale/change-locale.do?lang=en&redirectURL=% > 2Fsecurity%2Fview-login.do > > > 07-30 13:49:05.187 DEBUG [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Setting params lang => enredirectURL => > 07-30 13:49:05.188 DEBUG [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Parameter [lang] was accepted and > will be appended to action! > 07-30 13:49:05.188 DEBUG [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Parameter [redirectURL] was accepted > and will be appended to action! > ... > 07-30 13:49:05.235 ERROR [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Developer Notification (set > struts.devMode to false to disable this message): > Unexpected Exception caught setting 'lang' on 'class com.sun.proxy. > $Proxy164: Error setting expression 'lang' with value ['en', ] > 07-30 13:49:05.236 DEBUG [http-nio-8080-exec-5] > c.o.x.c.i.InstantiatingNullHandler - Entering nullPropertyValue > [target=[com.ezlista.web.struts2.action.ChangeLocaleAction@4bfd8bce, > com.opensymphony.xwork2.DefaultTextProvider@18e0976d], property=devmode] > 07-30 13:49:05.245 ERROR [http-nio-8080-exec-5] > c.o.x.i.ParametersInterceptor - Developer Notification (set > struts.devMode to false to disable this message): > Unexpected Exception caught setting 'redirectURL' on 'class > com.sun.proxy.$Proxy164: Error setting expression 'redirectURL' with > value ['', ] > > > > @Scope("request") > @Controller > @SuppressWarnings("serial") > @Namespace("/locale") > @Results( { > @Result(name=Action.INPUT, > location="/error.do", > type="dispatcher"), > @Result(name=Action.SUCCESS, > location="${redirectURL}", > type="dispatcher") > } ) > public class ChangeLocaleAction extends BaseAction > { > private String lang; > private String redirectURL; > > > public ChangeLocaleAction() > { > super(); > } > > >@Override > public String execute() > { > // code not displayed > } > > > /** > * @return the redirectURL > */ > public String getRedirectURL() > { > return redirectURL; > } > > > > /** > * @param url the redirectURL to set > */ > public void setRedirectURL(String url) > { > // _->>>>>> NOT BEING CALLED <<<< > this.redirectURL = url; > } > > > /** > * @return the lang > */ > public String getLang() > { > return lang; > } > > > /** > * @param lang the lang to set > */ > public void setLang(String lang) > { > // _->>>>>> NOT BEING CALLED <<<< > this.lang = lang; > } > > } > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > This Email was scanned by Sophos Anti Virus
spring struts 2: Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy164
I am using the Spring + Struts 2 Plugin, and I am getting an error from the Struts2 ParameterInteceptor (see below) when setting request parameters sent on the URL. My Actions are being created by the Spring factory. And I *do* have the proper properties setters in my class (see below). In the URL below, the "lang" and "redirectURL" , both lang/redirectURL are not being set. http://localhost:8080/locale/change-locale.do?lang=en&redirectURL=%2Fsecurity%2Fview-login.do 07-30 13:49:05.187 DEBUG [http-nio-8080-exec-5] c.o.x.i.ParametersInterceptor - Setting params lang => enredirectURL => 07-30 13:49:05.188 DEBUG [http-nio-8080-exec-5] c.o.x.i.ParametersInterceptor - Parameter [lang] was accepted and will be appended to action! 07-30 13:49:05.188 DEBUG [http-nio-8080-exec-5] c.o.x.i.ParametersInterceptor - Parameter [redirectURL] was accepted and will be appended to action! ... 07-30 13:49:05.235 ERROR [http-nio-8080-exec-5] c.o.x.i.ParametersInterceptor - Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'lang' on 'class com.sun.proxy.$Proxy164: Error setting expression 'lang' with value ['en', ] 07-30 13:49:05.236 DEBUG [http-nio-8080-exec-5] c.o.x.c.i.InstantiatingNullHandler - Entering nullPropertyValue [target=[com.ezlista.web.struts2.action.ChangeLocaleAction@4bfd8bce, com.opensymphony.xwork2.DefaultTextProvider@18e0976d], property=devmode] 07-30 13:49:05.245 ERROR [http-nio-8080-exec-5] c.o.x.i.ParametersInterceptor - Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'redirectURL' on 'class com.sun.proxy.$Proxy164: Error setting expression 'redirectURL' with value ['', ] @Scope("request") @Controller @SuppressWarnings("serial") @Namespace("/locale") @Results( { @Result(name=Action.INPUT, location="/error.do", type="dispatcher"), @Result(name=Action.SUCCESS, location="${redirectURL}", type="dispatcher") } ) public class ChangeLocaleAction extends BaseAction { private String lang; private String redirectURL; public ChangeLocaleAction() { super(); } @Override public String execute() { // code not displayed } /** * @return the redirectURL */ public String getRedirectURL() { return redirectURL; } /** * @param url the redirectURL to set */ public void setRedirectURL(String url) { // _->>>>>> NOT BEING CALLED <<<< this.redirectURL = url; } /** * @return the lang */ public String getLang() { return lang; } /** * @param lang the lang to set */ public void setLang(String lang) { // _->>>>>> NOT BEING CALLED <<<< this.lang = lang; } } - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Specific Exception Handling
2016-03-22 21:13 GMT+01:00 José Antonio Delgado Trujillo : > In the example of exception - handling explains how to configure an > specific exception for an action. > > It is simple, only write the exception-mapping into the action node. But i > don't know how it works and why we need two result nodes. > You can define exception-mapping in two places: package-wide and action-wide when action-wide takes precedence over package-wide > > [image: Imágenes integradas 1] > > I understood that if the method throwSecurityException of the Register > class throws SecurityBreachException, the action returns the result login > and then it redirects to login.jsp but: > Nope, it doesn't return "login" result, it throws the SecurityBreachException and now framework catches it and search for matching exception-mapping based on the exception's class > >- In which part of the app use the URL action actionspecificexeption? > > Here https://github.com/apache/struts-examples/blob/master/exception-handling/src/main/webapp/index.jsp#L30 > >- >- If the method throwsSecurityException always throws >SecurityBreachException why do we need the other result? > > To simulate real life app ;-) Normally methods don't throw exception all the time Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/
RE: Specific Exception Handling
Date: Tue, 22 Mar 2016 20:13:37 + Subject: Specific Exception Handling From: jadt...@gmail.com To: user@struts.apache.org In the example of exception - handling explains how to configure an specific exception for an action. It is simple, only write the exception-mapping into the action node. But i don't know how it works and why we need two result nodes. I understood that if the method throwSecurityException of the Register class throws SecurityBreachException, the action returns the result login and then it redirects to login.jsp but: In which part of the app use the URL action actionspecificexeption? MG>when op first executes login.jsp as seen below: /register.jsp /login.jsp If the method throwsSecurityException always throws SecurityBreachException why do we need the other result? MG>/register.jsp is default result when processed by org.apache.struts.register.action.Register that returns SUCCESS MG>https://struts.apache.org/docs/exception-handling.html -- Un saludo,José A. MG>¿Claro?MG>/Saludos Cordiales/MG>Martín
Re: Specific Exception Handling
OK, I saw in the github the URL cause actions exceptions in the index,jsp but i dont't still understand the two result in the actionspecificexption. 2016-03-22 20:13 GMT+00:00 José Antonio Delgado Trujillo : > In the example of exception - handling explains how to configure an > specific exception for an action. > > It is simple, only write the exception-mapping into the action node. But i > don't know how it works and why we need two result nodes. > > [image: Imágenes integradas 1] > > I understood that if the method throwSecurityException of the Register > class throws SecurityBreachException, the action returns the result login > and then it redirects to login.jsp but: > > >- In which part of the app use the URL action actionspecificexeption? >- If the method throwsSecurityException always throws >SecurityBreachException why do we need the other result? > > > > -- > Un saludo, > José A. > -- Un saludo, José A.
Specific Exception Handling
In the example of exception - handling explains how to configure an specific exception for an action. It is simple, only write the exception-mapping into the action node. But i don't know how it works and why we need two result nodes. [image: Imágenes integradas 1] I understood that if the method throwSecurityException of the Register class throws SecurityBreachException, the action returns the result login and then it redirects to login.jsp but: - In which part of the app use the URL action actionspecificexeption? - If the method throwsSecurityException always throws SecurityBreachException why do we need the other result? -- Un saludo, José A.
RE: OGNL error --- Unexpected Exception caught setting ... on 'class.........
> > private String[] publisherName; //why is this an Array of String instead of > > String publisherName; I had it as String but after seeing the error I modified it to String[] and tried that. > MG>where are you setting the publisherName?.. in constructor of > Action class? I did not set the default value. Tried to submit without any value and was getting error. > MG>where is your subscribe javascript function? do have the subscribe javascript functions. But it's still not working I do have the subscribe javascript functions as below. Tried similar to the one in example and later modified too. I tried doing this onSelectTopics of first autocompleter to select value of the second autocompleter but didn't work. Any suggessions? First autocompleter Second autocompleter $.subscribe('publisherDescChange', function(event, data) { var ui = event.originalEvent.ui;var message = ui.item.value; if(ui.item.key) { message = '( '+ ui.item.key +' ) '+message; } $('#topics').html(''+message+''); }); $.subscribe('publisherDescFocus', function(event, data) { var ui = event.originalEvent.ui;var message = ui.item.value; if(ui.item.key) { message = '( '+ ui.item.key +' ) '+message; } $('#topics').html(''+message+''); }); $.subscribe('publisherDescSelect', function(event, data) { var ui = event.originalEvent.ui;var message = ui.item.value; if(ui.item.key) { message = '( '+ ui.item.key +' ) '+message; } $('#topics').html(''+message+''); }); > From: mgai...@hotmail.com > To: user@struts.apache.org > Subject: RE: OGNL error --- Unexpected Exception caught setting ... on > 'class. > Date: Wed, 26 Aug 2015 21:10:52 -0400 > > > > > > From: zy...@hotmail.com > > To: user@struts.apache.org > > Subject: OGNL error --- Unexpected Exception caught setting ... on > > 'class. > > Date: Wed, 26 Aug 2015 19:42:36 -0400 > > > > Have a Publisher class with attributes > > Publisher --->class > > name > > code > > > > Action class > > private String[] publisherName; //why is this an Array of > > String instead of String publisherName; > MG>where are you setting the publisherName?.. in constructor of > Action class? > > > List publishers= new ArrayList(); > > > > getters and setters for the same too in it. > > > > > > JSP > > > id="publisherNameId" > > > > name="publisherName" > > > > list="%{publishers}" > > > > listValue="name" > > > > listKey="code" > > > > listLabel="code" > > > > selectBox="true" > > > > selectBoxIcon="true" > > > > key="label.publisherName" > > > > onChangeTopics="publisherNameChange" > > > > onFocusTopics="publisherNameFocus" > > > > onSelectTopics="publisherNameSelect" > > > > size="34" > > > > maxlength="34" > > > > /> > MG>where is your subscribe javascript function? > > > > When I don't select anything in autocompleter and submit the form seeing > > this in console > > Unexpected Exception caught setting 'publisherName' on 'class > > com.xxx.createAction: Error setting expression 'publisherName' with value > > ['', ] > > > > when I select something in autocompleter and submit the form seeing this in > > console > > Unexpected Exception caught setting 'publisherName' on 'class > > com.xxx.createAction: Error setting expression 'publisherName' with value > > ['macode2', ] > > Unexpected Exception caught setting 'publisherName_widget' on 'class > > com.xxx.createAction: Error setting expression 'publisherName_widget' with > > value ['macode2', ] > > MG>Looks like corruption of values for variables publisherName and > publisherName_widget > MG>can you get a senior guy from your team to oversee what you're doing? > > > > Is this the right way to declare in the Action class for autocompleter? > MG>if none of your action variables are populated then the answer would be no > > > Please need help on this. > > > > >
RE: OGNL error --- Unexpected Exception caught setting ... on 'class.........
> From: zy...@hotmail.com > To: user@struts.apache.org > Subject: OGNL error --- Unexpected Exception caught setting ... on > 'class. > Date: Wed, 26 Aug 2015 19:42:36 -0400 > > Have a Publisher class with attributes > Publisher --->class > name > code > > Action class > private String[] publisherName; //why is this an Array of String > instead of String publisherName; MG>where are you setting the publisherName?.. in constructor of Action class? > List publishers= new ArrayList(); > > getters and setters for the same too in it. > > > JSP >id="publisherNameId" > > name="publisherName" > > list="%{publishers}" > > listValue="name" > > listKey="code" > > listLabel="code" > > selectBox="true" > > selectBoxIcon="true" > > key="label.publisherName" > > onChangeTopics="publisherNameChange" > > onFocusTopics="publisherNameFocus" > > onSelectTopics="publisherNameSelect" > > size="34" > > maxlength="34" > > /> MG>where is your subscribe javascript function? > > When I don't select anything in autocompleter and submit the form seeing this > in console > Unexpected Exception caught setting 'publisherName' on 'class > com.xxx.createAction: Error setting expression 'publisherName' with value > ['', ] > > when I select something in autocompleter and submit the form seeing this in > console > Unexpected Exception caught setting 'publisherName' on 'class > com.xxx.createAction: Error setting expression 'publisherName' with value > ['macode2', ] > Unexpected Exception caught setting 'publisherName_widget' on 'class > com.xxx.createAction: Error setting expression 'publisherName_widget' with > value ['macode2', ] MG>Looks like corruption of values for variables publisherName and publisherName_widget MG>can you get a senior guy from your team to oversee what you're doing? > > Is this the right way to declare in the Action class for autocompleter? MG>if none of your action variables are populated then the answer would be no > Please need help on this. > >
OGNL error --- Unexpected Exception caught setting ... on 'class.........
Have a Publisher class with attributes Publisher --->class name code Action class private String[] publisherName; List publishers= new ArrayList(); getters and setters for the same too in it. JSP When I don't select anything in autocompleter and submit the form seeing this in console Unexpected Exception caught setting 'publisherName' on 'class com.xxx.createAction: Error setting expression 'publisherName' with value ['', ] when I select something in autocompleter and submit the form seeing this in console Unexpected Exception caught setting 'publisherName' on 'class com.xxx.createAction: Error setting expression 'publisherName' with value ['macode2', ] Unexpected Exception caught setting 'publisherName_widget' on 'class com.xxx.createAction: Error setting expression 'publisherName_widget' with value ['macode2', ] Is this the right way to declare in the Action class for autocompleter? Please need help on this.
Re: Forward to exception page instead of result in case of ognl runtime exception ?
Define validation for this field, then you will get validation error and Struts will forward to input result 2014-06-12 7:48 GMT+02:00 Mohit Gupta : > I have below action class where customerId is integer. If i pass customerId > as string from UI(I know it should not be allowed but there are > ways user can do it), i get exception ognl.MethodFailedException: . Please > find stack trace at last > @Results({ > @Result(name = "displayCustomer", location = "customer.jsp") > }) > public class CustomerAction{ > private int customerId = -1; > @Action("getCustomer!getCustomer") > public String getCustomer() { > > return "displayCustomer"; > } > >public int getCustomerId() { > return customerId; > } > > public void setCustomerId(int customerId) { > this.customerId = customerId; > } > > > } > Stack Trace > 2014-06-12 09:58:33,725 [http-8080-6] WARN ognl.OgnlValueStack - Error > setting expression 'customerId' with value '[Ljava.lang.String;@35997e91' > ognl.MethodFailedException: Method "setCustomerId" failed for object > com.test.struts2fw.actions.CustomerAction@48819db7 > [java.lang.NoSuchMethodException: > com.test.struts2fw.actions.CustomerAction.setCustomerId([Ljava.lang.String;)] > at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305) > at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494) > at > ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85) > at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162) > at > com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27) > at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332) > at > com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:78) > at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332) > at ognl.ASTProperty.setValueBody(ASTProperty.java:127) > 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:218) > at > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) > at > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) > at > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) > at > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318) > Once this exception is encountered, it take flow to customer.jsp. What i > want is flow go to my Exception.jsp instead of result in case > of some ognl/struts 2 exception? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Forward to exception page instead of result in case of ognl runtime exception ?
I have below action class where customerId is integer. If i pass customerId as string from UI(I know it should not be allowed but there are ways user can do it), i get exception ognl.MethodFailedException: . Please find stack trace at last @Results({ @Result(name = "displayCustomer", location = "customer.jsp") }) public class CustomerAction{ private int customerId = -1; @Action("getCustomer!getCustomer") public String getCustomer() { return "displayCustomer"; } public int getCustomerId() { return customerId; } public void setCustomerId(int customerId) { this.customerId = customerId; } } Stack Trace 2014-06-12 09:58:33,725 [http-8080-6] WARN ognl.OgnlValueStack - Error setting expression 'customerId' with value '[Ljava.lang.String;@35997e91' ognl.MethodFailedException: Method "setCustomerId" failed for object com.test.struts2fw.actions.CustomerAction@48819db7 [java.lang.NoSuchMethodException: com.test.struts2fw.actions.CustomerAction.setCustomerId([Ljava.lang.String;)] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1305) at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1494) at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85) at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162) at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:27) at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332) at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:78) at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2332) at ognl.ASTProperty.setValueBody(ASTProperty.java:127) 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:218) at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:318) Once this exception is encountered, it take flow to customer.jsp. What i want is flow go to my Exception.jsp instead of result in case of some ognl/struts 2 exception?
Re: Sending email on uncought exception problems
The first thought I had was also that this might be better suited on an interceptor. You'll also have more control over the desired behaviour since interceptors are more easily testable than JSPs. Miguel On Tue, 2013-11-26 at 09:43 -0500, Dave Newton wrote: > Why not use an interceptor? > > Dave > > > > On Tue, Nov 26, 2013 at 7:44 AM, Lukasz Lichota > wrote: > > > hello, > > > > I'd like to run some java code on any uncought exception but so far I > > cannot find a solution. > > Under this link I found the exactly same question but I do not know how to > > apply solution. > > > > http://markmail.org/search/?q=global+exception+redirect+list%3Aorg.apache.struts.users%2F#query:global%20exception%20redirect%20list%3Aorg.apache.struts.users%2F+page:1+mid:wmzqlmfqpzd57dhg+state:results > > > > Namely if I have > > > > then in which class this method should be? Error.jsp is not associated with > > any action. The author says he has this method in any Action class but for > > me it doesn't work (how could it work anyway? how error.jsp know about any > > Action class? > > > > I tried also s:action element like that: > > > > %{exception} > > > > and having java class with method like that: > > @Action("default-error") > > public boolean notifyAdmin(Exception exception) > > > > but it fails with no error message so I even do not know what is happening > > (by failing I mean nothing is invoked when rendering the error page) > > > > I also found this > > http://www.mkyong.com/struts/struts-global-custom-exception-example/ but > > it > > looks like exception handler was removed in struts 2.0 > > > > Can you offer any hint? > > > > Thanks > > Lukasz > > > > -- > > Notice: This email is confidential and may contain copyright material of > > Ocado Limited (the "Company"). Opinions and views expressed in this message > > may not necessarily reflect the opinions and views of the Company. > > > > If you are not the intended recipient, please notify us immediately and > > delete all copies of this message. Please note that it is your > > responsibility to scan this message for viruses. > > > > Company reg. no. 3875000. > > > > Ocado Limited > > Titan Court > > 3 Bishops Square > > Hatfield Business Park > > Hatfield > > Herts > > AL10 9NE > > > > >
Re: Sending email on uncought exception problems
2013/11/26 Lukasz Lichota : > I tried it but it did not work (unless I did something wrong). If any > action is on ValueStack, why should I add it to base class and not to any > random action I pick up? ValueStack is per created per request, so you don't know which action exactly it will be. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Sending email on uncought exception problems
Why not use an interceptor? Dave On Tue, Nov 26, 2013 at 7:44 AM, Lukasz Lichota wrote: > hello, > > I'd like to run some java code on any uncought exception but so far I > cannot find a solution. > Under this link I found the exactly same question but I do not know how to > apply solution. > > http://markmail.org/search/?q=global+exception+redirect+list%3Aorg.apache.struts.users%2F#query:global%20exception%20redirect%20list%3Aorg.apache.struts.users%2F+page:1+mid:wmzqlmfqpzd57dhg+state:results > > Namely if I have > > then in which class this method should be? Error.jsp is not associated with > any action. The author says he has this method in any Action class but for > me it doesn't work (how could it work anyway? how error.jsp know about any > Action class? > > I tried also s:action element like that: > > %{exception} > > and having java class with method like that: > @Action("default-error") > public boolean notifyAdmin(Exception exception) > > but it fails with no error message so I even do not know what is happening > (by failing I mean nothing is invoked when rendering the error page) > > I also found this > http://www.mkyong.com/struts/struts-global-custom-exception-example/ but > it > looks like exception handler was removed in struts 2.0 > > Can you offer any hint? > > Thanks > Lukasz > > -- > Notice: This email is confidential and may contain copyright material of > Ocado Limited (the "Company"). Opinions and views expressed in this message > may not necessarily reflect the opinions and views of the Company. > > If you are not the intended recipient, please notify us immediately and > delete all copies of this message. Please note that it is your > responsibility to scan this message for viruses. > > Company reg. no. 3875000. > > Ocado Limited > Titan Court > 3 Bishops Square > Hatfield Business Park > Hatfield > Herts > AL10 9NE > -- e: davelnew...@gmail.com m: 908-380-8699 s: davelnewton_skype t: @dave_newton <https://twitter.com/dave_newton> b: Bucky Bits <http://buckybits.blogspot.com/> g: davelnewton <https://github.com/davelnewton> so: Dave Newton <http://stackoverflow.com/users/438992/dave-newton>
Re: Sending email on uncought exception problems
On 26 November 2013 15:29, Lukasz Lenart wrote: > > Any action is always available on ValueStack, so you must add > notifyAdmin(exception) to the base action class. > > I tried it but it did not work (unless I did something wrong). If any action is on ValueStack, why should I add it to base class and not to any random action I pick up? Thanks Lukasz -- Notice: This email is confidential and may contain copyright material of Ocado Limited (the "Company"). Opinions and views expressed in this message may not necessarily reflect the opinions and views of the Company. If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses. Company reg. no. 3875000. Ocado Limited Titan Court 3 Bishops Square Hatfield Business Park Hatfield Herts AL10 9NE
Re: Sending email on uncought exception problems
2013/11/26 Lukasz Lichota : > hello, > > I'd like to run some java code on any uncought exception but so far I > cannot find a solution. > Under this link I found the exactly same question but I do not know how to > apply solution. > http://markmail.org/search/?q=global+exception+redirect+list%3Aorg.apache.struts.users%2F#query:global%20exception%20redirect%20list%3Aorg.apache.struts.users%2F+page:1+mid:wmzqlmfqpzd57dhg+state:results > > Namely if I have > > then in which class this method should be? Error.jsp is not associated with > any action. The author says he has this method in any Action class but for > me it doesn't work (how could it work anyway? how error.jsp know about any > Action class? > > I tried also s:action element like that: > > %{exception} > > and having java class with method like that: > @Action("default-error") > public boolean notifyAdmin(Exception exception) > > but it fails with no error message so I even do not know what is happening > (by failing I mean nothing is invoked when rendering the error page) > > I also found this > http://www.mkyong.com/struts/struts-global-custom-exception-example/ but it > looks like exception handler was removed in struts 2.0 > > Can you offer any hint? Any action is always available on ValueStack, so you must add notifyAdmin(exception) to the base action class. Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Sending email on uncought exception problems
hello, I'd like to run some java code on any uncought exception but so far I cannot find a solution. Under this link I found the exactly same question but I do not know how to apply solution. http://markmail.org/search/?q=global+exception+redirect+list%3Aorg.apache.struts.users%2F#query:global%20exception%20redirect%20list%3Aorg.apache.struts.users%2F+page:1+mid:wmzqlmfqpzd57dhg+state:results Namely if I have then in which class this method should be? Error.jsp is not associated with any action. The author says he has this method in any Action class but for me it doesn't work (how could it work anyway? how error.jsp know about any Action class? I tried also s:action element like that: %{exception} and having java class with method like that: @Action("default-error") public boolean notifyAdmin(Exception exception) but it fails with no error message so I even do not know what is happening (by failing I mean nothing is invoked when rendering the error page) I also found this http://www.mkyong.com/struts/struts-global-custom-exception-example/ but it looks like exception handler was removed in struts 2.0 Can you offer any hint? Thanks Lukasz -- Notice: This email is confidential and may contain copyright material of Ocado Limited (the "Company"). Opinions and views expressed in this message may not necessarily reflect the opinions and views of the Company. If you are not the intended recipient, please notify us immediately and delete all copies of this message. Please note that it is your responsibility to scan this message for viruses. Company reg. no. 3875000. Ocado Limited Titan Court 3 Bishops Square Hatfield Business Park Hatfield Herts AL10 9NE
Antwort: Showing Action Exception as Ajax Errors
> Hi, > > We are using struts2 JSONValidationWithInterceptor. This interceptor > grabs the errors from validation and convert them to json message > How can we have same feature! An interceptor which grabs the action > exceptions and serialize them as json errors. > > I try below interceptor. When an exception happens it works, when > there are no errors and I should pass {} to response it is not working! > ___ > > String target=Action.NONE; > try { > target=invocation.invoke(); > response.getWriter().print("{}"); > response.setContentType("application/json"); > return target; > } > invocation.invoke() does these things: - execute remaining interceptors - execute action - execute result (e.g. rendering a JSP) - execute remaining interceptors again (what they do after invocation.invoke()) So, when no exception is thrown the response has already been created and the lines response.getWriter().print("{}"); response.setContentType("application/json"); have no effect. You can try to change the action to return Action.NONE This Email was scanned by Sophos Anti Virus
Showing Action Exception as Ajax Errors
Hi, We are using struts2 JSONValidationWithInterceptor. This interceptor grabs the errors from validation and convert them to json message How can we have same feature! An interceptor which grabs the action exceptions and serialize them as json errors. I try below interceptor. When an exception happens it works, when there are no errors and I should pass {} to response it is not working! ___ String target=Action.NONE; try { target=invocation.invoke(); response.getWriter().print("{}"); response.setContentType("application/json"); return target; } catch (BussinessException ex) { StringBuilder sb = new StringBuilder(); sb.append("{ "); sb.append("\"errors\": [\""); sb.append("Bussiness Exception Happend"); sb.append("\"]}"); response.setContentType("application/json"); response.getWriter().print(sb.toString()); return Action.NONE; } ~Regards, ~~Alireza Fattahi
Re: How to avoid ognl exception.
too much re factoring also confuses and makes it a great burden for maintainers. If it is a simple 2-3 form fields that i am not using then let them be there. It is because the 2-3 fields that are not used in one action will be used in another action for the same form. we have different modes. in "xx" mode it could be the same jsp but we dont use all the form fields of it but if it is "aa" mode then we use all the form fields of the same jsp. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* On Mon, Nov 11, 2013 at 2:54 PM, Antonios Gkogkakis wrote: > why don't you refactor your form and extract common functionality, so you > don't have unused fields being submitted. You or whoever maintains your > code will thank you some day. > > > Antonios > > > On 11 November 2013 06:02, Yaragalla Muralidhar > wrote: > > > Ya but if i don't do anything why should i have unnecessary setters in my > > action. I am not arguing but it does not make sense to have just setters > > which does nothing. > > > > *Thanks and Regards,* > > Muralidhar Yaragalla. > > > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* > > > > > > On Sun, Nov 10, 2013 at 10:38 PM, Dale Newfield > wrote: > > > > > "No-op" means "no operation", or "do nothing". > > > -Dale > > > > > > > On Nov 10, 2013, at 11:28 AM, Yaragalla Muralidhar < > > > yaragallamur...@gmail.com> wrote: > > > > > > > > I am not sure what "op" means but i don't have setters for those > > > properties > > > > and even the properties itself are not there. > > > > > > > > *Thanks and Regards,* > > > > Muralidhar Yaragalla. > > > > > > > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* > > > > > > > > > > > >> On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield > > > wrote: > > > >> > > > >> And/or add no-op setters in your actions. > > > >> -Dale > > > >> > > > >>> On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote: > > > >>> > > > >>> Set dev mode false and this shd go > > > >>> Sent from BlackBerry® on Airtel > > > >>> > > > >>> -Original Message- > > > >>> From: Yaragalla Muralidhar > > > >>> Date: Sun, 10 Nov 2013 21:50:03 > > > >>> To: Struts Users Mailing List > > > >>> Reply-To: "Struts Users Mailing List" > > > >>> Subject: How to avoid ognl exception. > > > >>> > > > >>> Hi I have few form fields defined in my html but there is no > > > >> corresponding > > > >>> property in action. I am purposefully not defining them. Why i am > > doing > > > >>> this is the same form can be submitted to two different actions > based > > > on > > > >>> the requirement. so one action needs few and the other action needs > > few > > > >>> form fields. In this case i always get the following exception. > After > > > >> this > > > >>> exception the server response time is getting very low so how can i > > > avoid > > > >>> getting this exception. If there are corresponding properties in > > action > > > >> the > > > >>> struts have to set the values and if not it has to be silent. It > > should > > > >> not > > > >>> display the following exception. Kindly help me. > > > >>> > > > >>> 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer > > > >> Notification > > > >>> (set struts.devMode to false to disable this message): > > > >>> Unexpected Exception caught setting 'searchTerms.studentId' on > 'class > > > >>> com.opensymphony.xwork2.ActionSupport: Error setting expression > > > >>> 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' > > > >>> 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting > > expression > > > >>> 'searchTerms.toAcademicYear' with value > '[Ljava.lang.String;@69b8b810 > > ' > > > >>> ognl.OgnlException:
Re: How to avoid ognl exception.
why don't you refactor your form and extract common functionality, so you don't have unused fields being submitted. You or whoever maintains your code will thank you some day. Antonios On 11 November 2013 06:02, Yaragalla Muralidhar wrote: > Ya but if i don't do anything why should i have unnecessary setters in my > action. I am not arguing but it does not make sense to have just setters > which does nothing. > > *Thanks and Regards,* > Muralidhar Yaragalla. > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* > > > On Sun, Nov 10, 2013 at 10:38 PM, Dale Newfield wrote: > > > "No-op" means "no operation", or "do nothing". > > -Dale > > > > > On Nov 10, 2013, at 11:28 AM, Yaragalla Muralidhar < > > yaragallamur...@gmail.com> wrote: > > > > > > I am not sure what "op" means but i don't have setters for those > > properties > > > and even the properties itself are not there. > > > > > > *Thanks and Regards,* > > > Muralidhar Yaragalla. > > > > > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* > > > > > > > > >> On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield > > wrote: > > >> > > >> And/or add no-op setters in your actions. > > >> -Dale > > >> > > >>> On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote: > > >>> > > >>> Set dev mode false and this shd go > > >>> Sent from BlackBerry® on Airtel > > >>> > > >>> -Original Message- > > >>> From: Yaragalla Muralidhar > > >>> Date: Sun, 10 Nov 2013 21:50:03 > > >>> To: Struts Users Mailing List > > >>> Reply-To: "Struts Users Mailing List" > > >>> Subject: How to avoid ognl exception. > > >>> > > >>> Hi I have few form fields defined in my html but there is no > > >> corresponding > > >>> property in action. I am purposefully not defining them. Why i am > doing > > >>> this is the same form can be submitted to two different actions based > > on > > >>> the requirement. so one action needs few and the other action needs > few > > >>> form fields. In this case i always get the following exception. After > > >> this > > >>> exception the server response time is getting very low so how can i > > avoid > > >>> getting this exception. If there are corresponding properties in > action > > >> the > > >>> struts have to set the values and if not it has to be silent. It > should > > >> not > > >>> display the following exception. Kindly help me. > > >>> > > >>> 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer > > >> Notification > > >>> (set struts.devMode to false to disable this message): > > >>> Unexpected Exception caught setting 'searchTerms.studentId' on 'class > > >>> com.opensymphony.xwork2.ActionSupport: Error setting expression > > >>> 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' > > >>> 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting > expression > > >>> 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810 > ' > > >>> ognl.OgnlException: target is null for setProperty(null, > > >> "toAcademicYear", > > >>> [Ljava.lang.String;@69b8b810) > > >>> at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326) > > >>> 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:224) > > >>> at > > >> > > > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) > > >>> at > > >> > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) > > >>>
Re: How to avoid ognl exception.
Ya but if i don't do anything why should i have unnecessary setters in my action. I am not arguing but it does not make sense to have just setters which does nothing. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* On Sun, Nov 10, 2013 at 10:38 PM, Dale Newfield wrote: > "No-op" means "no operation", or "do nothing". > -Dale > > > On Nov 10, 2013, at 11:28 AM, Yaragalla Muralidhar < > yaragallamur...@gmail.com> wrote: > > > > I am not sure what "op" means but i don't have setters for those > properties > > and even the properties itself are not there. > > > > *Thanks and Regards,* > > Muralidhar Yaragalla. > > > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* > > > > > >> On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield > wrote: > >> > >> And/or add no-op setters in your actions. > >> -Dale > >> > >>> On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote: > >>> > >>> Set dev mode false and this shd go > >>> Sent from BlackBerry® on Airtel > >>> > >>> -Original Message- > >>> From: Yaragalla Muralidhar > >>> Date: Sun, 10 Nov 2013 21:50:03 > >>> To: Struts Users Mailing List > >>> Reply-To: "Struts Users Mailing List" > >>> Subject: How to avoid ognl exception. > >>> > >>> Hi I have few form fields defined in my html but there is no > >> corresponding > >>> property in action. I am purposefully not defining them. Why i am doing > >>> this is the same form can be submitted to two different actions based > on > >>> the requirement. so one action needs few and the other action needs few > >>> form fields. In this case i always get the following exception. After > >> this > >>> exception the server response time is getting very low so how can i > avoid > >>> getting this exception. If there are corresponding properties in action > >> the > >>> struts have to set the values and if not it has to be silent. It should > >> not > >>> display the following exception. Kindly help me. > >>> > >>> 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer > >> Notification > >>> (set struts.devMode to false to disable this message): > >>> Unexpected Exception caught setting 'searchTerms.studentId' on 'class > >>> com.opensymphony.xwork2.ActionSupport: Error setting expression > >>> 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' > >>> 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting expression > >>> 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810' > >>> ognl.OgnlException: target is null for setProperty(null, > >> "toAcademicYear", > >>> [Ljava.lang.String;@69b8b810) > >>> at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326) > >>> 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:224) > >>> at > >> > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) > >>> at > >> > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) > >>> at > >> > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) > >>> at > >> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) > >>> at > >> > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) > >>> at > >> > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) > >>> at > >> > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > >>> at > >> > com.opensymphony.
Re: How to avoid ognl exception.
"No-op" means "no operation", or "do nothing". -Dale > On Nov 10, 2013, at 11:28 AM, Yaragalla Muralidhar > wrote: > > I am not sure what "op" means but i don't have setters for those properties > and even the properties itself are not there. > > *Thanks and Regards,* > Muralidhar Yaragalla. > > *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* > > >> On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield wrote: >> >> And/or add no-op setters in your actions. >> -Dale >> >>> On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote: >>> >>> Set dev mode false and this shd go >>> Sent from BlackBerry® on Airtel >>> >>> -Original Message- >>> From: Yaragalla Muralidhar >>> Date: Sun, 10 Nov 2013 21:50:03 >>> To: Struts Users Mailing List >>> Reply-To: "Struts Users Mailing List" >>> Subject: How to avoid ognl exception. >>> >>> Hi I have few form fields defined in my html but there is no >> corresponding >>> property in action. I am purposefully not defining them. Why i am doing >>> this is the same form can be submitted to two different actions based on >>> the requirement. so one action needs few and the other action needs few >>> form fields. In this case i always get the following exception. After >> this >>> exception the server response time is getting very low so how can i avoid >>> getting this exception. If there are corresponding properties in action >> the >>> struts have to set the values and if not it has to be silent. It should >> not >>> display the following exception. Kindly help me. >>> >>> 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer >> Notification >>> (set struts.devMode to false to disable this message): >>> Unexpected Exception caught setting 'searchTerms.studentId' on 'class >>> com.opensymphony.xwork2.ActionSupport: Error setting expression >>> 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' >>> 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting expression >>> 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810' >>> ognl.OgnlException: target is null for setProperty(null, >> "toAcademicYear", >>> [Ljava.lang.String;@69b8b810) >>> at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326) >>> 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:224) >>> at >> com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) >>> at >> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) >>> at >> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) >>> at >> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) >>> at >> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) >>> at >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) >>> at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>> at >> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249) >>> at >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) >>> at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>> at >> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) >>> at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>> at >> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) >>> at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>> at >> org.apache.s
Re: How to avoid ognl exception.
I am not sure what "op" means but i don't have setters for those properties and even the properties itself are not there. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* On Sun, Nov 10, 2013 at 9:54 PM, Dale Newfield wrote: > And/or add no-op setters in your actions. > -Dale > > > On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote: > > > > Set dev mode false and this shd go > > Sent from BlackBerry® on Airtel > > > > -Original Message- > > From: Yaragalla Muralidhar > > Date: Sun, 10 Nov 2013 21:50:03 > > To: Struts Users Mailing List > > Reply-To: "Struts Users Mailing List" > > Subject: How to avoid ognl exception. > > > > Hi I have few form fields defined in my html but there is no > corresponding > > property in action. I am purposefully not defining them. Why i am doing > > this is the same form can be submitted to two different actions based on > > the requirement. so one action needs few and the other action needs few > > form fields. In this case i always get the following exception. After > this > > exception the server response time is getting very low so how can i avoid > > getting this exception. If there are corresponding properties in action > the > > struts have to set the values and if not it has to be silent. It should > not > > display the following exception. Kindly help me. > > > > 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer > Notification > > (set struts.devMode to false to disable this message): > > Unexpected Exception caught setting 'searchTerms.studentId' on 'class > > com.opensymphony.xwork2.ActionSupport: Error setting expression > > 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' > > 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting expression > > 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810' > > ognl.OgnlException: target is null for setProperty(null, > "toAcademicYear", > > [Ljava.lang.String;@69b8b810) > > at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326) > > 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:224) > > at > > > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) > > at > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) > > at > > > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) > > at > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) > > at > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) > > at > > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) > > at > > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > > at > > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249) > > at > > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) > > at > > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > > at > > > com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) > > at > > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > > at > > > org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) > > at > > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > > at > > > org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) > > at > > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > > at > > > org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) > >
Re: How to avoid ognl exception.
And/or add no-op setters in your actions. -Dale > On Nov 10, 2013, at 11:22 AM, umeshawas...@gmail.com wrote: > > Set dev mode false and this shd go > Sent from BlackBerry® on Airtel > > -Original Message- > From: Yaragalla Muralidhar > Date: Sun, 10 Nov 2013 21:50:03 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: How to avoid ognl exception. > > Hi I have few form fields defined in my html but there is no corresponding > property in action. I am purposefully not defining them. Why i am doing > this is the same form can be submitted to two different actions based on > the requirement. so one action needs few and the other action needs few > form fields. In this case i always get the following exception. After this > exception the server response time is getting very low so how can i avoid > getting this exception. If there are corresponding properties in action the > struts have to set the values and if not it has to be silent. It should not > display the following exception. Kindly help me. > > 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer Notification > (set struts.devMode to false to disable this message): > Unexpected Exception caught setting 'searchTerms.studentId' on 'class > com.opensymphony.xwork2.ActionSupport: Error setting expression > 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' > 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting expression > 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810' > ognl.OgnlException: target is null for setProperty(null, "toAcademicYear", > [Ljava.lang.String;@69b8b810) > at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326) > 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:224) > at > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) > at > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) > at > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) > at > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) > at > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) > at > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249) > at > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) > at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > com.opensymphony.xwork2.interceptor.PrepareInterceptor.d
Re: How to avoid ognl exception.
Ok. Thank u so much. *Thanks and Regards,* Muralidhar Yaragalla. *http://yaragalla.blogspot.in/ <http://yaragalla.blogspot.in/>* On Sun, Nov 10, 2013 at 9:52 PM, wrote: > Set dev mode false and this shd go > Sent from BlackBerry® on Airtel > > -Original Message- > From: Yaragalla Muralidhar > Date: Sun, 10 Nov 2013 21:50:03 > To: Struts Users Mailing List > Reply-To: "Struts Users Mailing List" > Subject: How to avoid ognl exception. > > Hi I have few form fields defined in my html but there is no corresponding > property in action. I am purposefully not defining them. Why i am doing > this is the same form can be submitted to two different actions based on > the requirement. so one action needs few and the other action needs few > form fields. In this case i always get the following exception. After this > exception the server response time is getting very low so how can i avoid > getting this exception. If there are corresponding properties in action the > struts have to set the values and if not it has to be silent. It should not > display the following exception. Kindly help me. > > 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer Notification > (set struts.devMode to false to disable this message): > Unexpected Exception caught setting 'searchTerms.studentId' on 'class > com.opensymphony.xwork2.ActionSupport: Error setting expression > 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' > 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting expression > 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810' > ognl.OgnlException: target is null for setProperty(null, "toAcademicYear", > [Ljava.lang.String;@69b8b810) > at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326) > 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:224) > at > > com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) > at > > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) > at > > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) > at > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) > at > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) > at > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249) > at > > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > > com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > > org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > > org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > > org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > > com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > > com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) > at > > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) > at > > com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(Chaini
Re: How to avoid ognl exception.
Set dev mode false and this shd go Sent from BlackBerry® on Airtel -Original Message- From: Yaragalla Muralidhar Date: Sun, 10 Nov 2013 21:50:03 To: Struts Users Mailing List Reply-To: "Struts Users Mailing List" Subject: How to avoid ognl exception. Hi I have few form fields defined in my html but there is no corresponding property in action. I am purposefully not defining them. Why i am doing this is the same form can be submitted to two different actions based on the requirement. so one action needs few and the other action needs few form fields. In this case i always get the following exception. After this exception the server response time is getting very low so how can i avoid getting this exception. If there are corresponding properties in action the struts have to set the values and if not it has to be silent. It should not display the following exception. Kindly help me. 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'searchTerms.studentId' on 'class com.opensymphony.xwork2.ActionSupport: Error setting expression 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting expression 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810' ognl.OgnlException: target is null for setProperty(null, "toAcademicYear", [Ljava.lang.String;@69b8b810) at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326) 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:224) at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 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:246) at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony
How to avoid ognl exception.
Hi I have few form fields defined in my html but there is no corresponding property in action. I am purposefully not defining them. Why i am doing this is the same form can be submitted to two different actions based on the requirement. so one action needs few and the other action needs few form fields. In this case i always get the following exception. After this exception the server response time is getting very low so how can i avoid getting this exception. If there are corresponding properties in action the struts have to set the values and if not it has to be silent. It should not display the following exception. Kindly help me. 2013-11-10 21:43:37 ERROR ParametersInterceptor:34 - Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'searchTerms.studentId' on 'class com.opensymphony.xwork2.ActionSupport: Error setting expression 'searchTerms.studentId' with value '[Ljava.lang.String;@9a7d59b' 2013-11-10 21:43:37 WARN OgnlValueStack:60 - Error setting expression 'searchTerms.toAcademicYear' with value '[Ljava.lang.String;@69b8b810' ognl.OgnlException: target is null for setProperty(null, "toAcademicYear", [Ljava.lang.String;@69b8b810) at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2326) 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:224) at com.opensymphony.xwork2.ognl.OgnlValueStack.trySetValue(OgnlValueStack.java:187) at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:174) at com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:249) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:191) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:252) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) 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:246) at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) at com.open
Re: JavaScript errors on exception-handling.html
Hallo Volker, Thanks, I was writing this in the same time Some HTML pages in WW/docs give sometimes an ( alert? ) error and yon can't see the data For example, Coding Struts 2 Actions, docs/WW/docs/coding-struts-2-actions.html, The same error: -- SyntaxHighlighter Can't find brush for: xml - THe data , in a script syntax like this one : --- <![CDATA[ &lt;action name="hello" class="org.apache.struts.helloworld.action.HelloWorldAction" method="execute"&gt; &lt;result name="success"&gt;/HelloWorld.jsp&lt;/result&gt; &lt;/action&gt; ]]> What about ? De : Volker Krebs À : Struts Users Mailing List Envoyé le : Jeudi 5 septembre 2013 9h08 Objet : JavaScript errors on exception-handling.html Hello, the Exception Handling Documentation Page <http://struts.apache.org/release/2.3.x/docs/exception-handling.html> has some JavaScript Errors. I stumbled over this a couple of weeks ago ... and now again. So I thought I'll write it to the list, hoping to reach someone who can fix it. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: JavaScript errors on exception-handling.html
Yes, we know that and it's already solved - please check the Draft docs http://struts.apache.org/development/2.x/docs/exception-handling.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/9/5 Volker Krebs : > Hello, > the Exception Handling Documentation Page > <http://struts.apache.org/release/2.3.x/docs/exception-handling.html> > has some JavaScript Errors. > > I stumbled over this a couple of weeks ago ... and now again. So I thought > I'll write it to the list, hoping to reach someone who can fix it. > > Regards > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
JavaScript errors on exception-handling.html
Hello, the Exception Handling Documentation Page <http://struts.apache.org/release/2.3.x/docs/exception-handling.html> has some JavaScript Errors. I stumbled over this a couple of weeks ago ... and now again. So I thought I'll write it to the list, hoping to reach someone who can fix it. Regards - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 Exception Handling
I need one more help regarding performance tuning for struts2, do you have any latest good link for it. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun 21, 2013 at 12:36 PM, Sreekanth S. Nair < sreekanth.n...@egovernments.org> wrote: > Yeah lukasz, you are correct i was working with devMode set to true, when > i made it to false the custom exception page is coming.. Thanks a lot for > reminding me this simple mistake. > > -- > Thanks & Regards > Srikanth > Software Developer > > eGovernments Foundations > www.egovernments.org > Mob : 9980078913 > > > > On Fri, Jun 21, 2013 at 12:27 PM, Lukasz Lenart > wrote: > >> Do you have devMode set to true? Which stack do you use in struts.xml? >> >> >> Regards >> -- >> Łukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> 2013/6/21 Sreekanth S. Nair : >> > Okay, but the error page i'm getting is default error page not the >> custom >> > error page (more over i'm not using exceptionStack in my custom error >> page) >> > >> > -- >> > Thanks & Regards >> > Srikanth >> > Software Developer >> > >> > eGovernments Foundations >> > www.egovernments.org >> > Mob : 9980078913 >> > ---- >> > >> > >> > On Fri, Jun 21, 2013 at 12:14 PM, Lukasz Lenart < >> lukaszlen...@apache.org>wrote: >> > >> >> There is nothing like CatchAll in Struts 2, you define result per >> >> exception type >> >> >> >> >> >> > >> >> exception="org.apache.struts.register.exceptions.SecurityBreachException" >> >> result="securityerror" /> >> >> > /> >> >> >> >> >> >> so all other exceptions than SecurityBreachException will be directed >> >> to result "error" and error.jsp prints the stacktrace as well: >> >> >> >> Exception Details: >> >> >> >> so maybe remove that line and your are done. >> >> >> >> >> >> Regards >> >> -- >> >> Łukasz >> >> mobile +48 606 323 122 http://www.lenart.org.pl/ >> >> >> >> 2013/6/21 Sreekanth S. Nair : >> >> > Hi Lukasz, >> >> > Thanks for your replay, i did the same way only, but >> >> there >> >> > are some exception still going uncaught and showing the stacktrace to >> >> view. >> >> > There was something called CatchAll, can you please tell me how to >> do it. >> >> > >> >> > -- >> >> > Thanks & Regards >> >> > Srikanth >> >> > Software Developer >> >> > >> >> > eGovernments Foundations >> >> > www.egovernments.org >> >> > Mob : 9980078913 >> >> > >> >> > >> >> > >> >> > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart < >> lukaszlen...@apache.org >> >> >wrote: >> >> > >> >> >> 2013/6/21 Sreekanth S. Nair : >> >> >> > Hi, >> >> >> > Can anyone point me a tutorial or reference for how to handle >> >> >> exception >> >> >> > (uncaught or all exception). There are so many tutorial available >> >> online >> >> >> > but all are different. >> >> >> >> >> >> >> http://struts.apache.org/development/2.x/docs/exception-handling.html >> >> >> >> >> >> >> >> >> Regards >> >> >> -- >> >> >> Łukasz >> >> >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> >> >> >> >> >> - >> >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> >> >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> >> >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >
Re: Struts2 Exception Handling
Yeah lukasz, you are correct i was working with devMode set to true, when i made it to false the custom exception page is coming.. Thanks a lot for reminding me this simple mistake. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun 21, 2013 at 12:27 PM, Lukasz Lenart wrote: > Do you have devMode set to true? Which stack do you use in struts.xml? > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2013/6/21 Sreekanth S. Nair : > > Okay, but the error page i'm getting is default error page not the custom > > error page (more over i'm not using exceptionStack in my custom error > page) > > > > -- > > Thanks & Regards > > Srikanth > > Software Developer > > > > eGovernments Foundations > > www.egovernments.org > > Mob : 9980078913 > > > > > > > > On Fri, Jun 21, 2013 at 12:14 PM, Lukasz Lenart >wrote: > > > >> There is nothing like CatchAll in Struts 2, you define result per > >> exception type > >> > >> > >> >> > exception="org.apache.struts.register.exceptions.SecurityBreachException" > >> result="securityerror" /> > >> > >> > >> > >> so all other exceptions than SecurityBreachException will be directed > >> to result "error" and error.jsp prints the stacktrace as well: > >> > >> Exception Details: > >> > >> so maybe remove that line and your are done. > >> > >> > >> Regards > >> -- > >> Łukasz > >> mobile +48 606 323 122 http://www.lenart.org.pl/ > >> > >> 2013/6/21 Sreekanth S. Nair : > >> > Hi Lukasz, > >> > Thanks for your replay, i did the same way only, but > >> there > >> > are some exception still going uncaught and showing the stacktrace to > >> view. > >> > There was something called CatchAll, can you please tell me how to do > it. > >> > > >> > -- > >> > Thanks & Regards > >> > Srikanth > >> > Software Developer > >> > > >> > eGovernments Foundations > >> > www.egovernments.org > >> > Mob : 9980078913 > >> > > >> > > >> > > >> > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart < > lukaszlen...@apache.org > >> >wrote: > >> > > >> >> 2013/6/21 Sreekanth S. Nair : > >> >> > Hi, > >> >> > Can anyone point me a tutorial or reference for how to handle > >> >> exception > >> >> > (uncaught or all exception). There are so many tutorial available > >> online > >> >> > but all are different. > >> >> > >> >> > http://struts.apache.org/development/2.x/docs/exception-handling.html > >> >> > >> >> > >> >> Regards > >> >> -- > >> >> Łukasz > >> >> + 48 606 323 122 http://www.lenart.org.pl/ > >> >> > >> >> - > >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> >> For additional commands, e-mail: user-h...@struts.apache.org > >> >> > >> >> > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > >> > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Struts2 Exception Handling
Do you have devMode set to true? Which stack do you use in struts.xml? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/21 Sreekanth S. Nair : > Okay, but the error page i'm getting is default error page not the custom > error page (more over i'm not using exceptionStack in my custom error page) > > -- > Thanks & Regards > Srikanth > Software Developer > > eGovernments Foundations > www.egovernments.org > Mob : 9980078913 > > > > On Fri, Jun 21, 2013 at 12:14 PM, Lukasz Lenart > wrote: > >> There is nothing like CatchAll in Struts 2, you define result per >> exception type >> >> >> > exception="org.apache.struts.register.exceptions.SecurityBreachException" >> result="securityerror" /> >> >> >> >> so all other exceptions than SecurityBreachException will be directed >> to result "error" and error.jsp prints the stacktrace as well: >> >> Exception Details: >> >> so maybe remove that line and your are done. >> >> >> Regards >> -- >> Łukasz >> mobile +48 606 323 122 http://www.lenart.org.pl/ >> >> 2013/6/21 Sreekanth S. Nair : >> > Hi Lukasz, >> > Thanks for your replay, i did the same way only, but >> there >> > are some exception still going uncaught and showing the stacktrace to >> view. >> > There was something called CatchAll, can you please tell me how to do it. >> > >> > -- >> > Thanks & Regards >> > Srikanth >> > Software Developer >> > ---- >> > eGovernments Foundations >> > www.egovernments.org >> > Mob : 9980078913 >> > >> > >> > >> > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart > >wrote: >> > >> >> 2013/6/21 Sreekanth S. Nair : >> >> > Hi, >> >> > Can anyone point me a tutorial or reference for how to handle >> >> exception >> >> > (uncaught or all exception). There are so many tutorial available >> online >> >> > but all are different. >> >> >> >> http://struts.apache.org/development/2.x/docs/exception-handling.html >> >> >> >> >> >> Regards >> >> -- >> >> Łukasz >> >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> >> >> - >> >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >> >> >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 Exception Handling
Okay, but the error page i'm getting is default error page not the custom error page (more over i'm not using exceptionStack in my custom error page) -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun 21, 2013 at 12:14 PM, Lukasz Lenart wrote: > There is nothing like CatchAll in Struts 2, you define result per > exception type > > > exception="org.apache.struts.register.exceptions.SecurityBreachException" > result="securityerror" /> > > > > so all other exceptions than SecurityBreachException will be directed > to result "error" and error.jsp prints the stacktrace as well: > > Exception Details: > > so maybe remove that line and your are done. > > > Regards > -- > Łukasz > mobile +48 606 323 122 http://www.lenart.org.pl/ > > 2013/6/21 Sreekanth S. Nair : > > Hi Lukasz, > > Thanks for your replay, i did the same way only, but > there > > are some exception still going uncaught and showing the stacktrace to > view. > > There was something called CatchAll, can you please tell me how to do it. > > > > -- > > Thanks & Regards > > Srikanth > > Software Developer > > > > eGovernments Foundations > > www.egovernments.org > > Mob : 9980078913 > > ---- > > > > > > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart >wrote: > > > >> 2013/6/21 Sreekanth S. Nair : > >> > Hi, > >> > Can anyone point me a tutorial or reference for how to handle > >> exception > >> > (uncaught or all exception). There are so many tutorial available > online > >> > but all are different. > >> > >> http://struts.apache.org/development/2.x/docs/exception-handling.html > >> > >> > >> Regards > >> -- > >> Łukasz > >> + 48 606 323 122 http://www.lenart.org.pl/ > >> > >> - > >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > >> For additional commands, e-mail: user-h...@struts.apache.org > >> > >> > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Struts2 Exception Handling
There is nothing like CatchAll in Struts 2, you define result per exception type so all other exceptions than SecurityBreachException will be directed to result "error" and error.jsp prints the stacktrace as well: Exception Details: so maybe remove that line and your are done. Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ 2013/6/21 Sreekanth S. Nair : > Hi Lukasz, > Thanks for your replay, i did the same way only, but there > are some exception still going uncaught and showing the stacktrace to view. > There was something called CatchAll, can you please tell me how to do it. > > -- > Thanks & Regards > Srikanth > Software Developer > > eGovernments Foundations > www.egovernments.org > Mob : 9980078913 > > > > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart > wrote: > >> 2013/6/21 Sreekanth S. Nair : >> > Hi, >> > Can anyone point me a tutorial or reference for how to handle >> exception >> > (uncaught or all exception). There are so many tutorial available online >> > but all are different. >> >> http://struts.apache.org/development/2.x/docs/exception-handling.html >> >> >> Regards >> -- >> Łukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Struts2 Exception Handling
I already have the following settings in my struts.xml /error/genericError.jsp /error/accessdenied.jsp /error/invalidrequest.jsp /error/pageNotFound.jsp -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun 21, 2013 at 12:02 PM, Sreekanth S. Nair < sreekanth.n...@egovernments.org> wrote: > Hi Lukasz, > Thanks for your replay, i did the same way only, but there > are some exception still going uncaught and showing the stacktrace to view. > There was something called CatchAll, can you please tell me how to do it. > > -- > Thanks & Regards > Srikanth > Software Developer > > eGovernments Foundations > www.egovernments.org > Mob : 9980078913 > > > > On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart > wrote: > >> 2013/6/21 Sreekanth S. Nair : >> > Hi, >> > Can anyone point me a tutorial or reference for how to handle >> exception >> > (uncaught or all exception). There are so many tutorial available online >> > but all are different. >> >> http://struts.apache.org/development/2.x/docs/exception-handling.html >> >> >> Regards >> -- >> Łukasz >> + 48 606 323 122 http://www.lenart.org.pl/ >> >> - >> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org >> For additional commands, e-mail: user-h...@struts.apache.org >> >> >
Re: Struts2 Exception Handling
Hi Lukasz, Thanks for your replay, i did the same way only, but there are some exception still going uncaught and showing the stacktrace to view. There was something called CatchAll, can you please tell me how to do it. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun 21, 2013 at 11:50 AM, Lukasz Lenart wrote: > 2013/6/21 Sreekanth S. Nair : > > Hi, > > Can anyone point me a tutorial or reference for how to handle > exception > > (uncaught or all exception). There are so many tutorial available online > > but all are different. > > http://struts.apache.org/development/2.x/docs/exception-handling.html > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Struts2 Exception Handling
2013/6/21 Sreekanth S. Nair : > Hi, > Can anyone point me a tutorial or reference for how to handle exception > (uncaught or all exception). There are so many tutorial available online > but all are different. http://struts.apache.org/development/2.x/docs/exception-handling.html Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Struts2 Exception Handling
Hi, Can anyone point me a tutorial or reference for how to handle exception (uncaught or all exception). There are so many tutorial available online but all are different. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913
Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14
And the same here, JIRA issue related to this problem https://issues.apache.org/jira/browse/WW-4066 Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/10 CRANFORD, CHRIS : > We tried each release since 2.3.4 and all of them behave precisely the same > way regarding these forms. > > The only way we could get 2.3.14 (which is what we are testing) to work was > disable devmode and all functionality worked without ognl exceptions and > LocalizedTextUtil class exceptions and -1 out of bounds errors. > Sent from my Verizon Wireless BlackBerry > > -Original Message- > From: Lukasz Lenart > Date: Fri, 10 May 2013 06:51:52 > To: Struts Users Mailing List > Reply-To: Struts Users Mailing List > Subject: Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14 > > Thanks Chris! > > There was a security release between - 2.3.4.1 - have you tried it? > > > Regards > -- > Łukasz > + 48 606 323 122 http://www.lenart.org.pl/ > > 2013/5/8 CRANFORD, CHRIS : >> After some final digging, this appears to only surface in devMode=true on >> builds 2.3.12 and 2.3.14 regarding ParametersInterceptor.java:329. If this >> was related to the security fix for parameter names, wouldn't the >> exception/problem occur in both devMode and non-devMode? I'm confused as to >> what is the culprit here. >> >> -Original Message- >> From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] >> Sent: Wednesday, May 08, 2013 9:25 AM >> To: Struts Users Mailing List >> Subject: OGNL Exception after upgrading from 2.3.4 to 2.3.14 >> >> We have several forms in our Struts2 application that pass values to the >> action like the following: >> >> >> >> > com.setech.dw.inventory.web.ItemSearchAction: Error setting expression >> 'items[0]' with value '[Ljava.lang.String;@738b650c' >> File: OgnlRuntime.java >> Method: setProperty >> Line: 2326 - ognl/OgnlRuntime.java:2326:-1 >>at >> com.opensymphony.xwork2.ognl.OgnlValueStack.handleOgnlException(OgnlValueStack.java:215) >>at >> com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:176) >>at >> com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) >>at >> com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) >>at >> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) >>at >> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> com.setech.dw.common.web.interceptors.LocaleContextInterceptor.intercept(LocaleContextInterceptor.java:43) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> com.setech.dw.common.web.interceptors.MenuInterceptor.intercept(MenuInterceptor.java:58) >>at >> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >>at >> com.setech.dw.c
Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14
We tried each release since 2.3.4 and all of them behave precisely the same way regarding these forms. The only way we could get 2.3.14 (which is what we are testing) to work was disable devmode and all functionality worked without ognl exceptions and LocalizedTextUtil class exceptions and -1 out of bounds errors. Sent from my Verizon Wireless BlackBerry -Original Message- From: Lukasz Lenart Date: Fri, 10 May 2013 06:51:52 To: Struts Users Mailing List Reply-To: Struts Users Mailing List Subject: Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14 Thanks Chris! There was a security release between - 2.3.4.1 - have you tried it? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/8 CRANFORD, CHRIS : > After some final digging, this appears to only surface in devMode=true on > builds 2.3.12 and 2.3.14 regarding ParametersInterceptor.java:329. If this > was related to the security fix for parameter names, wouldn't the > exception/problem occur in both devMode and non-devMode? I'm confused as to > what is the culprit here. > > -Original Message- > From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] > Sent: Wednesday, May 08, 2013 9:25 AM > To: Struts Users Mailing List > Subject: OGNL Exception after upgrading from 2.3.4 to 2.3.14 > > We have several forms in our Struts2 application that pass values to the > action like the following: > > > >com.setech.dw.inventory.web.ItemSearchAction: Error setting expression > 'items[0]' with value '[Ljava.lang.String;@738b650c' > File: OgnlRuntime.java > Method: setProperty > Line: 2326 - ognl/OgnlRuntime.java:2326:-1 >at > com.opensymphony.xwork2.ognl.OgnlValueStack.handleOgnlException(OgnlValueStack.java:215) >at > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:176) >at > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) >at > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) >at > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) >at > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.LocaleContextInterceptor.intercept(LocaleContextInterceptor.java:43) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.MenuInterceptor.intercept(MenuInterceptor.java:58) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.AuditInterceptor.intercept(AuditInterceptor.java:81) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.TimerInterceptor.intercept(TimerInterceptor.java:141) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.SiteOverrideInterceptor.intercept(SiteOverrideInterceptor.java:63) >at > com.opensymphony.xwork2.DefaultActionInvocat
Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14
Thanks Chris! There was a security release between - 2.3.4.1 - have you tried it? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/8 CRANFORD, CHRIS : > After some final digging, this appears to only surface in devMode=true on > builds 2.3.12 and 2.3.14 regarding ParametersInterceptor.java:329. If this > was related to the security fix for parameter names, wouldn't the > exception/problem occur in both devMode and non-devMode? I'm confused as to > what is the culprit here. > > -Original Message- > From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] > Sent: Wednesday, May 08, 2013 9:25 AM > To: Struts Users Mailing List > Subject: OGNL Exception after upgrading from 2.3.4 to 2.3.14 > > We have several forms in our Struts2 application that pass values to the > action like the following: > > > >com.setech.dw.inventory.web.ItemSearchAction: Error setting expression > 'items[0]' with value '[Ljava.lang.String;@738b650c' > File: OgnlRuntime.java > Method: setProperty > Line: 2326 - ognl/OgnlRuntime.java:2326:-1 >at > com.opensymphony.xwork2.ognl.OgnlValueStack.handleOgnlException(OgnlValueStack.java:215) >at > com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:176) >at > com.opensymphony.xwork2.ognl.OgnlValueStack.setParameter(OgnlValueStack.java:152) >at > com.opensymphony.xwork2.interceptor.ParametersInterceptor.setParameters(ParametersInterceptor.java:329) >at > com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:241) >at > com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:73) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:91) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:193) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.LocaleContextInterceptor.intercept(LocaleContextInterceptor.java:43) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.MenuInterceptor.intercept(MenuInterceptor.java:58) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.AuditInterceptor.intercept(AuditInterceptor.java:81) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.TimerInterceptor.intercept(TimerInterceptor.java:141) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.SiteOverrideInterceptor.intercept(SiteOverrideInterceptor.java:63) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.LoggingInterceptor.intercept(LoggingInterceptor.java:88) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > com.setech.dw.common.web.interceptors.SeekExceptionInterceptor.intercept(SeekExceptionInterceptor.java:48) >at > com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:246) >at > org.apac
RE: OGNL Exception after upgrading from 2.3.4 to 2.3.14
After some final digging, this appears to only surface in devMode=true on builds 2.3.12 and 2.3.14 regarding ParametersInterceptor.java:329. If this was related to the security fix for parameter names, wouldn't the exception/problem occur in both devMode and non-devMode? I'm confused as to what is the culprit here. -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Wednesday, May 08, 2013 9:25 AM To: Struts Users Mailing List Subject: OGNL Exception after upgrading from 2.3.4 to 2.3.14 We have several forms in our Struts2 application that pass values to the action like the following: property and never has. Is there something I may have missed that I need to change from upgrading from 2.3.4 to 2.3.14? Thanks, Chris Email secured by Check Point - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: OGNL Exception after upgrading from 2.3.4 to 2.3.14
I should note that the setItems() method and List variable are on the model object exposed by the ModelDriven<> interface. -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Wednesday, May 08, 2013 9:25 AM To: Struts Users Mailing List Subject: OGNL Exception after upgrading from 2.3.4 to 2.3.14 We have several forms in our Struts2 application that pass values to the action like the following: property and never has. Is there something I may have missed that I need to change from upgrading from 2.3.4 to 2.3.14? Thanks, Chris Email secured by Check Point - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown
Hi, Im new to struts and torque. I'm trying to create Database layer in Torque framework in struts. What I have tried is created database in a java project and implemented that project into my project. And while initializing the torque using plugin. I'm getting *Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency. java.lang.NoClassDefFoundError: com/login/Login* *Servlet /Simple threw load() exception javax.servlet.UnavailableException: com/login/Login* and these are the codes i have used *plugin* public void init(ActionServlet arg0, ModuleConfig arg1) throws ServletException { // TODO Auto-generated method stub try { Login.initialize("login"); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); throw new ServletException(e); } } *in configuration in torque * public static synchronized Configuration getConfig() throws ConfigurationException { config = new CompositeConfiguration(); URL configURL = Login.class.getResource("/Login.properties"); if (configURL != null) config.addConfiguration(new PropertiesConfiguration(configURL)); configURL = Login.class.getResource("/LoginDefault.properties"); if (configURL != null) config.addConfiguration(new PropertiesConfiguration(configURL)); return config; } public static synchronized void reinitialize(String instance) throws Exception { initialized = false; config = null; initialize(instance); } public static void initialize(String instance) throws Exception { initialize(instance, System.out); } @SuppressWarnings("deprecation") public static synchronized void initialize(String instance, PrintStream out) throws Exception { Login.instance = instance; if (initialized) return; Torque.init(getConfig()); LoginMapInit.init(); initialized = true; } please help... -- View this message in context: http://struts.1045723.n5.nabble.com/Unable-to-initialize-Struts-ActionServlet-due-to-an-unexpected-exception-or-error-thrown-tp5712349.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Exception thrown because of struts-config.xml
What is the exception? And if you're on Struts 1.3, you should fix your 1.2 version in the DOCTYPE. On Thu, Mar 21, 2013 at 3:27 PM, J.V. wrote: > I have the following struts-config.xml below (a sample from the file). I > am well versed in well formatted XML and DTD's ( I have checked the DTD > agains my struts-config.xml file) and I still get an exception on jboss > startup (an older version of jboss 4.3GA - legacy app but I cannot > upgrade). I am using Struts 1.3. > > Are there any reasons I would get this exception given the > struts-config.xml listed below? > > thanks > > J.V. > > --- > "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" > "http://jakarta.apache.org/**struts/dtds/struts-config_1_2.**dtd<http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd> > "> > > > > > > > > > > > > type="com.my.exception.**MyException" > key="global.error.**notAuthenticated" > path="/Login.jsp" > scope="request"/> > type="com.my.exception.**NotAuthorizedException" > key="global.error.**notAuthorized" > path="/NotAuthorized.jsp" > scope="request"/> > > > > > > > > > > > type="com.my.action.**StartAction" > scope="request"> > > > > > > > processorClass="com.my.web.**SecurityRequestProcessor" > contentType="text/html;**charset=UTF-8" > locale="true" > nocache="true"/> > > > > > > > > > > > > >value="/WEB-INF/validator-**rules.xml, > /WEB-INF/validator-user.xml"/> > > > > > --**--**- > To unsubscribe, e-mail: > user-unsubscribe@struts.**apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Exception thrown because of struts-config.xml
What exception? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Exception thrown because of struts-config.xml
I have the following struts-config.xml below (a sample from the file). I am well versed in well formatted XML and DTD's ( I have checked the DTD agains my struts-config.xml file) and I still get an exception on jboss startup (an older version of jboss 4.3GA - legacy app but I cannot upgrade). I am using Struts 1.3. Are there any reasons I would get this exception given the struts-config.xml listed below? thanks J.V. --- http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd";> path="/action/doViewMemberCenter"/> value="/WEB-INF/validator-rules.xml, /WEB-INF/validator-user.xml"/> - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Null Pointer Exception when i use execand Wait with file upload
appears that you are using an older version of struts (before the integration of xwork to struts framework) can you refactor to struts 2.3.4 and follow the showcase example for filedownload \struts-2.3.4\src\apps\showcase\src\main\java\org\apache\struts2\showcase\filedownload /* * $Id: FileDownloadAction.java 496318 2007-01-15 13:58:24Z husted $ * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ package org.apache.struts2.showcase.filedownload;import java.io.InputStream;import org.apache.struts2.ServletActionContext;import com.opensymphony.xwork2.Action;/** * Demonstrates file resource download. * Set filePath to the local file resource to download, * relative to the application root ("/images/struts.gif"). * */ public class FileDownloadAction implements Action {private String inputPath; public void setInputPath(String value) { inputPath = value; }public InputStream getInputStream() throws Exception { return ServletActionContext.getServletContext().getResourceAsStream(inputPath); }public String execute() throws Exception { return SUCCESS; }} be careful on the first pass to only upload picture types specified in allowedTypes param name="allowedTypes"> > image/gif,image/jpeg,image/png > Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Sat, 16 Mar 2013 22:28:03 +1100 > Subject: Re: Null Pointer Exception when i use execand Wait with file upload > From: stalin.pran...@gmail.com > To: user@struts.apache.org > > method="upload"> > > 10 > > image/gif,image/jpeg,image/png > > > > > 1500 > > /jsp/wait.jsp > /jsp/SingleUpload.jsp > > > On 16 March 2013 22:16, Martin Gainty wrote: > > > so the line ServletActionContext.getServletContext(); is NPE > > > > please display configuration for your Action from struts*.xml > > > > Martin __ > > Verzicht und Vertraulichkeitanmerkung > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > > dient lediglich dem Austausch von Informationen und entfaltet keine > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > > Date: Sat, 16 Mar 2013 12:18:30 +1100 > > > Subject: Re: Null Pointer Exception when i use execand Wait with file > > upload > > > From: stalin.pran...@gmail.com > > > To: user@struts.apache.org > > > > > > :) Apologies > > > > > > > > > package employee; > > > > > > import com.opensymphony.xwork2.Act
Re: Null Pointer Exception when i use execand Wait with file upload
10 image/gif,image/jpeg,image/png 1500 /jsp/wait.jsp /jsp/SingleUpload.jsp On 16 March 2013 22:16, Martin Gainty wrote: > so the line ServletActionContext.getServletContext(); is NPE > > please display configuration for your Action from struts*.xml > > Martin __ > Verzicht und Vertraulichkeitanmerkung > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > Date: Sat, 16 Mar 2013 12:18:30 +1100 > > Subject: Re: Null Pointer Exception when i use execand Wait with file > upload > > From: stalin.pran...@gmail.com > > To: user@struts.apache.org > > > > :) Apologies > > > > > > package employee; > > > > import com.opensymphony.xwork2.ActionSupport; > > import org.apache.struts2.ServletActionContext; > > > > import javax.servlet.ServletContext; > > import java.io.File; > > > > /** > > * Created with IntelliJ IDEA. > > * User: love4059 > > * Date: 13/03/13 > > * Time: 8:10 PM > > * To change this template use File | Settings | File Templates. > > */ > > public class SingleFileUploadAction extends ActionSupport { > > private String description; > > private File attachment; > > private String attachmentContentType; > > private String attachmentFileName; > > private int complete = 0; > > public String getDescription() { > > return description; > > } > > > > public void setDescription(String description) { > > this.description = description; > > } > > > > public String getAttachmentContentType() { > > return attachmentContentType; > > } > > > > public void setAttachmentContentType(String attachmentContentType) { > > this.attachmentContentType = attachmentContentType; > > } > > > > public File getAttachment() { > > return attachment; > > } > > > > public void setAttachment(File attachment) { > > this.attachment = attachment; > > } > > > > public String getAttachmentFileName() { > > return attachmentFileName; > > } > > > > public void setAttachmentFileName(String attachmentFileName) { > > this.attachmentFileName = attachmentFileName; > > } > > > > public String upload(){ > > System.out.println(description); > > System.out.println(attachmentContentType); > > System.out.println(attachmentFileName); > > ServletContext servletContext = > > ServletActionContext.getServletContext(); (NULL POINTER > > Exception at this LINE) > > if (attachment != null) { > > // attachment will be null if there's an error, > > // such as if the uploaded file is too large > > String dataDir = servletContext.getRealPath("/WEB-INF"); > > System.out.println(dataDir); > > File savedFile = new File(dataDir, attachmentFileName); > > attachment.renameTo(savedFile); > > } > > return "success"; > > } > > > > > > > > public int getComplete() { > > complete += 10; > > return complete; > > } > > } > > > > > > 2013/3/16 Martin Gainty > > > > > Not much anyone can do here if we cant see the code for > > > employee.SingleFileUploadAction.java > > > > > > Martin > > > __ > > > Verzicht und Vertraulichkeitanmerkung > > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede > unbefugte > > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese > Nachricht > > > dient lediglich dem Austausch von Informationen und entfaltet keine > > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbark
RE: Null Pointer Exception when i use execand Wait with file upload
so the line ServletActionContext.getServletContext(); is NPE please display configuration for your Action from struts*.xml Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Sat, 16 Mar 2013 12:18:30 +1100 > Subject: Re: Null Pointer Exception when i use execand Wait with file upload > From: stalin.pran...@gmail.com > To: user@struts.apache.org > > :) Apologies > > > package employee; > > import com.opensymphony.xwork2.ActionSupport; > import org.apache.struts2.ServletActionContext; > > import javax.servlet.ServletContext; > import java.io.File; > > /** > * Created with IntelliJ IDEA. > * User: love4059 > * Date: 13/03/13 > * Time: 8:10 PM > * To change this template use File | Settings | File Templates. > */ > public class SingleFileUploadAction extends ActionSupport { > private String description; > private File attachment; > private String attachmentContentType; > private String attachmentFileName; > private int complete = 0; > public String getDescription() { > return description; > } > > public void setDescription(String description) { > this.description = description; > } > > public String getAttachmentContentType() { > return attachmentContentType; > } > > public void setAttachmentContentType(String attachmentContentType) { > this.attachmentContentType = attachmentContentType; > } > > public File getAttachment() { > return attachment; > } > > public void setAttachment(File attachment) { > this.attachment = attachment; > } > > public String getAttachmentFileName() { > return attachmentFileName; > } > > public void setAttachmentFileName(String attachmentFileName) { > this.attachmentFileName = attachmentFileName; > } > > public String upload(){ > System.out.println(description); > System.out.println(attachmentContentType); > System.out.println(attachmentFileName); > ServletContext servletContext = > ServletActionContext.getServletContext(); (NULL POINTER > Exception at this LINE) > if (attachment != null) { > // attachment will be null if there's an error, > // such as if the uploaded file is too large > String dataDir = servletContext.getRealPath("/WEB-INF"); > System.out.println(dataDir); > File savedFile = new File(dataDir, attachmentFileName); > attachment.renameTo(savedFile); > } > return "success"; > } > > > > public int getComplete() { > complete += 10; > return complete; > } > } > > > 2013/3/16 Martin Gainty > > > Not much anyone can do here if we cant see the code for > > employee.SingleFileUploadAction.java > > > > Martin > > __ > > Verzicht und Vertraulichkeitanmerkung > > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > > dient lediglich dem Austausch von Informationen und entfaltet keine > > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > > > > > > Date: Sat, 16 Mar 2013 10:21:08 +1100 > > > Subject: Null Pointer Exception when i use execand Wait with file upload > > > From: stalin.pran...@gmail.com > > > To: user@struts.apache.org > > > > > > Hello I am trying to use execandWait interceptor with fileUpload > > > interceptor as below. i tried completestack in place of default and i get > > > Null pointer exception. > > > > > > > > > > > method="upload"> > > > > > > 10 > > > > > > image/gif,image/jpeg,image/png > > > &g
Re: Null Pointer Exception when i use execand Wait with file upload
:) Apologies package employee; import com.opensymphony.xwork2.ActionSupport; import org.apache.struts2.ServletActionContext; import javax.servlet.ServletContext; import java.io.File; /** * Created with IntelliJ IDEA. * User: love4059 * Date: 13/03/13 * Time: 8:10 PM * To change this template use File | Settings | File Templates. */ public class SingleFileUploadAction extends ActionSupport { private String description; private File attachment; private String attachmentContentType; private String attachmentFileName; private int complete = 0; public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getAttachmentContentType() { return attachmentContentType; } public void setAttachmentContentType(String attachmentContentType) { this.attachmentContentType = attachmentContentType; } public File getAttachment() { return attachment; } public void setAttachment(File attachment) { this.attachment = attachment; } public String getAttachmentFileName() { return attachmentFileName; } public void setAttachmentFileName(String attachmentFileName) { this.attachmentFileName = attachmentFileName; } public String upload(){ System.out.println(description); System.out.println(attachmentContentType); System.out.println(attachmentFileName); ServletContext servletContext = ServletActionContext.getServletContext(); (NULL POINTER Exception at this LINE) if (attachment != null) { // attachment will be null if there's an error, // such as if the uploaded file is too large String dataDir = servletContext.getRealPath("/WEB-INF"); System.out.println(dataDir); File savedFile = new File(dataDir, attachmentFileName); attachment.renameTo(savedFile); } return "success"; } public int getComplete() { complete += 10; return complete; } } 2013/3/16 Martin Gainty > Not much anyone can do here if we cant see the code for > employee.SingleFileUploadAction.java > > Martin > __ > Verzicht und Vertraulichkeitanmerkung > Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene > Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte > Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht > dient lediglich dem Austausch von Informationen und entfaltet keine > rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von > E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > > > > Date: Sat, 16 Mar 2013 10:21:08 +1100 > > Subject: Null Pointer Exception when i use execand Wait with file upload > > From: stalin.pran...@gmail.com > > To: user@struts.apache.org > > > > Hello I am trying to use execandWait interceptor with fileUpload > > interceptor as below. i tried completestack in place of default and i get > > Null pointer exception. > > > > > > > method="upload"> > > > > 10 > > > > image/gif,image/jpeg,image/png > > > > > > > > > > 1500 > > > > /jsp/wait.jsp > > /jsp/SingleUpload.jsp > > > > > > > > java.lang.NullPointerException > > > org.apache.struts2.ServletActionContext.getServletContext(ServletActionContext.java:139) > > > employee.SingleFileUploadAction.upload(SingleFileUploadAction.java:58) > > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > java.lang.reflect.Method.invoke(Method.java:597) > > > com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:446) > > > com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:285) > > > org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:57) > > java.lang.Thread.run(Thread.java:680) > > > > > > > > Please advise what i can do. > > > > > > -- > > Warm Regards > > Pranava S Balugari > > > > "Keep Looking Don't Settle" > > -- Warm Regards Pranava S Balugari "Keep Looking Don't Settle"
RE: Null Pointer Exception when i use execand Wait with file upload
Not much anyone can do here if we cant see the code for employee.SingleFileUploadAction.java Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Sat, 16 Mar 2013 10:21:08 +1100 > Subject: Null Pointer Exception when i use execand Wait with file upload > From: stalin.pran...@gmail.com > To: user@struts.apache.org > > Hello I am trying to use execandWait interceptor with fileUpload > interceptor as below. i tried completestack in place of default and i get > Null pointer exception. > > > method="upload"> > > 10 > > image/gif,image/jpeg,image/png > > > > > 1500 > > /jsp/wait.jsp > /jsp/SingleUpload.jsp > > > > java.lang.NullPointerException > > org.apache.struts2.ServletActionContext.getServletContext(ServletActionContext.java:139) > employee.SingleFileUploadAction.upload(SingleFileUploadAction.java:58) > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > java.lang.reflect.Method.invoke(Method.java:597) > > com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:446) > > com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:285) > > org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:57) > java.lang.Thread.run(Thread.java:680) > > > > Please advise what i can do. > > > -- > Warm Regards > Pranava S Balugari > > "Keep Looking Don't Settle"
Re: Getting following exception while trying validation mechanism in struts2
For date formatting, a converter is not considered a good practice. Date/number formatting should be done following this guide: http://struts.apache.org/2.3.4/docs/formatting-dates-and-numbers.html A jira related to this is already fixed and hopefully will soon be availabe as release: https://issues.apache.org/jira/browse/WW-3833 Cheers, J. On Tue, Aug 7, 2012 at 8:40 AM, prasad.th16 < dattaprasad_tha...@syntelinc.com> wrote: > I could resolve the error. Actually problem was with my converter. It was > throwing the null pointer exception in the coverter I wrote to convert the > String to date. Thank you very much for the cooperation. > > Regards, > Prasad > > > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/Getting-following-exception-while-trying-validation-mechanism-in-struts2-tp5710310p5710387.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
Re: Getting following exception while trying validation mechanism in struts2
I could resolve the error. Actually problem was with my converter. It was throwing the null pointer exception in the coverter I wrote to convert the String to date. Thank you very much for the cooperation. Regards, Prasad -- View this message in context: http://struts.1045723.n5.nabble.com/Getting-following-exception-while-trying-validation-mechanism-in-struts2-tp5710310p5710387.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
RE: Getting following exception while trying validation mechanism in struts2
struts.ui.templateSuffix was to it’s default value as I have not declared this property explicitly. Regards, Prasad From: lukaszlenart [via Struts] [mailto:ml-node+s1045723n571032...@n5.nabble.com] Sent: Monday, July 30, 2012 12:52 PM To: Thakur, Dattaprasad Subject: Re: Getting following exception while trying validation mechanism in struts2 What's the value of struts.ui.templateSuffix ? Check struts.properties, web.xml or struts.xml Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: [hidden email] For additional commands, e-mail: [hidden email] If you reply to this email, your message will be added to the discussion below: http://struts.1045723.n5.nabble.com/Getting-following-exception-while-trying-validation-mechanism-in-struts2-tp5710310p5710327.html To unsubscribe from Getting following exception while trying validation mechanism in struts2, click here <http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5710310&code=ZGF0dGFwcmFzYWRfdGhha3VyQHN5bnRlbGluYy5jb218NTcxMDMxMHwtMTc4NjQwODAwMQ==> . NAML <http://struts.1045723.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> Confidential: This electronic message and all contents contain information from Syntel, Inc. which may be privileged, confidential or otherwise protected from disclosure. The information is intended to be for the addressee only. If you are not the addressee, any disclosure, copy, distribution or use of the contents of this message is prohibited. If you have received this electronic message in error, please notify the sender immediately and destroy the original message and all copies. -- View this message in context: http://struts.1045723.n5.nabble.com/Getting-following-exception-while-trying-validation-mechanism-in-struts2-tp5710310p5710328.html Sent from the Struts - User mailing list archive at Nabble.com.
Re: Getting following exception while trying validation mechanism in struts2
What's the value of struts.ui.templateSuffix ? Check struts.properties, web.xml or struts.xml Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Getting following exception while trying validation mechanism in struts2
The exception regards the template, what does the jsp look like? Dave (pardon brevity, typos, and top-quoting; on cell) On Jul 27, 2012 8:12 AM, "prasad.th16" wrote: > Hi, > I am trying to use struts 2 xml validation framework. But I come across > errors. I am using Struts 2.1.8.1. > > Here is my action : > public class RegistrationAction extends ActionSupport{ > private String fName; > private String lName; > private String selGender; > private Date dob; > private String selMStatus; > private String email; > private String cellNumber; > private String postalAddrs; > private String passwd; > private String confPasswd; > private String secQuestion; > private String secAnswer; > private UserAccountDeligatorImpl userAccount; > > > > public UserAccountDeligatorImpl getUserAccount() { > return userAccount; > } > > > public void setUserAccount(UserAccountDeligatorImpl userAccount) { > this.userAccount = userAccount; > } > > > public String getFName() { > return fName; > } > > > public void setFName(String name) { > fName = name; > } > > > public String getLName() { > return lName; > } > > > public void setLName(String name) { > lName = name; > } > > > public String getSelGender() { > return selGender; > } > > > public void setSelGender(String selGender) { > this.selGender = selGender; > } > > > public Date getDob() { > return dob; > } > > > public void setDob(Date dob) { > this.dob = dob; > } > > > public String getSelMStatus() { > return selMStatus; > } > > > public void setSelMStatus(String selMStatus) { > this.selMStatus = selMStatus; > } > > > public String getEmail() { > return email; > } > > > public void setEmail(String email) { > this.email = email; > } > > > public String getCellNumber() { > return cellNumber; > } > > > public void setCellNumber(String cellNumber) { > this.cellNumber = cellNumber; > } > > > public String getPostalAddrs() { > return postalAddrs; > } > > > public void setPostalAddrs(String postalAddrs) { > this.postalAddrs = postalAddrs; > } > > > public String getPasswd() { > return passwd; > } > > > public void setPasswd(String passwd) { > this.passwd = passwd; > } > > > public String getConfPasswd() { > return confPasswd; > } > > > public void setConfPasswd(String confPasswd) { > this.confPasswd = confPasswd; > } > > > public String getSecQuestion() { > return secQuestion; > } > > > public void setSecQuestion(String secQuestion) { > this.secQuestion = secQuestion; > } > > > public String getSecAnswer() { > return secAnswer; > } > > > public void setSecAnswer(String secAnswer) { > this.secAnswer = secAnswer; > } > > > public String execute() > { > UserRegistrationInfoVO userRegistrationInfo=new > UserRegistrationInfoVO(); > userRegistrationInfo.setFName(getFName()); > userRegistrationInfo.setLName(getLName()); > userRegistrationInfo.setSelGender(getSelGender()); > userRegistrationInfo.setDob(getDob()); > userRegistrationInfo.setSelMStatus(getSelMStatus()); > userRegistrationInfo.setEmail(getEmail()); > userRegistrationInfo.setCellNumber(getCellNumber()); > userRegistrationInfo.setPostalAddrs(getPostalAddrs()); > if(null!=getPasswd()&& !(getPasswd().equals(""))) > { > if(null!=getConfPasswd()&& > !(getConfPasswd().equals(""))) > { > > if(getPasswd().equals(get
Getting following exception while trying validation mechanism in struts2
nvoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:138) com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:87) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:165) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:179) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:176) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:237) org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52) org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:488) org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395) Please help me to run the validations successfully. -- View this message in context: http://struts.1045723.n5.nabble.com/Getting-following-exception-while-trying-validation-mechanism-in-struts2-tp5710310.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception
Done, please check the latest snapshot https://issues.apache.org/jira/browse/WW-3828 2012/5/28 Łukasz Lenart : > 2012/5/28 Łukasz Lenart : >> I've missed that out, need to check the code ... > > Ok, I was able to reproduce your problem and changed support for > Dynamic Attributes in Struts to solve that. Please register an issue > for that, but IMHO it's a bad idea to use strict literals, it's better > to wrap them with quotas - at the end they're just strings ;-) > > > Regards > -- > Łukasz > mobile +48 606 323 122 http://www.lenart.org.pl/ > Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception
2012/5/28 Łukasz Lenart : > I've missed that out, need to check the code ... Ok, I was able to reproduce your problem and changed support for Dynamic Attributes in Struts to solve that. Please register an issue for that, but IMHO it's a bad idea to use strict literals, it's better to wrap them with quotas - at the end they're just strings ;-) Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception
2012/5/25 : > Method public java.lang.String > org.apache.struts2.util.StrutsUtil.translateVariables(java.lang.String) threw > an exception when invoked on org.apache.struts2.util.StrutsUtil@540948a7 > The problematic instruction: I've missed that out, need to check the code ... Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception
Hi, I want a help to pass the whole action form from JSP file to my action class. I have the action form and it contains the details. In my JSP file, some of the fileds is not used and I am setting the value to the form at the time of form loading. the form and all is in request scope. I want to get the whole form and its values in action class after submitting the page. Please help me to find a solution for this Regards, Joby Joseph - Original Message - From: "Łukasz Lenart" To: "Struts Users Mailing List" Sent: Monday, May 28, 2012 11:02 AM Subject: Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception 2012/5/25 : From my perspective this represents a regression from 2.3.1.2, where what I had previously worked fine. It could be due to FreeMarker change, since I also have this in my log: Caused by: freemarker.template.TemplateModelException: Argument type mismatch; can not unwrap argument #1 (class: freemarker.ext.beans.BooleanModel, toString: "true") to class java.lang.String at freemarker.ext.beans.SimpleMemberModel.createArgumentTypeMismarchException(SimpleMemberModel.java:175 at freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:123) at freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:100) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106) Probably you're right, but we upgraded FreeMarker because of some security issues and we don't plan to revert it because of your problem. So, you can stay with 2.3.1.2 and start migrate your application. Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org Disclaimer : This e.mail message may contain confidential, proprietary or legally privileged information. It should not be used by anyone who is not the original intended recipient. If you have erroneously received this message, please delete it immediately and notify the sender. The recipient acknowledges that Al Mulla Group or its subsidiaries and associated companies*, are unable to exercise control or ensure or guarantee the integrity of / over the contents of the information contained in e.mail transmissions and further acknowledges that any views expressed in this message are those of the individual sender and no binding nature of the message shall be implied or assumed unless the sender does so expressly with due authority of Al Mulla Group. Before opening any attachments please check them for viruses and defects. * List of Companies covered under Al Mulla Group of Companies. 1. Al Mulla Group Holding Co. K.S.C.C. 2. Bader Al Mulla & Brothers Co. W.L.L. 3. Saleh Jamal & Co. W.L.L. 4. Maseelah Trading Co. W.L.L. 5. Al Mulla Rental & Leasing of Vehicles & Equipment Co. K.S.C.C. 6. Al Mulla International Financing & Investment Co. K.S.C.C. 7. Al Mulla Cleaning & Maintenance Service Co. W.L.L. 8. Gulf Trading Group W.L.L. 9. Al Mulla Insurance, Reinsurance & Broking Co. W.L.L. 10. Al Mulla Consultancy Co. W.L.L. 11. Al Mulla Environmental Systems W.L.L 12. Al Mulla Real Estate 13. Al Mulla Security Services Co. W.L.L. 14. Al Mulla International Exchange Co. K.S.C.C 15. Al Mulla & Behbehani Motor Co. W.L.L. 16. Al Mulla Building Construction Co. W.L.L. 17. Al Soor Financing & Leasing Co. K.S.C.C. 18. Larsen & Toubro Kuwait Construction & General Trading Co. W.L.L. 19. Kuwait Commercial Agency 20. Khadamat Marketing & Automotive Services Co. 21. Al Mulla General Trading for Safety, Security, & Fire Systems & Equipment Co. W.L.L. 22. Iraq International Import, Export & Commission Agent CO. W.L.L. (Iraq) 23. Al Mazayah Al Aulah General Trading Co. LLC (Dubai, UAE) 24. Al Mazayah Al Thania Car Trading LLC (Dubai, UAE) 25. AMG Steel & Systems Co. PVT LTD, (India) 26. Al Mulla Travel Bureau 27. Diamond International Motors Co. (Egypt) 28. Nasser Bin Khaled & Al Mulla Cars Rent Co. W.L.L. (SELECT RENTAL CAR), (Qatar) 29. Modern Exchange Co. (Oman) # Scanned by Brightmail # - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception
2012/5/25 : > From my perspective this represents a regression from 2.3.1.2, where what I > had previously worked fine. > It could be due to FreeMarker change, since I also have this in my log: > > Caused by: freemarker.template.TemplateModelException: Argument type > mismatch; can not unwrap argument #1 (class: > freemarker.ext.beans.BooleanModel, toString: "true") to class java.lang.String > at > freemarker.ext.beans.SimpleMemberModel.createArgumentTypeMismarchException(SimpleMemberModel.java:175 > at > freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:123) > at > freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:100) > at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106) Probably you're right, but we upgraded FreeMarker because of some security issues and we don't plan to revert it because of your problem. So, you can stay with 2.3.1.2 and start migrate your application. Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception
Chris, Surrounding it with quotes would mean that I'd have to change all my UI templates, as well as my theme templates. Note how my theme template expects a Boolean (not a String) attribute, below: > < <#if parameters.required?default(false)> > < required="true"<#rt/> > < From my perspective this represents a regression from 2.3.1.2, where what I had previously worked fine. It could be due to FreeMarker change, since I also have this in my log: Caused by: freemarker.template.TemplateModelException: Argument type mismatch; can not unwrap argument #1 (class: freemarker.ext.beans.BooleanModel, toString: "true") to class java.lang.String at freemarker.ext.beans.SimpleMemberModel.createArgumentTypeMismarchException(SimpleMemberModel.java:175 at freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:123) at freemarker.ext.beans.SimpleMemberModel.unwrapArguments(SimpleMemberModel.java:100) at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106) On May 25, 2012, at 1:58 PM, struts@spamgourmet.com wrote: > After installing Struts 2.3.4, it appears that dynamic attributes must be > strings now? > > I've modified text.ftl in my custom theme like this (diff output): > 23c23 > < > --- > > > 46,54d45 > < <#if parameters.required?default(false)> > < required="true"<#rt/> > < > < <#if parameters.autofocus?default(false)> > < autofocus="autofocus"<#rt/> > < > < <#if parameters.pattern?? > > < pattern="${parameters.pattern?html}"<#rt/> > < > 62c53 > < /> > > > So that I can use dynamic attributes / HTML5 goodness like this: > > <@s.text type="email" key="user.email" required=true autofocus=true /> > > But now Struts 2.3.4 blows up with this message: > > > Method public java.lang.String > org.apache.struts2.util.StrutsUtil.translateVariables(java.lang.String) threw > an exception when invoked on org.apache.struts2.util.StrutsUtil@540948a7 > The problematic instruction: > -- > ==> assignment: value=struts.translateVariables(keyValue)!keyValue [on line > 27, column 3 in /themes/simple/dynamic-attributes.ftl] > in include "/${parameters.templateDir}/simple/dynamic-attributes.ftl" [on > line 52, column 1 in /themes/simple/text.ftl] > in include "/${parameters.templateDir}/simple/text.ftl" [on line 25, column > 1 in /themes/my-custom-theme/text.ftl] > -- > > I made sure to update my simple theme, perhaps I missed some template files? > Can anyone help?
Re: Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception
Try surrounding the attributes in quotes (e.g. "true" instead of true). (*Chris*) On Fri, May 25, 2012 at 11:58 AM, wrote: > After installing Struts 2.3.4, it appears that dynamic attributes must be > strings now? > > I've modified text.ftl in my custom theme like this (diff output): > 23c23 > < > --- > > > 46,54d45 > < <#if parameters.required?default(false)> > < required="true"<#rt/> > < > < <#if parameters.autofocus?default(false)> > < autofocus="autofocus"<#rt/> > < > < <#if parameters.pattern?? > > < pattern="${parameters.pattern?html}"<#rt/> > < > 62c53 > < /> > > > So that I can use dynamic attributes / HTML5 goodness like this: > > <@s.text type="email" key="user.email" required=true autofocus=true /> > > But now Struts 2.3.4 blows up with this message: > > > Method public java.lang.String > org.apache.struts2.util.StrutsUtil.translateVariables(java.lang.String) > threw an exception when invoked on > org.apache.struts2.util.StrutsUtil@540948a7 > The problematic instruction: > -- > ==> assignment: value=struts.translateVariables(keyValue)!keyValue [on > line 27, column 3 in /themes/simple/dynamic-attributes.ftl] > in include "/${parameters.templateDir}/simple/dynamic-attributes.ftl" [on > line 52, column 1 in /themes/simple/text.ftl] > in include "/${parameters.templateDir}/simple/text.ftl" [on line 25, > column 1 in /themes/my-custom-theme/text.ftl] > -- > > I made sure to update my simple theme, perhaps I missed some template > files? Can anyone help?
Dynamic Attributes can't be boolean? StrutsUtil.translateVariables exception
After installing Struts 2.3.4, it appears that dynamic attributes must be strings now? I've modified text.ftl in my custom theme like this (diff output): 23c23 < --- > 46,54d45 < <#if parameters.required?default(false)> < required="true"<#rt/> < < <#if parameters.autofocus?default(false)> < autofocus="autofocus"<#rt/> < < <#if parameters.pattern?? > < pattern="${parameters.pattern?html}"<#rt/> < 62c53 < /> So that I can use dynamic attributes / HTML5 goodness like this: <@s.text type="email" key="user.email" required=true autofocus=true /> But now Struts 2.3.4 blows up with this message: Method public java.lang.String org.apache.struts2.util.StrutsUtil.translateVariables(java.lang.String) threw an exception when invoked on org.apache.struts2.util.StrutsUtil@540948a7 The problematic instruction: -- ==> assignment: value=struts.translateVariables(keyValue)!keyValue [on line 27, column 3 in /themes/simple/dynamic-attributes.ftl] in include "/${parameters.templateDir}/simple/dynamic-attributes.ftl" [on line 52, column 1 in /themes/simple/text.ftl] in include "/${parameters.templateDir}/simple/text.ftl" [on line 25, column 1 in /themes/my-custom-theme/text.ftl] -- I made sure to update my simple theme, perhaps I missed some template files? Can anyone help?
Re: Exception occurred after upgrading from Struts 1.2 to Struts 1.3.10
Hello, Dave: Could you please be more specific on what logging I need to set to DEBUG level? I am using WAS. Which console in WAS I should set the DEBUG to true for logging in this case? In the project I am working on, I turned on the debug flag for the project but that is the only exception I saw in the server log. The application initialization was successful and I was able to launch the login page. I just got that exception as soon as I logged in. Thanks a lot. Joann On Tue, Mar 20, 2012 at 9:57 AM, Dave Newton wrote: > Have you set the logging to DEBUG level and checked the logs on startup? > > Dave > > On Tue, Mar 20, 2012 at 9:48 AM, joann luo wrote: > > > Hello, > > > > Thanks for your quick responses. > > > > Yes. I changed the DTD definitions in all the relevant files: > > > > > "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" > > "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd";> > > > > > "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN" > > "http://jakarta.apache.org/struts/dtds/tiles-config_1_3.dtd"; > > > > > > "-//Apache Software Foundation//DTD Commons Validator Rules > > Configuration 1.3.0//EN" > > "http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd > > > > > > Is there anything else I might have missed which causes this exception? > > > > > > Thanks a lot. > > > > > > 2012/3/19 Łukasz Lenart > > > > > Did you changed DTD definition ? > > > > > > > > > Regards > > > -- > > > Łukasz http://www.lenart.org.pl/ > > > mobile +48 606 323 122, office +27 11 0838747 > > > Warszawa JUG conference - Confitura http://confitura.pl/ > > > > > > > > > 2012/3/19 joann luo : > > > > hello, > > > > > > > > > > > > I downloaded the complete Struts 1.3.10 package from > > > > http://struts.apache.org/download.cgi\ > > > > *struts-1.3.10-all.zip< > > > http://apache.mirrors.hoobly.com/struts/binaries/struts-1.3.10-all.zip > > > > > > *. I updated the existing JAR files in my application. > > > > > > > > > > > > > > > > jakarta-oro.jar > > > > > > > > commons-logging.jar > > > > > > > > commons-digester.jar > > > > > > > > commons-validator.jar > > > > > > > > commons-beanutils.jar > > > > > > > > commons-fileupload.jar > > > > > > > > struts.jar > > > > > > > > > > > > > > > > I added the 3 new JAR files as the dependencies. > > > > > > > > commons-chain.jar > > > > > > > > struts-taglib.jar > > > > > > > > struts-tiles.jar > > > > > > > > > > > > > > > > I was able to compile the code correctly. I deployed the new EAR > file. > > > > Once I logged into the application, I got the following exception in > > the > > > > log. > > > > > > > > > > > > > > > > > > > > > > > > org.apache.commons.chain.config.ConfigParser > > > > > > > > javax.servlet.UnavailableException: > > > > org.apache.commons.chain.config.ConfigParser > > > > > > > >at > > > > > > > > > > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534) > > > > > > > >at > > > > > > > > > > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) > > > > > > > >at > > > > > > > > > > com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) > > > > > > > >at > > > > com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3933) > > > > > > > >at > > > > > > com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276) > > > > > > > >at > > > > > > com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931) > > > > > > > >at > > > > > > > > > >
Re: Exception occurred after upgrading from Struts 1.2 to Struts 1.3.10
Have you set the logging to DEBUG level and checked the logs on startup? Dave On Tue, Mar 20, 2012 at 9:48 AM, joann luo wrote: > Hello, > > Thanks for your quick responses. > > Yes. I changed the DTD definitions in all the relevant files: > > "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN" > "http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd";> > > "-//Apache Software Foundation//DTD Tiles Configuration 1.3//EN" > "http://jakarta.apache.org/struts/dtds/tiles-config_1_3.dtd"; > > > "-//Apache Software Foundation//DTD Commons Validator Rules > Configuration 1.3.0//EN" > "http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd > > > Is there anything else I might have missed which causes this exception? > > > Thanks a lot. > > > 2012/3/19 Łukasz Lenart > > > Did you changed DTD definition ? > > > > > > Regards > > -- > > Łukasz http://www.lenart.org.pl/ > > mobile +48 606 323 122, office +27 11 0838747 > > Warszawa JUG conference - Confitura http://confitura.pl/ > > > > > > 2012/3/19 joann luo : > > > hello, > > > > > > > > > I downloaded the complete Struts 1.3.10 package from > > > http://struts.apache.org/download.cgi\ > > > *struts-1.3.10-all.zip< > > http://apache.mirrors.hoobly.com/struts/binaries/struts-1.3.10-all.zip> > > > *. I updated the existing JAR files in my application. > > > > > > > > > > > > jakarta-oro.jar > > > > > > commons-logging.jar > > > > > > commons-digester.jar > > > > > > commons-validator.jar > > > > > > commons-beanutils.jar > > > > > > commons-fileupload.jar > > > > > > struts.jar > > > > > > > > > > > > I added the 3 new JAR files as the dependencies. > > > > > > commons-chain.jar > > > > > > struts-taglib.jar > > > > > > struts-tiles.jar > > > > > > > > > > > > I was able to compile the code correctly. I deployed the new EAR file. > > > Once I logged into the application, I got the following exception in > the > > > log. > > > > > > > > > > > > > > > > > > org.apache.commons.chain.config.ConfigParser > > > > > > javax.servlet.UnavailableException: > > > org.apache.commons.chain.config.ConfigParser > > > > > >at > > > > > > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534) > > > > > >at > > > > > > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) > > > > > >at > > > > > > com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) > > > > > >at > > > com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3933) > > > > > >at > > > > com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276) > > > > > >at > > > > com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931) > > > > > >at > > > > > > com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) > > > > > >at > > > > > > com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) > > > > > >at > > > > > > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445) > > > > > >at > > > > > > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504) > > > > > >at > > > > > > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301) > > > > > >at > > > > > > com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) > > > > > >at > > > > > > com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784) > > > > > >at > > > > > > com.ibm.ws.tcp.channel.impl.AioReadCompletionLi
Re: Exception occurred after upgrading from Struts 1.2 to Struts 1.3.10
Hello, Thanks for your quick responses. Yes. I changed the DTD definitions in all the relevant files: http://jakarta.apache.org/struts/dtds/struts-config_1_3.dtd";> http://jakarta.apache.org/struts/dtds/tiles-config_1_3.dtd"; > http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd Is there anything else I might have missed which causes this exception? Thanks a lot. 2012/3/19 Łukasz Lenart > Did you changed DTD definition ? > > > Regards > -- > Łukasz http://www.lenart.org.pl/ > mobile +48 606 323 122, office +27 11 0838747 > Warszawa JUG conference - Confitura http://confitura.pl/ > > > 2012/3/19 joann luo : > > hello, > > > > > > I downloaded the complete Struts 1.3.10 package from > > http://struts.apache.org/download.cgi\ > > *struts-1.3.10-all.zip< > http://apache.mirrors.hoobly.com/struts/binaries/struts-1.3.10-all.zip> > > *. I updated the existing JAR files in my application. > > > > > > > > jakarta-oro.jar > > > > commons-logging.jar > > > > commons-digester.jar > > > > commons-validator.jar > > > > commons-beanutils.jar > > > > commons-fileupload.jar > > > > struts.jar > > > > > > > > I added the 3 new JAR files as the dependencies. > > > > commons-chain.jar > > > > struts-taglib.jar > > > > struts-tiles.jar > > > > > > > > I was able to compile the code correctly. I deployed the new EAR file. > > Once I logged into the application, I got the following exception in the > > log. > > > > > > > > > > > > org.apache.commons.chain.config.ConfigParser > > > > javax.servlet.UnavailableException: > > org.apache.commons.chain.config.ConfigParser > > > >at > > > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534) > > > >at > > > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) > > > >at > > > com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) > > > >at > > com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3933) > > > >at > > com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276) > > > >at > > com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931) > > > >at > > > com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) > > > >at > > > com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) > > > >at > > > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445) > > > >at > > > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504) > > > >at > > > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301) > > > >at > > > com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) > > > >at > > > com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784) > > > >at > > > com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) > > > >at > > > com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) > > > >at > > > com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) > > > >at > com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) > > > >at > > com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) > > > >at > > > com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) > > > >at > com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) > > > >at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604) > > > > > > > > > > > > > > > > I also tried to put commons-chain.jar either in the WEB-INF\classes or > WEB- > > INF\lib directory. I restarted the WAS server but I still got the same > > exception. > > > > > > > > Does anyone know what the cause of this issue is? > > > > > > > > > > > > -- > > Best Regards, > > Joann > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- Best Regards, Joann
Re: Exception occurred after upgrading from Struts 1.2 to Struts 1.3.10
Did you changed DTD definition ? Regards -- Łukasz http://www.lenart.org.pl/ mobile +48 606 323 122, office +27 11 0838747 Warszawa JUG conference - Confitura http://confitura.pl/ 2012/3/19 joann luo : > hello, > > > I downloaded the complete Struts 1.3.10 package from > http://struts.apache.org/download.cgi\ > *struts-1.3.10-all.zip<http://apache.mirrors.hoobly.com/struts/binaries/struts-1.3.10-all.zip> > *. I updated the existing JAR files in my application. > > > > jakarta-oro.jar > > commons-logging.jar > > commons-digester.jar > > commons-validator.jar > > commons-beanutils.jar > > commons-fileupload.jar > > struts.jar > > > > I added the 3 new JAR files as the dependencies. > > commons-chain.jar > > struts-taglib.jar > > struts-tiles.jar > > > > I was able to compile the code correctly. I deployed the new EAR file. > Once I logged into the application, I got the following exception in the > log. > > > > > > org.apache.commons.chain.config.ConfigParser > > javax.servlet.UnavailableException: > org.apache.commons.chain.config.ConfigParser > > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534) > > at > com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) > > at > com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) > > at > com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3933) > > at > com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276) > > at > com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931) > > at > com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) > > at > com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) > > at > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445) > > at > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504) > > at > com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301) > > at > com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) > > at > com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784) > > at > com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) > > at > com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) > > at > com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) > > at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) > > at > com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) > > at > com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) > > at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) > > at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604) > > > > > > > > I also tried to put commons-chain.jar either in the WEB-INF\classes or WEB- > INF\lib directory. I restarted the WAS server but I still got the same > exception. > > > > Does anyone know what the cause of this issue is? > > > > > > -- > Best Regards, > Joann - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Exception occurred after upgrading from Struts 1.2 to Struts 1.3.10
hello, I downloaded the complete Struts 1.3.10 package from http://struts.apache.org/download.cgi\ *struts-1.3.10-all.zip<http://apache.mirrors.hoobly.com/struts/binaries/struts-1.3.10-all.zip> *. I updated the existing JAR files in my application. jakarta-oro.jar commons-logging.jar commons-digester.jar commons-validator.jar commons-beanutils.jar commons-fileupload.jar struts.jar I added the 3 new JAR files as the dependencies. commons-chain.jar struts-taglib.jar struts-tiles.jar I was able to compile the code correctly. I deployed the new EAR file. Once I logged into the application, I got the following exception in the log. org.apache.commons.chain.config.ConfigParser javax.servlet.UnavailableException: org.apache.commons.chain.config.ConfigParser at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:534) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:502) at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:179) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3933) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:931) at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1583) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:186) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:445) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:504) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:301) at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:83) at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1784) at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165) at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217) at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161) at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138) at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204) at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775) at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1604) I also tried to put commons-chain.jar either in the WEB-INF\classes or WEB- INF\lib directory. I restarted the WAS server but I still got the same exception. Does anyone know what the cause of this issue is? -- Best Regards, Joann
exception when running my struts jsp
i modified struts-config.xml but when i run localhost:8080/struts1/login.jspEtat HTTP 500 -type Rapport d'exceptionmessagedescription Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête.exceptionorg.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 17 14: 15: 16: 17: 18:User Name : 19: Password : 20: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:521) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) cause mèrejavax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: "LoginForm" on action: "/Login" org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794) org.apache.jsp.login_jsp._jspService(login_jsp.java:91) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) cause mèrejavax.servlet.jsp.JspException: Cannot retrieve definition for form bean: "LoginForm" on action: "/Login" org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:881) org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488) org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:172) org.apache.jsp.login_jsp._jspx_meth_html_005fhtml_005f0(login_jsp.java:124) org.apache.jsp.login_jsp._jspService(login_jsp.java:82) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/6.0.35.Apache Tomcat/6.0.35struts-config.xmlhttp://struts.apache.org/struts/dtds/struts-config_1_3.dtd";> > Date: Wed, 7 Mar 2012 23:02:14 +0000 > From: mr.jason.zh...@gmail.com > Subject: RE: exception when running my struts jsp > To: user@struts.apache.org > > as Dave pointed out, letter 'f ' also not match. > -Original message- > From: Oussama Jlassi > Sent: 08/03/2012, 6:34 AM > To: user@struts.apache.org > Subject: RE: exception when running my struts jsp > > > > > i corrected struts-config.xml i put the first letter of form bean name in > uppercase > index2.jsp work but in login.jsp i got the same message > > > Date: Wed, 7 Mar 2012 17:07:09 -0500 > > Subject: Re: exception when running my struts jsp > > From: davelnew...@gmail.com > > To: user@struts.apache.org > > > > Your form bean name does not match the name used in the action's > > configuration. > > > > Dave > > > > On Wednesday, March 7, 2012, Oussama Jlassi wrote: > > > i use struts 1.3.10 > > > in tomcat 6 when i run the url all i got http 500 how to solve my problem > > > localhost:8080/struts1/login.jsp i got > > > > > > Etat HTTP 500 - > > > > > > > > > > > > type Rapport d'exception > > > > > > message > > > > > > description Le serveur a rencontré une erreur interne () qui l'a empêché > > de satisfaire la requête. > > > > > > exception > > > > > > org.apache.jasper.JasperException: javax.servlet.ServletException: > > javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: >
RE: exception when running my struts jsp
as Dave pointed out, letter 'f ' also not match. -Original message- From: Oussama Jlassi Sent: 08/03/2012, 6:34 AM To: user@struts.apache.org Subject: RE: exception when running my struts jsp i corrected struts-config.xml i put the first letter of form bean name in uppercase index2.jsp work but in login.jsp i got the same message > Date: Wed, 7 Mar 2012 17:07:09 -0500 > Subject: Re: exception when running my struts jsp > From: davelnew...@gmail.com > To: user@struts.apache.org > > Your form bean name does not match the name used in the action's > configuration. > > Dave > > On Wednesday, March 7, 2012, Oussama Jlassi wrote: > > i use struts 1.3.10 > > in tomcat 6 when i run the url all i got http 500 how to solve my problem > > localhost:8080/struts1/login.jsp i got > > > > Etat HTTP 500 - > > > > > > > > type Rapport d'exception > > > > message > > > > description Le serveur a rencontré une erreur interne () qui l'a empêché > de satisfaire la requête. > > > > exception > > > > org.apache.jasper.JasperException: javax.servlet.ServletException: > javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: > "Loginform" on action: "/Login" > > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > cause mère > > > > javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot > retrieve definition for form bean: "Loginform" on action: "/Login" > > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865) > > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794) > > org.apache.jsp.login_jsp._jspService(login_jsp.java:91) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > cause mère > > > > javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: > "Loginform" on action: "/Login" > > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:881) > > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488) > > > org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:173) > > > org.apache.jsp.login_jsp._jspx_meth_html_005fhtml_005f0(login_jsp.java:124) > > org.apache.jsp.login_jsp._jspService(login_jsp.java:82) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > note La trace complète de la cause mère de cette erreur est disponible > dans les fichiers journaux de Apache Tomcat/6.0.35. > > > > > > > > Apache Tomcat/6.0.35 > > > > localhost:8080/struts1/index2.jsp i got > > > > Etat HTTP 500 - > > > > > > > > type Rapport d'exception > > > > message > > > > description Le serveur a rencontré une erreur interne () qui l'a empêché > de satisfaire la requête. > > > > exception > > > > org.apache.jasper.JasperException: javax.servlet.ServletException: > java.lang.NullPointerException > > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > > org.apache.jasper.servlet.JspServlet.service(J
RE: exception when running my struts jsp
i corrected struts-config.xml i put the first letter of form bean name in uppercase index2.jsp work but in login.jsp i got the same message > Date: Wed, 7 Mar 2012 17:07:09 -0500 > Subject: Re: exception when running my struts jsp > From: davelnew...@gmail.com > To: user@struts.apache.org > > Your form bean name does not match the name used in the action's > configuration. > > Dave > > On Wednesday, March 7, 2012, Oussama Jlassi wrote: > > i use struts 1.3.10 > > in tomcat 6 when i run the url all i got http 500 how to solve my problem > > localhost:8080/struts1/login.jsp i got > > > > Etat HTTP 500 - > > > > > > > > type Rapport d'exception > > > > message > > > > description Le serveur a rencontré une erreur interne () qui l'a empêché > de satisfaire la requête. > > > > exception > > > > org.apache.jasper.JasperException: javax.servlet.ServletException: > javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: > "Loginform" on action: "/Login" > > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > cause mère > > > > javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot > retrieve definition for form bean: "Loginform" on action: "/Login" > > > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865) > > > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794) > > org.apache.jsp.login_jsp._jspService(login_jsp.java:91) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > cause mère > > > > javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: > "Loginform" on action: "/Login" > > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:881) > > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488) > > > org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:173) > > > org.apache.jsp.login_jsp._jspx_meth_html_005fhtml_005f0(login_jsp.java:124) > > org.apache.jsp.login_jsp._jspService(login_jsp.java:82) > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > note La trace complète de la cause mère de cette erreur est disponible > dans les fichiers journaux de Apache Tomcat/6.0.35. > > > > > > > > Apache Tomcat/6.0.35 > > > > localhost:8080/struts1/index2.jsp i got > > > > Etat HTTP 500 - > > > > > > > > type Rapport d'exception > > > > message > > > > description Le serveur a rencontré une erreur interne () qui l'a empêché > de satisfaire la requête. > > > > exception > > > > org.apache.jasper.JasperException: javax.servlet.ServletException: > java.lang.NullPointerException > > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > > > cause mère > > > > javax.servlet.ServletException: java.lang.NullPointerException > > > org.a
Re: exception when running my struts jsp
Your form bean name does not match the name used in the action's configuration. Dave On Wednesday, March 7, 2012, Oussama Jlassi wrote: > i use struts 1.3.10 > in tomcat 6 when i run the url all i got http 500 how to solve my problem > localhost:8080/struts1/login.jsp i got > > Etat HTTP 500 - > > > > type Rapport d'exception > > message > > description Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête. > > exception > > org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: "Loginform" on action: "/Login" > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > cause mère > > javax.servlet.ServletException: javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: "Loginform" on action: "/Login" > org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:865) > org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:794) > org.apache.jsp.login_jsp._jspService(login_jsp.java:91) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > cause mère > > javax.servlet.jsp.JspException: Cannot retrieve definition for form bean: "Loginform" on action: "/Login" > org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:881) > org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:488) > org.apache.jsp.login_jsp._jspx_meth_html_005fform_005f0(login_jsp.java:173) > org.apache.jsp.login_jsp._jspx_meth_html_005fhtml_005f0(login_jsp.java:124) > org.apache.jsp.login_jsp._jspService(login_jsp.java:82) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > note La trace complète de la cause mère de cette erreur est disponible dans les fichiers journaux de Apache Tomcat/6.0.35. > > > > Apache Tomcat/6.0.35 > > localhost:8080/struts1/index2.jsp i got > > Etat HTTP 500 - > > > > type Rapport d'exception > > message > > description Le serveur a rencontré une erreur interne () qui l'a empêché de satisfaire la requête. > > exception > > org.apache.jasper.JasperException: javax.servlet.ServletException: java.lang.NullPointerException > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:412) > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > > cause mère > > javax.servlet.ServletException: java.lang.NullPointerException > org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286) > org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913) > org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449) > javax.servlet.http.HttpServlet.service(HttpServlet.java:617) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:709) > org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:680) > org.apache.jsp.index2_jsp._jspService(index2_jsp.java:57) > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388) > org.apache.jasper.servlet.Jsp
Re: exception when running my struts jsp
Go ahead and cut-and-paste the messages here. Dave (pardon brevity and typos, on cell) On Mar 7, 2012 2:46 PM, "Oussama Jlassi" wrote: > > i use struts 1.3.10in tomcat 6 when i run > localhost:8080/struts1/login.jsp i gothttp:// > img15.hostingpics.net/pics/826740login.png > > localhost:8080/struts1/index2.jsp i gothttp:// > img15.hostingpics.net/pics/192745index2.png > > >
Re: struts 2 exception - SEVERE: Exception starting filter struts2
We may need to know slightly more in order to help... Dave (pardon brevity and typos, on cell) On Mar 1, 2012 10:25 PM, "jay" wrote: > I have created simple struts 2 app with latest struts2 jar files. > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
struts 2 exception - SEVERE: Exception starting filter struts2
I have created simple struts 2 app with latest struts2 jar files. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org