Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2609

WebConsole doesn't work with JDK 1.3.1_06 because of Locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-3.1.2
    • webconsole-3.1.6
    • Web Console
    • None

    Description

      When creating Locale object, in webconsole we use new Locale("string"), which is new in JDK 1.4.
      If running on JDK 1.3 the following exception occurs:

      Exception: java.lang.NoSuchMethodError
      at org.apache.felix.webconsole.internal.i18n.ResourceBundleCache.getParentLocale(ResourceBundleCache.java:172)
      at org.apache.felix.webconsole.internal.i18n.ResourceBundleCache.getResourceBundleInternal(ResourceBundleCache.java:88)
      at org.apache.felix.webconsole.internal.i18n.ResourceBundleCache.getResourceBundle(ResourceBundleCache.java:68)
      at org.apache.felix.webconsole.internal.i18n.ResourceBundleManager.getResourceBundle(ResourceBundleManager.java:85)
      at org.apache.felix.webconsole.internal.servlet.OsgiManager.wrapResponse(OsgiManager.java:572)
      at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:426)
      at org.apache.felix.webconsole.internal.servlet.OsgiManager.service(OsgiManager.java:375)
      at com.prosyst.mbs.impl.services.http.ServletProperties.service(ServletProperties.java:108)
      at com.prosyst.mbs.impl.services.http.Response.makeAnswer(Response.java:212)
      at com.prosyst.mbs.impl.services.http.ThreadProcess.run(ThreadProcess.java:102)
      at com.prosyst.util.impl.tpt.threadpool.ExecutorGeneral.run(ExecutorGeneral.java:182)

      It can be easily fixed by replacing new Locale("string") with new Locale("string", "");

      Attachments

        Activity

          People

            v_valchev Valentin Valchev
            v_valchev Valentin Valchev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: