dev@glassfish.java.net

"Could not create bundle object" WARNING messages

From: Arun Gupta <Arun.Gupta_at_Sun.COM>
Date: Mon, 21 Jul 2008 09:44:11 -0700

Even thought the warnings below are innocuous, they can very well scare
anybody starting v3 for the first time. What is the ETA for them to be
cleaned up ?

INFO: Singleton already initialized as
com.sun.enterprise.module.impl.HK2Factory_at_711dc088
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique.
         at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
         at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
         at
org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules(AbstractModulesRegistryImpl.java:344)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:134)
         at
com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:392)
         at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
         at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
         at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
         at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
         at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
         at java.lang.Thread.run(Thread.java:637)
Jul 21, 2008 9:40:42 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not create
bundle object. while adding location =
file:/Users/arungupta/testbed/glassfish/v3/snapshot/glassfish/modules/osgi-adapter-0.3.8.jar
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique.
         at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
         at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
         at
org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules(AbstractModulesRegistryImpl.java:344)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:134)
         at
com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:392)
         at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
         at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
         at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
         at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
         at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
         at java.lang.Thread.run(Thread.java:637)
Jul 21, 2008 9:40:43 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not create
bundle object. while adding location =
file:/Users/arungupta/testbed/glassfish/v3/snapshot/glassfish/modules/auto-depends-0.3.8.jar
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique.
         at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
         at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
         at
org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules(AbstractModulesRegistryImpl.java:344)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:134)
         at
com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:392)
         at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
         at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
         at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
         at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
         at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
         at java.lang.Thread.run(Thread.java:637)
Jul 21, 2008 9:40:43 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not create
bundle object. while adding location =
file:/Users/arungupta/testbed/glassfish/v3/snapshot/glassfish/modules/hk2-core-0.3.8.jar
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique.
         at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
         at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
         at
org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules(AbstractModulesRegistryImpl.java:344)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:134)
         at
com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:392)
         at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
         at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
         at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
         at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
         at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
         at java.lang.Thread.run(Thread.java:637)
Jul 21, 2008 9:40:43 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not create
bundle object. while adding location =
file:/Users/arungupta/testbed/glassfish/v3/snapshot/glassfish/modules/tiger-types-osgi-0.3.8.jar
org.osgi.framework.BundleException: Bundle symbolic name and version are
not unique.
         at org.apache.felix.framework.Felix.createModule(Felix.java:3408)
         at
org.apache.felix.framework.Felix.createBundleInfo(Felix.java:3332)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2315)
         at org.apache.felix.framework.Felix.installBundle(Felix.java:2229)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:132)
         at
org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:110)
         at
org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl.newModule(OSGiModulesRegistryImpl.java:90)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.getModules(AbstractModulesRegistryImpl.java:344)
         at
com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:134)
         at
com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:392)
         at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:113)
         at
org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
         at org.apache.felix.framework.Felix._startBundle(Felix.java:1610)
         at org.apache.felix.framework.Felix.startBundle(Felix.java:1544)
         at
org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1125)
         at
org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:258)
         at java.lang.Thread.run(Thread.java:637)
Jul 21, 2008 9:40:43 AM OSGiModulesRegistryImpl add
WARNING: Exception org.osgi.framework.BundleException: Could not create
bundle object. while adding location =
file:/Users/arungupta/testbed/glassfish/v3/snapshot/glassfish/modules/config-0.3.8.jar

-Arun

-- 
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta