Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. AbstractStormpathWebMvcConfiguration$3.getMessage() has thrown a NoSuchMessageException
    Unsorted
    0
    3
    0
  2. Spring framework can't resolve the message code for the given locale
    Spring Context
    11
    12
    0

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.springframework.context.NoSuchMessageException: No message found under code 'stormpath.web.errors.7104' for locale 'en_US'.
    at org.springframework.context.support.AbstractMessageSource.getMessage(AbstractMessageSource.java:159)
    at com.stormpath.spring.config.AbstractStormpathWebMvcConfiguration$3.getMessage(AbstractStormpathWebMvcConfiguration.java:1043)

Solution

kolczagy1 month ago

In general such issue appears of non-existence locale or the MessageBundle is configured improperly.

For example, if you have messages.properties and messages_en.properties bundle, then bundle name is messages. If you have them in the WEB-INF folder, then base name is /WEB-INF/messages, i.e. according to /path/to/bundle/bundlename

The xml configuration looks like this

<bean id="messageSource"
     class="org.springframework.context.support.ReloadableResourceBundleMessageSource"
     p:basename="/WEB-INF/messages" />

Also check the message code exists in your messages_<locale>.properties file.

External results for this pattern (10)

  1. ymarconvia GitHub1 month ago
    No message found under code 'null' for locale 'en'.
    Show stack trace
  2. ymarconvia GitHub2 months ago
    No message found under code 'Reason 1' for locale 'fr'.
    Show stack trace
  3. ymarconvia GitHub2 months ago
    No message found under code 'Reason 1' for locale 'fr'.
    Show stack trace
  4. No message found under code 'label.btn.login' for locale 'en'.
    Show stack trace
  5. Unknown authorvia csdn.net4 months ago
    No message found under code 'username.required' for locale 'en_US'.
    Show stack trace
  6. Unknown authorvia coderanch.com4 months ago
    No message found under code 'username.required' for locale 'en_US'.
    Show stack trace
  7. Dwain Elsonvia JIRA4 months ago
    Exception in rendering component: [Component id = action]
    Show stack trace
  8. Dwain Elsonvia JIRA4 months ago
    Exception in rendering component: [Component id = action]
    Show stack trace
  9. Philippe Laflammevia JIRA4 months ago
    No message found under code 'Reason 1' for locale 'fr'.
    Show stack trace
  10. No message found under code 'ARRIVED' for locale 'en_sv'.
    Show stack trace