Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7213

javax.faces.application.Application getMessageBundle() method returns null in JBoss 5.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • No Release
    • JBossAS-5.1.0.GA
    • None
    • JBoss 5.1.0GA, JSF 1.2, Ubuntu Linux 9.04

      javax.faces.application.Application class's getMessageBundle() method returns null in JBoss 5.1. This causes a NullPointerException. Message bundle is retrieved correctly by the same means in JBoss 4.2.3. Sample code:

      Application app = context.getApplication();

      // The following line returns null in JBoss 5.1. Returns message bundle name correctly in JBoss 4.2.3.
      // (Should retrieve message bundle name configured in faces.config.xml file). NullPointerException follows this

      String messageBundleName = app.getMessageBundle();

      ResourceBundle messageBundle = ResourceBundle.getBundle(messageBundleName);

              Unassigned Unassigned
              acefrehley_jira Brendan Farragher (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: