Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error while submitting the page

 
Vallaru smitha
Ranch Hand
Posts: 87
Firefox Browser Hibernate Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am getting is this error while submitting a page with a checkbox in struts2. Can one shed somelight what it is and why does it come.

[WARN] OgnlValueStack - Error setting value <ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@14720ef)>ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@14720ef)
at ognl.OgnlRuntime.setProperty(OgnlRuntime.java:1651)
at ognl.ASTProperty.setValueBody(ASTProperty.java:101)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.ASTChain.setValueBody(ASTChain.java:172)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork2.ognl.OgnlUtil.se

Thanks
>
 
Tom Rispoli
Ranch Hand
Posts: 349
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It looks like you have an input field on your screen whose name attribute indicates to struts that it should be placed under a property named "x". Posting your jsp so we can see the full name of this input field and posting your action class (and any other classes related to this "x" property) to see the getters and setters might help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic