[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [equinox-dev] confusing equinox error log


Vinayak, I suggest entering a bug report for this (under RT > Equinox > Components).




Vinayak Joshi <vjoshi2002@xxxxxxxxx>
Sent by: equinox-dev-bounces@xxxxxxxxxxx

09/05/2008 12:09 PM

Please respond to
vjoshi2002@xxxxxxxxx; Please respond to
Equinox development mailing list <equinox-dev@xxxxxxxxxxx>

To
equinox-dev@xxxxxxxxxxx
cc
Subject
[equinox-dev] confusing equinox error log





Hi

I am running some bundles in equinox and one of the bundles routinely polls a designated directory to check if the bundle-jars there have been updated since they were last installed into the equinox runtime. On finding updates, it uses "bundle.update()" to cause an update. thereafter, it invokes a PackageAdminService.refresh(null) to force all the bundles /packages to be resolved again. I find it working fine, however, some dangerous looking logs get generated in the configuration folder and I wanted to know if someone can tell what exactly is happening here. Mainly there are two exceptions I am seeing:

1. !ENTRY org.eclipse.osgi 4 0 2008-04-12 05:31:46.546
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NullPointerException
   at org.eclipse.core.internal.runtime.ResourceTranslator.getResourceBundle(ResourceTranslator.java:63)

2. !ENTRY org.eclipse.equinox.registry 4 0 2008-04-12 05:31:47.660
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Another singleton version selected: org.eclipse.equinox.registry_3.3.0.v20070522
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(AbstractBundle.java:702)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.update(AbstractBundle.java:613)

If these messages indicate temporary conditions during the bundle/package resolution then is there a way for me to suppress these messages?

Detailed logs below:

!SESSION 2008-04-12 05:31:25.179 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_07
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Framework arguments:
Command-line arguments:  -console -clean

!ENTRY org.eclipse.osgi 4 0 2008-04-12 05:31:46.530
!MESSAGE An unexpected runtime error has occurred.
!STACK 0
java.lang.NullPointerException
   at org.eclipse.core.internal.runtime.ResourceTranslator.getResourceBundle(ResourceTranslator.java:63)
   at org.eclipse.core.internal.registry.osgi.EclipseBundleListener.addBundle(EclipseBundleListener.java:160)
   at org.eclipse.core.internal.registry.osgi.EclipseBundleListener.bundleChanged(EclipseBundleListener.java:69)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1234)
   at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
   at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
   at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1518)
   at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1469)
   at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:489)
   at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:223)
   at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.resolveBundles(PackageAdminImpl.java:173)
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:304)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(AbstractBundle.java:702)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.update(AbstractBundle.java:613)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader.doUpdates(ModuleLoader.java:299)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader.refreshModules(ModuleLoader.java:196)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader._refreshModules(ModuleLoader.java:103)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
   at java.lang.Thread.run(Thread.java:619)

!ENTRY org.eclipse.equinox.registry 4 0 2008-04-12 05:31:46.535
!MESSAGE
!STACK 0
java.lang.NullPointerException
   at org.eclipse.core.internal.runtime.ResourceTranslator.getResourceBundle(ResourceTranslator.java:63)
   at org.eclipse.core.internal.registry.osgi.EclipseBundleListener.addBundle(EclipseBundleListener.java:160)
   at org.eclipse.core.internal.registry.osgi.EclipseBundleListener.bundleChanged(EclipseBundleListener.java:69)
   at org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:1234)
   at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
   at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
   at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1518)
   at org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1469)
   at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.processDelta(PackageAdminImpl.java:489)
   at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:223)
   at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.resolveBundles(PackageAdminImpl.java:173)
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:304)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(AbstractBundle.java:702)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.update(AbstractBundle.java:613)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader.doUpdates(ModuleLoader.java:299)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader.refreshModules(ModuleLoader.java:196)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader._refreshModules(ModuleLoader.java:103)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
   at java.lang.Thread.run(Thread.java:619)

!ENTRY org.eclipse.equinox.common 4 0 2008-04-12 05:31:46.540
!MESSAGE
!STACK 0
org.osgi.framework.BundleException: The bundle could not be resolved. Reason: Another singleton version selected: org.eclipse.equinox.common_3.3.0.v20070426
   at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:305)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(AbstractBundle.java:702)
   at org.eclipse.osgi.framework.internal.core.AbstractBundle.update(AbstractBundle.java:613)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader.doUpdates(ModuleLoader.java:299)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader.refreshModules(ModuleLoader.java:196)
   at com.novell.zenworks.agent.core.modules.loader.internal.ModuleLoader._refreshModules(ModuleLoader.java:103)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute(FrameworkCommandInterpreter.java:150)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(FrameworkConsole.java:302)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkConsole.java:287)
   at org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConsole.java:223)
   at java.lang.Thread.run(Thread.java:619)

.
.
. the above messages repeat a few times with a gap of few milliseconds

Regards,
Vinayak.

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev