Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

No unique bean of type RubyLocatorServiceFactory #20

Closed
inka opened this issue Jun 12, 2012 · 9 comments · Fixed by #23
Closed

No unique bean of type RubyLocatorServiceFactory #20

inka opened this issue Jun 12, 2012 · 9 comments · Fixed by #23
Milestone

Comments

@inka
Copy link

inka commented Jun 12, 2012

Hi Wolf,

maybe this is an Bamboo v4.1 support issue or a misconfiguration with my setup. It's my first try to integrate a rails project with bamboo und I really appreciate your plugin and would like to get it to work. The Bamboo Agent does not start if your plugin is activated on the server.

Any hints are very welcome.

With kind regards, Ingo

INFO   | jvm 1    | 2012/06/12 12:04:31 | Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'au.id.wolfe.bamboo.ruby.RubyCapabilityDefaultsHelper': Unsatisfied dependency express
ed through constructor argument with index 0 of type [au.id.wolfe.bamboo.ruby.locator.RubyLocatorServiceFactory]: : No unique bean of type [au.id.wolfe.bamboo.ruby.locator.RubyLocatorServiceFactory] is defined: Unsatisfied dependency o
f type [class au.id.wolfe.bamboo.ruby.locator.RubyLocatorServiceFactory]: expected at least 1 matching bean; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [au.id.wolfe.bambo
o.ruby.locator.RubyLocatorServiceFactory] is defined: Unsatisfied dependency of type [class au.id.wolfe.bamboo.ruby.locator.RubyLocatorServiceFactory]: expected at least 1 matching bean
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:591)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at java.security.AccessController.doPrivileged(Native Method)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:300)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)INFO   | jvm 1    | 2012/06/12 12:04:31 |       at java.lang.reflect.Method.invoke(Method.java:616)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at com.atlassian.plugin.osgi.spring.DefaultSpringContainerAccessor.createBean(DefaultSpringContainerAccessor.java:109)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at com.atlassian.bamboo.plugin.descriptor.AbstractBambooModuleDescriptor.instantiateClass(AbstractBambooModuleDescriptor.java:104)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at com.atlassian.bamboo.plugin.descriptor.TaskModuleDescriptorImpl$2.create(TaskModuleDescriptorImpl.java:69)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at com.atlassian.bamboo.plugin.descriptor.TaskModuleDescriptorImpl$2.create(TaskModuleDescriptorImpl.java:62)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at com.atlassian.util.concurrent.ResettableLazyReference$InternalReference.create(ResettableLazyReference.java:143)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at com.atlassian.util.concurrent.LazyReference$Sync.run(LazyReference.java:326)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:146)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       ... 30 more
INFO   | jvm 1    | 2012/06/12 12:04:31 | Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [au.id.wolfe.bamboo.ruby.locator.RubyLocatorServiceFactory] is defined: Unsatisfied dependency
 of type [class au.id.wolfe.bamboo.ruby.locator.RubyLocatorServiceFactory]: expected at least 1 matching bean
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:613)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:622)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:584)
INFO   | jvm 1    | 2012/06/12 12:04:31 |       ... 49 more
ERROR  | wrapper  | 2012/06/12 12:04:32 | JVM exited unexpectedly.
@wolfeidau
Copy link
Owner

It looks to me like the plugin is not installed on the agent which is causing an error during startup.

Are you able to copy the plugin into the plugins folder on the agent? Maybe @i386 mite know of a better way.

In transit from us to Australia so don't have very good net ATM. When I land in 24 hours or so I will do some tests with agents as this is an area I haven't looked at yet.

@inka
Copy link
Author

inka commented Jun 12, 2012

The bamboo plugin manager causes the trouble. My agent is configured to be managed remotely so the bamboo server sends the plugin jar during startup and then the agent starts fail. I have to research how to manage plugins locally. May be you even can update your plugin informations to support version 4.1 because the newest plugin manager reduces the offered plugins depending at these versions and your plugin is not found then. Manual upload still works.

I hope you enjoyed your flight and really thank you for the fast reply.

@wolfeidau
Copy link
Owner

Ah well once I get back to Melbourne I will do a release with this fix, I have a few small fixes in master so should be fine.

Thanks for the info much appreciated.

@wolfeidau
Copy link
Owner

I have just uploaded a new release for testing

http://repo.wolfe.id.au/au/id/wolfe/bamboo/rake-bamboo-plugin/1.8/

Download the rake-bamboo-plugin-1.8.jar from their if you want to test it out.

@brycejohnson
Copy link

Looking good so far. Thanks for taking a look! I'll do more validation in a bit.

@i386
Copy link
Contributor

i386 commented Jun 15, 2012

Thanks mate! our team is validating it now. So far so good.

James Dumay

On Friday, 15 June 2012 at 12:53 PM, Mark Wolfe wrote:

I have just uploaded a new release for testing

http://repo.wolfe.id.au/au/id/wolfe/bamboo/rake-bamboo-plugin/1.8/

Download the rake-bamboo-plugin-1.8.jar from their if you want to test it out.


Reply to this email directly or view it on GitHub:
#20 (comment)

@inka
Copy link
Author

inka commented Jun 15, 2012

Installation and Startup works again for us. Thanks a lot. Integration with our Rails Bamboo Plan needs some more time to test because the whole setup is work in progress. But so far I would state that 1.8 is Bamboo v4.1 compatible.

{code}
INFO | jvm 1 | 2012/06/15 11:08:57 | 2012-06-15 11:08:57,279 INFO [Thread-1] [RubyLocatorServiceFactory] Loaded ruby runtime managers [au.id.wolfe.bamboo.ruby.system.SystemRubyRuntimeLocatorService@3da5f0f3, au.id.wolfe.bamboo.ruby.rvm.RvmRubyRuntimeLocatorService@596e0123, au.id.wolfe.bamboo.ruby.windows.WindowsRubyRuntimeLocatorService@450cceb3]
INFO | jvm 1 | 2012/06/15 11:08:58 | 2012-06-15 11:08:58,906 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Retrieving a list of runtime managers.
INFO | jvm 1 | 2012/06/15 11:08:58 | 2012-06-15 11:08:58,907 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - SYSTEM
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,072 INFO [Thread-1] [ExecUtils] ruby exit code = 0
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,073 INFO [Thread-1] [ExecUtils] ruby exec result = ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,480 INFO [Thread-1] [ExecUtils] ruby exit code = 0
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,481 INFO [Thread-1] [ExecUtils] ruby exec result = /user/.gem/ruby/1.8:/usr/lib/ruby/gems/1.8
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,485 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Adding system.builder.ruby.SYSTEM 1.8.7-p352@default = /usr/bin/ruby
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,485 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - RVM
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,486 INFO [Thread-1] [RvmRubyRuntimeLocatorService] Searching for rvm installation in users home directory located at - /user/.rvm
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,486 INFO [Thread-1] [RvmRubyRuntimeLocatorService] Search for rvm installation in system paths /usr/local/rvm
INFO | jvm 1 | 2012/06/15 11:08:59 | 2012-06-15 11:08:59,486 INFO [Thread-1] [RubyCapabilityDefaultsHelper] Loading ruby locator service - WINDOWS
{code}

@wolfeidau
Copy link
Owner

Very happy to see you guys using my plugin.

Almost finished my testing so will push it out tomorrow.

@i386
Copy link
Contributor

i386 commented Jun 18, 2012

Most awesome dude :)

James Dumay

On Monday, 18 June 2012 at 2:11 PM, Mark Wolfe wrote:

Very happy to see you guys using my plugin.

Almost finished my testing so will push it out tomorrow.


Reply to this email directly or view it on GitHub:
#20 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants