在线等,紧急求救!!!
错误代码如下ognl.MethodFailedException: Method "setSexrequest" failed for object com.city.oa.model.product.ProductInfo@32a615 [java.lang.NoSuchMethodException: com.city.oa.model.product.ProductInfo.setSexrequest([Ljava.lang.String;)]
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1265)
at ognl.OgnlRuntime.setMethodValue(OgnlRuntime.java:1454)
at ognl.ObjectPropertyAccessor.setPossibleProperty(ObjectPropertyAccessor.java:85)
at ognl.ObjectPropertyAccessor.setProperty(ObjectPropertyAccessor.java:162)
at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.setProperty(ObjectAccessor.java:28)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.setProperty(CompoundRootAccessor.java:65)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:2225)
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:198)
at com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:161)
at
com.opensymphony.xwork2.ognl.OgnlValueStack.setValue(OgnlValueStack.java:149)
弄了一天也没整出来,没有其他的错误 --------------------编程问答-------------------- Sexrequest看看参数的类型对不对,long,int,可能不是string。 --------------------编程问答--------------------
类型是易做图 --------------------编程问答-------------------- .setSexrequest([Ljava.lang.String;)]应该是类型问题,你参数是什么类型,你就转下试试 --------------------编程问答-------------------- private Sex 易做图request;就是这个了 --------------------编程问答-------------------- 贴下报错代码段吧,这样好找点,有jsp部分的最好也贴下 --------------------编程问答--------------------
先谢谢了,明天就要弄好,打算放弃这个功能了
补充:Java , Web 开发