Struts Exception

Posted on 2011-04-19
Medium Priority
Last Modified: 2012-05-11
Hi - We are seeing the following exception trace in our log files - can some one please help me decipher this. Thanks

2011-04-19 11:02:10,655 WARN  [com.opensymphony.xwork2.util.OgnlValueStack] Caught an exception while evaluating expression '#userFeatures.containsValue('newAdjustment.action') ' against value stack
java.lang.NullPointerException: target is null for method containsValue
      at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:848)
      at ognl.ASTMethod.getValueBody(ASTMethod.java:73)
      at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
      at ognl.SimpleNode.getValue(SimpleNode.java:210)
      at ognl.ASTChain.getValueBody(ASTChain.java:109)
      at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
      at ognl.SimpleNode.getValue(SimpleNode.java:210)
      at ognl.Ognl.getValue(Ognl.java:333)
      at com.opensymphony.xwork2.util.OgnlUtil.getValue(OgnlUtil.java:194)
      at com.opensymphony.xwork2.util.OgnlValueStack.findValue(OgnlValueStack.java:238)
      at org.apache.struts2.components.Component.findValue(Component.java:322)
      at org.apache.struts2.components.If.start(If.java:85)
      at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:54)
      at org.apache.jsp.pages.adjustment_005fview_jsp._jspx_meth_s_005fif_005f0(adjustment_005fview_jsp.java:534)
      at org.apache.jsp.pages.adjustment_005fview_jsp._jspx_meth_s_005fform_005f0(adjustment_005fview_jsp.java:216)
      at org.apache.jsp.pages.adjustment_005fview_jsp._jspService(adjustment_005fview_jsp.java:118)
      at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
      at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Question by:abuyusuf

Assisted Solution

dr_linux earned 1000 total points
ID: 35425580
Basically when executing '#userFeatures.containsValue('newAdjustment.action')   userFeatures is null meaning it's not being instantiated.

Where is userFeatures first being used in the page?
LVL 20

Accepted Solution

Sathish David  Kumar N earned 1000 total points
ID: 35430899
>>>>>>>'newAdjustment.action' is null so that error is coming ...

Author Closing Comment

ID: 35770676
This is not exactly the answer I was looking for

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I came across an unsolved Outlook issue and here is my solution.
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question