Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

errorMessage Exceptions

 
Ranganath Junpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have a simple Login form to which i have my POJO binded. But the following exceptions are fired when i try to access the status.errorMessage. Kindly let me know what might be problem be.

============================================================================
FYI here is the stack of Exception
============================================================================
javax.servlet.ServletException: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute "value" with value "${status.errorMessage}": An error occurred while getting property "errorMessage" from an instance of class org.springframework.web.servlet.support.BindStatus (org.springframework.context.NoSuchMessageException: No message found under code 'Invalid User Name.Login.username' for locale 'en_US'.)
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:842)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
org.apache.jsp.WEB_002dINF.jsp.Login_jsp._jspService(Login_jsp.java:280)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:243)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1141)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:878)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


root cause

org.springframework.context.NoSuchMessageException: No message found under code 'Invalid User Name.Login.username' for locale 'en_US'.
org.springframework.context.support.DelegatingMessageSource.getMessage(DelegatingMessageSource.java:79)
org.springframework.context.support.DelegatingMessageSource.getMessage(DelegatingMessageSource.java:71)
org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:836)
org.springframework.web.servlet.support.RequestContext.getMessage(RequestContext.java:534)
org.springframework.web.servlet.support.BindStatus.initErrorMessages(BindStatus.java:191)
org.springframework.web.servlet.support.BindStatus.getErrorMessage(BindStatus.java:287)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
org.apache.taglibs.standard.lang.jstl.ArraySuffix.evaluate(ArraySuffix.java:278)
org.apache.taglibs.standard.lang.jstl.ComplexValue.evaluate(ComplexValue.java:107)
org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:204)
org.apache.taglibs.standard.lang.jstl.ELEvaluator.evaluate(ELEvaluator.java:163)
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:101)
org.apache.taglibs.standard.lang.jstl.Evaluator.evaluate(Evaluator.java:129)
org.apache.taglibs.standard.lang.support.ExpressionEvaluatorManager.evaluate(ExpressionEvaluatorManager.java:75)
org.apache.taglibs.standard.tag.el.core.ExpressionUtil.evalNotNull(ExpressionUtil.java:48)
org.apache.taglibs.standard.tag.el.core.OutTag.evaluateExpressions(OutTag.java:99)
org.apache.taglibs.standard.tag.el.core.OutTag.doStartTag(OutTag.java:57)
org.apache.jsp.WEB_002dINF.jsp.Login_jsp._jspx_meth_core_005fout_005f1(Login_jsp.java:314)
org.apache.jsp.WEB_002dINF.jsp.Login_jsp._jspService(Login_jsp.java:175)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:142)
org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:243)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1141)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:878)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


============================================================================

Thank you
Regards
 
Karthik Rajendiran
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Friend

1. Can you post your POJO.
2. Make sure ELanguage is working. if not try adding isELIgnored
<%@ page isELIgnored="false" %>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic