org.springframework.beans.factory.BeanCreationException

Error creating bean with name 'authenticationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.fasterxml.jackson.databind.ObjectMapper com.iggroup.api.service.AbstractService.objectMapper; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.goodsoft.stockbox.ig.business.service.ApiService] for bean with name 'apiservice' defined in URL [jar:file:/E:/StockBox-16.9.0-win/StockBox.exe!/public-api-client-spring-context.xml]; nested exception is java.lang.ClassNotFoundException: com.goodsoft.stockbox.ig.business.service.ApiService 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.ig.a.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.providers.a.d.c.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.commons.b.c.e.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.commons.b.c.e.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.commons.b.c.c.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.commons.f.e.f.actionPerformed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.DefaultButtonModel.setPressed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at java.awt.Component.processMouseEvent(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.JComponent.processMouseEvent(Unknown Source)

Samebug tips3

Check Servers Launch Configuration in Eclipse. See the details below.


Spring expects that the EntityManagerFactory has to be called "entityManagerFactory". It uses convention over configuration to make it easier to use.


Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web19467

  • via Stack Overflow by czArek
    , 10 months ago
    ' defined in URL [jar:file:/E:/StockBox-16.9.0-win/StockBox.exe!/public-api-client-spring-context.xml]; nested exception is java.lang.ClassNotFoundException: com.goodsoft.stockbox.ig.business.service.ApiService 2016-wrz-09 17:14:51,568 ERROR [AWT
  • Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.covenant.app.dao.UserRepository
  • via Atlassian JIRA by Thiago Zandona [Atlassian], 1 year ago
    Error creating bean with name 'jira.timesheet.plugin.job.TimesheetSubscriptions': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
  • Stack trace

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.fasterxml.jackson.databind.ObjectMapper com.iggroup.api.service.AbstractService.objectMapper; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.goodsoft.stockbox.ig.business.service.ApiService] for bean with name 'apiservice' defined in URL [jar:file:/E:/StockBox-16.9.0-win/StockBox.exe!/public-api-client-spring-context.xml]; nested exception is java.lang.ClassNotFoundException: com.goodsoft.stockbox.ig.business.service.ApiService 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1210) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.ig.a.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.providers.a.d.c.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.commons.b.c.e.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.commons.b.c.e.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.commons.b.c.c.a(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at com.goodsoft.stockbox.commons.f.e.f.actionPerformed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.DefaultButtonModel.setPressed(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at java.awt.Component.processMouseEvent(Unknown Source) 2016-wrz-09 17:14:51,568 ERROR [AWT-EventQueue-0] - at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.WaitDispatchSupport$2.run(Unknown Source) at java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.awt.WaitDispatchSupport$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.awt.WaitDispatchSupport.enter(Unknown Source) at java.awt.Dialog.show(Unknown Source) at java.awt.Component.show(Unknown Source) at java.awt.Component.setVisible(Unknown Source) at java.awt.Window.setVisible(Unknown Source) at java.awt.Dialog.setVisible(Unknown Source) at com.goodsoft.stockbox.commons.b.c.e.a(Unknown Source) at com.goodsoft.stockbox.commons.f.h.a.b.j(Unknown Source) at com.goodsoft.stockbox.trading.a.l.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$500(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.awt.EventQueue$4.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: protected com.fasterxml.jackson.databind.ObjectMapper com.iggroup.api.service.AbstractService.objectMapper; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.goodsoft.stockbox.ig.business.service.ApiService] for bean with name 'apiservice' defined in URL [jar:file:/E:/StockBox-16.9.0-win/StockBox.exe!/public-api-client-spring-context.xml]; nested exception is java.lang.ClassNotFoundException: com.goodsoft.stockbox.ig.business.service.ApiService at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:561) at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:331) ... 75 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    8 times, 1 year ago
    6 times, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    51 more bugmates