Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » userregionfactory failed to start (only after reboot).
userregionfactory failed to start (only after reboot). [message #764465] Mon, 12 December 2011 03:31 Go to next message
malik  is currently offline malik
Messages: 13
Registered: November 2011
Junior Member
hi,

my English is not so good so sorry for my mistake.

when i run virgo on my vm (ubunto) in deployment mode
i got this exception

2011-12-08 15:17:16.584 INFO  [kernel-dm-5] o.s.b.f.s.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@10cc9b4: defining beans [dumpGenerator,eventLogger,tracingService,kernelConfig,exporter,deadlockMonitor,workAreaFactory,kernelWorkArea,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0,repository,bundleBridge,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#1,libraryBridge,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#2,parBridge,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#3,planBridge,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#4,org.springframework.osgi.service.importer.support.OsgiServiceProxyFactoryBean#0,propertiesBridge,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#5,repositoryFactory,org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#6,hashGenerator]; root of factory hierarchy
2011-12-08 15:17:44.089 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&quasiFrameworkFactory' in bundle 'org.eclipse.virgo.kernel.shell' version '3.0.1.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.kernel.osgi.quasi.QuasiFrameworkFactory)'.
2011-12-08 15:17:44.090 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&repository' in bundle 'org.eclipse.virgo.kernel.osgi' version '3.0.1.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.repository.Repository)'.
2011-12-08 15:17:44.091 INFO  [main] o.e.virgo.medic.eventlog.default - Dump 'serviceability/dump/2011-12-08-15-17-824' generated
2011-12-08 15:17:44.104 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&packageAdminUtil' in bundle 'org.eclipse.virgo.kernel.deployer' version '3.0.1.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.kernel.osgi.framework.PackageAdminUtil)'.
2011-12-08 15:17:44.106 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&userBundleContext' in bundle 'org.eclipse.virgo.kernel.deployer' version '3.0.1.RELEASE' is waiting for service with filter '(&(objectClass=org.osgi.framework.BundleContext)(org.eclipse.virgo.kernel.regionContext=true))'.
2011-12-08 15:17:44.108 ERROR [main] System.err - org.osgi.framework.BundleException: Bundle org.eclipse.virgo.kernel.userregionfactory 3.0.1.RELEASE failed to start.
2011-12-08 15:17:44.108 ERROR [main] System.err - 	at org.eclipse.virgo.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:189)
2011-12-08 15:17:44.109 ERROR [main] System.err - 	at org.eclipse.virgo.osgi.launcher.FrameworkBuilder.start(FrameworkBuilder.java:159)
2011-12-08 15:17:44.109 ERROR [main] System.err - 	at org.eclipse.virgo.osgi.launcher.Launcher.main(Launcher.java:54)
2011-12-08 15:17:44.109 ERROR [main] System.err - Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.virgo.kernel.userregionfactory.Activator.start() of bundle org.eclipse.virgo.kernel.userregionfactory.
2011-12-08 15:17:44.110 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
2011-12-08 15:17:44.110 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
2011-12-08 15:17:33.846 INFO  [org.eclipse.virgo.medic.log.osgi.OSGiLogServiceListener@164b9b6] org.osgi.service.log.LogService - Bundle org.eclipse.virgo.kernel.userregion_3.0.1.RELEASE, BundleEvent STOPPED
2011-12-08 15:17:44.111 INFO  [org.eclipse.virgo.medic.log.osgi.OSGiLogServiceListener@164b9b6] org.osgi.service.log.LogService - Bundle org.eclipse.virgo.kernel.userregionfactory_3.0.1.RELEASE, BundleEvent STOPPED
2011-12-08 15:17:44.110 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
2011-12-08 15:17:44.121 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
2011-12-08 15:17:44.122 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:291)
2011-12-08 15:17:44.147 ERROR [main] System.err - 	at org.eclipse.virgo.osgi.launcher.FrameworkBuilder.installAndStartBundles(FrameworkBuilder.java:187)
2011-12-08 15:17:44.148 ERROR [main] System.err - 	... 2 more
2011-12-08 15:17:44.148 ERROR [main] System.err - Caused by: org.osgi.framework.BundleException: Failed to start bundle org.eclipse.virgo.kernel.userregion 3.0.1.RELEASE
2011-12-08 15:17:44.149 ERROR [main] System.err - 	at org.eclipse.virgo.kernel.userregionfactory.Activator.initialiseUserRegionBundles(Activator.java:349)
2011-12-08 15:17:44.149 ERROR [main] System.err - 	at org.eclipse.virgo.kernel.userregionfactory.Activator.createUserRegion(Activator.java:178)
2011-12-08 15:17:44.149 ERROR [main] System.err - 	at org.eclipse.virgo.kernel.userregionfactory.Activator.start(Activator.java:133)
2011-12-08 15:17:44.149 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
2011-12-08 15:17:44.150 ERROR [main] System.err - 	at java.security.AccessController.doPrivileged(Native Method)
2011-12-08 15:17:44.150 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
2011-12-08 15:17:44.151 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&moduleContextAccessor' in bundle 'org.eclipse.virgo.kernel.shell' version '3.0.1.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.kernel.module.ModuleContextAccessor)'.
2011-12-08 15:17:44.155 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&repository' in bundle 'org.eclipse.virgo.kernel.deployer' version '3.0.1.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.repository.Repository)'.
2011-12-08 15:17:44.156 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&userRegionBundleContext' in bundle 'org.eclipse.virgo.kernel.shell' version '3.0.1.RELEASE' is waiting for service with filter '(&(objectClass=org.osgi.framework.BundleContext)(org.eclipse.virgo.kernel.regionContext=true))'.
2011-12-08 15:17:44.157 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&workArea' in bundle 'org.eclipse.virgo.kernel.deployer' version '3.0.1.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.kernel.services.work.WorkArea)'.
2011-12-08 15:17:44.158 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&deployer' in bundle 'org.eclipse.virgo.kernel.shell' version '3.0.1.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.kernel.deployer.core.ApplicationDeployer)'.
2011-12-08 15:17:44.150 ERROR [main] System.err - 	... 7 more
2011-12-08 15:17:44.180 ERROR [main] System.err - Caused by: org.osgi.framework.BundleException: Exception in org.eclipse.virgo.kernel.userregion.internal.Activator.start() of bundle org.eclipse.virgo.kernel.userregion.
2011-12-08 15:17:44.183 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
2011-12-08 15:17:44.183 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
2011-12-08 15:17:44.183 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
2011-12-08 15:17:44.184 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
2011-12-08 15:17:44.184 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:291)
2011-12-08 15:17:44.185 ERROR [main] System.err - 	at org.eclipse.virgo.kernel.userregionfactory.Activator.initialiseUserRegionBundles(Activator.java:345)
2011-12-08 15:17:44.185 ERROR [main] System.err - 	... 12 more
2011-12-08 15:17:44.185 ERROR [main] System.err - Caused by: java.util.concurrent.TimeoutException: org.eclipse.virgo.repository.Repository
2011-12-08 15:18:12.379 ERROR [main] System.err - 	at org.eclipse.virgo.kernel.userregion.internal.Activator.getPotentiallyDelayedService(Activator.java:352)
2011-12-08 15:18:12.380 ERROR [main] System.err - 	at org.eclipse.virgo.kernel.userregion.internal.Activator.start(Activator.java:101)
2011-12-08 15:18:12.381 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
2011-12-08 15:18:12.381 ERROR [main] System.err - 	at java.security.AccessController.doPrivileged(Native Method)
2011-12-08 15:18:12.382 ERROR [main] System.err - 	at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
2011-12-08 15:18:12.382 ERROR [main] System.err - 	... 17 more
2011-12-08 15:18:12.367 WARN  [service-monitor-thread-1] o.e.virgo.medic.eventlog.default - Reference '&osgiFramework' in bundle 'org.eclipse.virgo.kernel.deployer' version '3.0.1.RELEASE' is waiting for service with filter '(objectClass=org.eclipse.virgo.kernel.osgi.framework.OsgiFramework)'.


well it seems to happand only when virgo and the computer start together,
but if i try to run virgo again in the same boot (after the first virgo run faild) or if i start the computer and wait after system startup and only then try to run virgo,
it runs just fine.

I understand from this line in the log:

Caused by: java.util.concurrent.TimeoutException: org.eclipse.virgo.repository.Repository


that it's faild because it's take more then 30 sec to load the bundle (which is the defult for timeout for bundle to load in virgo).



so is there a way to change this defult timer?
or where i can change this time in the virgo source code?




Re: userregionfactory failed to start (only after reboot). [message #764515 is a reply to message #764465] Mon, 12 December 2011 05:38 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn Normington
Messages: 1222
Registered: July 2009
Senior Member
Unfortunately, this timeout is hard-coded in org.eclipse.virgo.kernel.userregion.internal.Activator (MAX_SECONDS_WAIT_FOR_SERVICE).

You can change the source code and spin your own build, but please would you also raise an enhancement bugzilla so this requirement is logged.
Re: userregionfactory failed to start (only after reboot). [message #764619 is a reply to message #764515] Mon, 12 December 2011 09:42 Go to previous messageGo to next message
malik  is currently offline malik
Messages: 13
Registered: November 2011
Junior Member
thank you,
and i will.
Re: userregionfactory failed to start (only after reboot). [message #1061746 is a reply to message #764619] Mon, 03 June 2013 13:46 Go to previous message
shakthi k is currently offline shakthi k
Messages: 2
Registered: May 2013
Junior Member
Hello,
I am having the same issue where I am getting the timeout exception when virgo starts up after restart of the machine. Did the fix above to change
MAX_SECONDS_WAIT_FOR_SERVICE in the Activator class work for you? Appreciate if you can share the solution that worked for this issue.

Thanks.
Previous Topic:How to know when virgo finished loading all plugins
Next Topic:Use tc Server in Virgo?
Goto Forum:
  


Current Time: Thu Aug 28 21:42:27 EDT 2014

Powered by FUDForum. Page generated in 0.03363 seconds