Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
webconsole-3.1.2
-
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", "");