tylerbenson / vyllage

https://www.vyllage.com
4 stars 0 forks source link

Heroku fails with SignInUtil dependency error on UserService #1235

Closed UnspeakableHorror closed 8 years ago

UnspeakableHorror commented 8 years ago
 Jan 30 06:09:17 18cf7bd4-7a1f-408e-ba0b-667be3aac76b Vyllage: [E]          o.s.boot.SpringApplication: Application startup failed  org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'signInUtil' defined in URL [jar:file:/app/site/build/install/site/lib/accounts-0.0.1-SNAPSHOT.jar!/accounts/service/SignInUtil.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [accounts.service.UserService]: : Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private accounts.service.SignInUtil accounts.service.UserService.signInUtil; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'signInUtil': Requested bean is currently in creation: Is there an unresolvable circular reference?; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private accounts.service.SignInUtil accounts.service.UserService.signInUtil; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'signInUtil': Requested bean is currently in creation: Is there an unresolvable circular reference?    at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)  at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:185)  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1143)   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1046)    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private accounts.service.SignInUtil accounts.service.UserService.signInUtil; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'signInUtil': Requested bean is currently in creation: Is there an unresolvable circular reference?    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334)   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private accounts.service.SignInUtil accounts.service.UserService.signInUtil; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'signInUtil': Requested bean is currently in creation: Is there an unresolvable circular reference?     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573)    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331)   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214)  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'signInUtil': Requested bean is currently in creation: Is there an unresolvable circular reference?  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.beforeSingletonCreation(DefaultSingletonBeanRegistry.java:347)    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)   at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)  at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1192)