[OS-JIRA] Created: (WOL-633) There is already a unique instance for Bundle named 'xxx'

From: JIRA (Timo)
Date: Wed Nov 07 2007 - 06:40:59 EST

  • Next message: Alan Zebchuk: "Re: view filter in eclipse"

    There is already a unique instance for Bundle named 'xxx'
    ---------------------------------------------------------

                     Key: WOL-633
                     URL: http://issues.objectstyle.org/jira/browse/WOL-633
                 Project: WOProject/WOLips
              Issue Type: Bug
              Components: wolips
        Affects Versions: 3.3.* (nightly build please specify)
             Environment: build 4611
                Reporter: Timo Höpfner
                Priority: Blocker

    Since updating to the latest nightly build, I have problems launching most of my projects in eclipse. Upon launch I get e.g.

    [2007-11-07 12:30:43 CET] <main> Initialized : er.extensions.ERXExtensions
    [2007-11-07 12:30:44 CET] <main> A fatal exception occurred: null
    [2007-11-07 12:30:44 CET] <main> java.lang.ExceptionInInitializerError
            at com.webobjects.appserver._private.WOProperties.initUserDefaultsKeys(WOProperties.java:187)
            at com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:5081)
            at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:551)
            at er.extensions.ERXAjaxApplication.<init>(ERXAjaxApplication.java:24)
            at er.extensions.ERXApplication.<init>(ERXApplication.java:504)
            at de.ddcom.bree.application.Application.<init>(Application.java:33)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
            at java.lang.Class.newInstance0(Class.java:350)
            at java.lang.Class.newInstance(Class.java:303)
            at com.webobjects.appserver.WOApplication.main(WOApplication.java:323)
            at er.extensions.ERXApplication.main(ERXApplication.java:355)
            at de.ddcom.bree.application.Application.main(Application.java:30)
    Caused by: java.lang.IllegalStateException: <com.webobjects.foundation.NSBundle> warning: There is already a unique instance for Bundle named 'Ajax'. Use NSBundle.bundleForName(Ajax) to access it: <com.webobjects.foundation.NSBundle name:'Ajax' bundlePath:'/Users/th/Development/EclipseWorkspace/Wonder/Ajax/Ajax/build/Ajax.framework' packages:'("er.ajax", "com.metaparadigm.jsonrpc")' 74 classes >
            at com.webobjects.foundation.NSBundle.CreateBundleWithPath(NSBundle.java:825)
            at com.webobjects.foundation.NSBundle._bundleWithPathShouldCreateIsJar(NSBundle.java:487)
            at com.webobjects.foundation.NSBundle.LoadBundlesFromClassPath(NSBundle.java:742)
            at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:365)
            ... 15 more

    This seems to happen always, when the application has the framework added both as WO Framework (for deployment) and as project reference (for runtime).

    AFAIK this was working fine with build 4606.

    -- 
    This message is automatically generated by JIRA.
    -
    If you think it was sent incorrectly contact one of the administrators: http://issues.objectstyle.org/jira/secure/Administrators.jspa
    -
    For more information on JIRA, see: http://www.atlassian.com/software/jira
    



    This archive was generated by hypermail 2.0.0 : Wed Nov 07 2007 - 06:42:28 EST