org.springframework.context.NoSuchMessageException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Loading resource bundles: Spring
    via Stack Overflow by PrasanthNath
    ,
  • Inernationalization with Spring Boot
    via Stack Overflow by G.Spansky
    ,
  • Taken from ONYX-15 to separate issues: In the participant page, click on cancel (in the right box in the header of the page) You will receive: WicketMessage: Exception in rendering component: [MarkupContainer [Component id = reasonsSelect, page = org.obiba.onyx.webapp.participant.page.InterviewPage, path = 14:modal:modal:content:form:reasons:reasonsSelect.DropDownChoice, isVisible = true, isVersioned = false]] Root cause: org.springframework.context.NoSuchMessageException: No message found under code 'Reason 1' for locale 'fr'. at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:136) at org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:984) at org.obiba.onyx.wicket.action.ActionDefinitionPanel$ReasonsFragment$1.getDisplayValue(ActionDefinitionPanel.java:177) at org.apache.wicket.markup.html.form.AbstractChoice.appendOptionHtml(AbstractChoice.java:374) at org.apache.wicket.markup.html.form.AbstractChoice.onComponentTagBody(AbstractChoice.java:352) at org.apache.wicket.Component.renderComponent(Component.java:2481) [ Show » ] Nathalie Émond - 25/Sep/08 05:25 PM In the participant page, click on cancel (in the right box in the header of the page) You will receive: WicketMessage: Exception in rendering component: [MarkupContainer [Component id = reasonsSelect, page = org.obiba.onyx.webapp.participant.page.InterviewPage, path = 14:modal:modal:content:form:reasons:reasonsSelect.DropDownChoice, isVisible = true, isVersioned = false]] Root cause: org.springframework.context.NoSuchMessageException: No message found under code 'Reason 1' for locale 'fr'. at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:136) at org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:984) at org.obiba.onyx.wicket.action.ActionDefinitionPanel$ReasonsFragment$1.getDisplayValue(ActionDefinitionPanel.java:177) at org.apache.wicket.markup.html.form.AbstractChoice.appendOptionHtml(AbstractChoice.java:374) at org.apache.wicket.markup.html.form.AbstractChoice.onComponentTagBody(AbstractChoice.java:352) at org.apache.wicket.Component.renderComponent(Component.java:2481)
    via by Philippe Laflamme,
    • org.springframework.context.NoSuchMessageException: No message found under code 'username.required' for locale 'en_US'. at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:161) at org.springframework.context.support.AbstractApplicationContext.getMessage(AbstractApplicationContext.java:1196) at org.springframework.web.servlet.support.RequestContext.getMessage(RequestContext.java:553) at org.springframework.web.servlet.support.BindStatus.initErrorMessages(BindStatus.java:177) at org.springframework.web.servlet.support.BindStatus.getErrorMessages(BindStatus.java:273) at org.springframework.web.servlet.tags.form.ErrorsTag.exposeAttributes(ErrorsTag.java:173) at org.springframework.web.servlet.tags.form.AbstractHtmlElementBodyTag.writeTagContent(AbstractHtmlElementBodyTag.java:48) at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:102) at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:79) at org.apache.jsp.WEB_002dINF.jsp.home_jsp._jspService(home_jsp.java:112) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238) at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250) at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Tahir
    8 times, last one,
    Unknown visitor1 times, last one,