Struts Exception

Posted on 2011-04-19
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(
      at ognl.ASTMethod.getValueBody(
      at ognl.SimpleNode.evaluateGetValueBody(
      at ognl.SimpleNode.getValue(
      at ognl.ASTChain.getValueBody(
      at ognl.SimpleNode.evaluateGetValueBody(
      at ognl.SimpleNode.getValue(
      at ognl.Ognl.getValue(
      at com.opensymphony.xwork2.util.OgnlUtil.getValue(
      at com.opensymphony.xwork2.util.OgnlValueStack.findValue(
      at org.apache.struts2.components.Component.findValue(
      at org.apache.struts2.components.If.start(
      at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(
      at org.apache.jsp.pages.adjustment_005fview_jsp._jspx_meth_s_005fif_005f0(
      at org.apache.jsp.pages.adjustment_005fview_jsp._jspx_meth_s_005fform_005f0(
      at org.apache.jsp.pages.adjustment_005fview_jsp._jspService(
      at org.apache.jasper.runtime.HttpJspBase.service(
      at javax.servlet.http.HttpServlet.service(
      at org.apache.jasper.servlet.JspServletWrapper.service(
      at org.apache.jasper.servlet.JspServlet.serviceJspFile(
      at org.apache.jasper.servlet.JspServlet.service(
      at javax.servlet.http.HttpServlet.service(
Question by:abuyusuf
    LVL 6

    Assisted Solution

    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

    >>>>>>>'newAdjustment.action' is null so that error is coming ...

    Author Closing Comment

    This is not exactly the answer I was looking for

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
    This paper addresses the security of Sennheiser DECT Contact Center and Office (CC&O) headsets. It describes the DECT security chain comprised of “Pairing”, “Per Call Authentication” and “Encryption”, which are all part of the standard DECT protocol.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now