com.opensymphony.xwork2.ognl.OgnlValueStack - Error setting expression 'customer.applyRate' with value '[Ljava.lang.String;@7d3fae2c'

出错的3个最可能的原因:我是第二种错误

1、action配置错误

  1. <action name="doCreateMeetingInfo" class="meetingInfoAction" method="doCreateMeetingInfo">
  2. <result type="json">
  3. <param name="includeProperties">result</param>
  4. </result>
  5. </action>
<action name="doCreateMeetingInfo" class="meetingInfoAction" method="doCreateMeetingInfo">
        <result type="json">
           <param name="includeProperties">result</param>
        </result>
     </action>

2、检查一下你表单的jsp页面是不是有两个name是book.author的textfield,这个异常是因为把一个数组的值赋给了author这个属性

3、类型错误,比如String 类型赋值给Int类型

[Ljava.lang.String;@7d3fae2c‘ ]   代表一个数组

com.opensymphony.xwork2.ognl.OgnlValueStack - Error setting expression 'customer.applyRate' with value '[Ljava.lang.String;@7d3fae2c'

时间: 2024-11-09 09:23:02

com.opensymphony.xwork2.ognl.OgnlValueStack - Error setting expression 'customer.applyRate' with value '[Ljava.lang.String;@7d3fae2c'的相关文章

ognl.OgnlException: target is null for setProperty(null, &quot;login&quot;, [Ljava.lang.String;@133cdbd) 国际化时,登录按钮报错

虽然不影响程序运行,但是会报错警告 警告: Error setting expression 'html.login' with value '[Ljava.lang.String;@133cdbd'ognl.OgnlException: target is null for setProperty(null, "login", [Ljava.lang.String;@133cdbd) 登录代码 <s:submit id="login" key="h

解决ognl.OgnlException: target is null for setProperty(null, &quot;authorized&quot;, [Ljava.lang.String;@1d7ce3)

刚看到网上关于解决ognl.OgnlException: target is null for setProperty(null, "authorized", [Ljava.lang.String;@1d7ce3)错误,看了几篇都发现不对,断点调试下,解决了该问题.分享给大家: 解决类似于ognl.OgnlException: target is null for setProperty(null, "authorized", [Ljava.lang.String;

文件上传Error setting expression &#39;upload&#39; with value &#39;[Ljava.lang.String

ognl.MethodFailedException: Method "setUploadImage" failed for object [email protected] [java.lang.NoSuchMethodException: cn.itcast.upload.UploadAction.setUploadImage([Ljava.lang.String;)] at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.ja

文件上传错误:Error setting expression &#39;uploadImage&#39; with value &#39;[Ljava.lang.String;@5ff8a691&#39;

警告: Error setting expression 'uploadImage' with value '[Ljava.lang.String;@5ff8a691' ognl.MethodFailedException: Method "setUploadImage" failed for object [email protected] [java.lang.NoSuchMethodException: cn.itcast.upload.UploadAction.setUploa

解决kindeidtor与struts2框架交互WARN OgnlValueStack:68 - Error setting value [[Ljava.lang.String;@10da4df]的bug

当用使用ssh框架,前端用到kindeitor富文本编辑器时候,上传文件后有一个图片管理.当点击图片管理的时候,在后台会报一个异常: WARN OgnlValueStack:68 - Error setting value [[Ljava.lang.String;@10da4df] with expression [1501984936145]java.lang.NumberFormatException: For input string: "1501984936145"150198

sruts警告: Error setting expression &#39;myfile&#39; with value &#39;[Ljava.lang.String;@10c0f66&#39;

警告: Error setting expression 'myfile' with value '[Ljava.lang.String;@10c0f66'ognl.MethodFailedException: Method "setMyfile" failed for object [email protected] [java.lang.NoSuchMethodException: com.zw.monday.UploadAction.setMyfile([Ljava.lang.S

Error setting expression &#39;XXX‘&#39;[Ljava.lang.with value &#39;[Ljava.lang.String;@10101fb&#39;

ognl报的警告,说明你的格式错误,一般是日期格式错误,格式转换器的应用,id设置的类型不对String 类型,输入了Int类型所以方法一是改变这个类中的id的属性 然后get和set也跟着改变 另一个问题可能是配置文件的位置放错了,我就是这个原因,配置文件要放在被配置的类的那个文件夹内,而不是src中 放在action包当中,我就是这个问题,希望对您有帮助. Error setting expression 'XXX''[Ljava.lang.with value '[Ljava.lang.S

struts2启动报错:ERROR com.opensymphony.xwork2.conversion.impl.DefaultConversionPropertiesProcessor - Conversion registration error

[framework] 2019-12-05 11:34:05,441 - org.springframework.web.context.ContextLoader -5352 [RMI TCP Connection(3)-127.0.0.1]INFO org.springframework.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 5349 ms timer appl

java.lang.NoClassDefFoundError: com/opensymphony/xwork2/util/TextUtils

java.lang.NoSuchMethodError: com.opensymphony.xwork2.ActionContext.get(Ljava/lang/String;)Ljava/lang /Object;”异常,导致该异常的是jsonplugin的jar包与Struts2的jar包不匹配引起的. jsonplugin-0.33.jar     Struts 2 JSON Plugin 0.33 匹配 Struts 2.1.x Compatiblejsonplugin-0.32.ja