Parametersinterceptor Error Setting Expression
Contents |
here for a quick overview of the site Help error setting expression with value struts2 Center Detailed answers to any questions you might have Meta
Parameters Interceptor Example Struts2
Discuss the workings and policies of this site About Us Learn more about Stack unexpected exception caught setting '_' on 'class Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
Com.opensymphony.xwork2.interceptor.parametersinterceptor Error
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Unexpected Exception caught setting 'xxx' on 'class xxx: Error setting expression 'xxx' with value ['x', ] com.opensymphony.xwork2.ognl.ognlvaluestack : error setting expression up vote 3 down vote favorite 5 I'm passing some parameters to an action class implementing ModelDriven
here for a quick overview of the site Help Center Detailed
Error Setting Expression Submit' With Value ['submit', ]
answers to any questions you might have Meta Discuss the
Interceptor-ref Name= Params
workings and policies of this site About Us Learn more about Stack Overflow the struts2 interceptor request parameters company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join http://stackoverflow.com/questions/21018018/unexpected-exception-caught-setting-xxx-on-class-xxx-error-setting-expressio the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error setting expression up vote 1 down vote favorite For some reason I am getting the following error message: Developer Notification http://stackoverflow.com/questions/20252774/error-setting-expression (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'claimForm.payableEvents[1].totalHours' on 'class com.somedomain.application.action.claimreimbursement.ProcessSaveClaimFormAction: Error setting expression 'claimForm.payableEvents[1].totalHours' with value '[Ljava.lang.String;@54f242c1' Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'claimForm.payableEvents[2].totalHours' on 'class com.somedomain.application.action.claimreimbursement.ProcessSaveClaimFormAction: Error setting expression 'claimForm.payableEvents[2].totalHours' with value '[Ljava.lang.String;@1ff32b5d' Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'claimForm.payableEvents[1].totalHours' on 'class com.somedomain.application.action.claimreimbursement.ProcessSaveClaimFormAction: Error setting expression 'claimForm.payableEvents[1].totalHours' with value '[Ljava.lang.String;@54f242c1' Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'claimForm.payableEvents[2].totalHours' on 'class com.somedomain.application.action.claimreimbursement.ProcessSaveClaimFormAction: Error setting expression 'claimForm.payableEvents[2].totalHours' with value '[Ljava.lang.String;@1ff32b5d' According to the article on Parameters Interceptor under the heading of Warning on missing parameters, it was my understanding that there was a problem with the setter on the parameter. I have gone back and checked, I do indeed have a setter named properly for the pa
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about http://stackoverflow.com/questions/15309864/parametersinterceptor-unexpected-exception-caught-error-setting-expression-x Stack Overflow the company Business Learn more about hiring developers or posting ads with http://www.ibm.com/support/docview.wss?uid=swg21665673 us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up ParametersInterceptor - Unexpected Exception caught Error setting expression 'x' with value ' up vote 3 error setting down vote favorite 1 package com.achala.saraswathi.action; import com.achala.saraswathi.data.AdminBE; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionSupport; public class AdminLoginAction extends ActionSupport{ private AdminBE adminBE; public String execute(){ return Action.SUCCESS; } public String adminLogin(){ if(adminBE.getUserName().equals("admin")&&adminBE.getPassword().equals("admin")){ return Action.SUCCESS; } addActionError("Invalid username or password"); return Action.INPUT; } public AdminBE getAdminBE() { return adminBE; } public void setAdminBE(AdminBE adminBE) { this.adminBE = adminBE; } } After clicking that submit button the ParametersInterceptor - Unexpected Exception caught Error setting error setting expression expression 'x' with value error is coming, I don't know why? java parameters struts2 ognl actionresult share|improve this question edited Apr 19 '14 at 8:33 Roman C 34.4k133559 asked Mar 9 '13 at 10:50 Naveen Kocherla 66111 You were kind enough to format code. –Roman C Mar 9 '13 at 11:16 I have formated the code –Naveen Kocherla Mar 11 '13 at 6:53 add a comment| 3 Answers 3 active oldest votes up vote 2 down vote I suspected that your form is using submit button with type="image". With this button it will post parameter x,y to the request parameter. So to avoid this error you can: Use another type of button such as with background image Add x, y property to your action class share|improve this answer answered Dec 25 '13 at 10:01 M Kaweepatt Churcharoen 17817 add a comment| up vote 0 down vote The error is you are trying to set the value of the property that is not initialized. In the login.action you should write private AdminBE adminBE = new AdminBE(); and to action errors are not remain you should return SUCCESS result of type redirect. share|improve this answer answered Mar 11 '13 at 8:51 Roman C 34.4k133559 still, sam
ERROR level in SBC and SFS Technote (troubleshooting) Problem(Abstract) After having installed the Security Fix Pack 1 for versions like 9.1, 9.2, or 9.2.1, the following kind of error messages are printed the application server and SCI logs at ERROR level when navigating in Sterling Business Center or Sterling Field Sales: ERROR [ParametersInterceptor] Developer Notification (set struts.devMode to false to disable this message): Unexpected Exception caught setting 'scFlag' on 'class com.sterlingcommerce.ui.web.platform.struts.SCUIXAPIAggregatorMashupAction: Error setting expression 'scFlag' with value ['Y', ] Error setting expression 'scFlag' with value ['Y', ] - [unknown location] or com.opensymphony.xwork2.util.logging.commons.CommonsLogger error Could not reload resource bundles java.lang.NoSuchFieldException: cacheList Resolving the problem Since these errors are logged by the 3rd party Struts code, there are two options to suppress them: 1.) set struts.devMode=false: Go to INSTALL_DIR/repository/eardata/sbc/extn. Copy struts.properties.sample as struts.properties. Set struts.devMode=false. Rebuild the EAR file. Please note that this change might have to be done for other modules that also use Struts as well, e.g. sfs. 2.) build the EAR file with -DdevMode=false. Document information More support for: Sterling Selling and Fulfillment Suite Software version: 9.1, 9.2, 9.2.1 Operating system(s): Platform Independent Reference #: 1665673 Modified date: 06 December 2014 Site availability Site assistance Contact and feedback Need support? Submit feedback to IBM Support 1-800-IBM-7378 (USA) Directory of worldwide contacts Contact Privacy Terms of use Accessibility