jxta-jxse
  1. jxta-jxse
  2. JXTA_JXSE-367

Can't find bundle for base name net.jxta.impl.config, locale nl_NL

    Details

    • Issuezilla Id:
      367

      Description

      Reported by Kees:

      Hi,

      I have just started to implement JXSE 2.6 as an equinox bundle, and I am running
      into some problems when I start the network manager. It throws an exception from
      the net.jxta.id.IDFactory (see below).

      Apparently the IDFactory is missing the bundle "net.jxta.impl.config" for the
      locale that I'm using (nl-NL).

      What is the recommended approach to resolve this problem?

      Thanks

      Kees

      java.lang.IllegalStateException: Could not initialize ID defaults
      at net.jxta.id.IDFactory.<init>(IDFactory.java:636)
      at net.jxta.id.IDFactory.<clinit>(IDFactory.java:127)
      at net.jxta.platform.NetworkManager.<init>(NetworkManager.java:156)
      at net.jxta.platform.NetworkManager.<init>(NetworkManager.java:172)
      at org.condast.jxse.Activator.start(Activator.java:20)
      at
      org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:783)
      at java.security.AccessController.doPrivileged(Native Method)
      at
      org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:774)
      at
      org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:755)
      at
      org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:352)
      at
      org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:370)
      at
      org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1068)
      at
      org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:557)
      at
      org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:464)
      at
      org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:248)
      at
      org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:445)
      at
      org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:227)
      at
      org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:337)
      Caused by: java.util.MissingResourceException: Can't find bundle for base name
      net.jxta.impl.config, locale nl_NL
      at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
      at java.util.ResourceBundle.getBundleImpl(Unknown Source)
      at java.util.ResourceBundle.getBundle(Unknown Source)
      at net.jxta.id.IDFactory.<init>(IDFactory.java:629)

        Activity

        Hide
        adamman71 added a comment -

        From
        http://javahowto.blogspot.com/2006/05/debug-java-util-missingresourceexcepti.html and
        by using the code, it seems like using ResourceBundle.getBundle() to load
        properties is the culprit.

        Show
        adamman71 added a comment - From http://javahowto.blogspot.com/2006/05/debug-java-util-missingresourceexcepti.html and by using the code, it seems like using ResourceBundle.getBundle() to load properties is the culprit.
        Hide
        adamman71 added a comment -

        Patched .jar made available at http://kenai.com/projects/jxse/pages/26BetaRel
        for review by the community.

        Show
        adamman71 added a comment - Patched .jar made available at http://kenai.com/projects/jxse/pages/26BetaRel for review by the community.
        Hide
        adamman71 added a comment -

        It turns out that this problem is more fundamental to Equinox. An enhancement
        solution is possible, but it is postponed to Cheeseburger for now.

        Show
        adamman71 added a comment - It turns out that this problem is more fundamental to Equinox. An enhancement solution is possible, but it is postponed to Cheeseburger for now.

          People

          • Assignee:
            keesp
            Reporter:
            adamman71
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: