org.springframework.beans.BeanInstantiationException

Could not instantiate bean class [com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The import com.salesmanager.core.business.catalog.category.model.QCategory cannot be resolved The import com.salesmanager.core.business.catalog.category.model.QCategoryDescription cannot be resolved QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable

Solutions on the web1883

  • via Google Groups by Poorna, 6 months ago
    Could not instantiate bean class [com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The import
  • Could not instantiate bean class [org.baeldung.dao.PersonDaoImpl]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The import org.baeldung.entity.QPerson cannot be resolved QPerson cannot be
  • Could not instantiate bean class [com.jie.net.laugh.service.mainuser.ShiroDbRealm]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The import org.apache cannot be resolved The import org.apache
  • Stack trace

    • org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The import com.salesmanager.core.business.catalog.category.model.QCategory cannot be resolved The import com.salesmanager.core.business.catalog.category.model.QCategoryDescription cannot be resolved QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464) at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:722) Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems: The import com.salesmanager.core.business.catalog.category.model.QCategory cannot be resolved The import com.salesmanager.core.business.catalog.category.model.QCategoryDescription cannot be resolved QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:76) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990) ... 23 more Caused by: java.lang.Error: Unresolved compilation problems: The import com.salesmanager.core.business.catalog.category.model.QCategory cannot be resolved The import com.salesmanager.core.business.catalog.category.model.QCategoryDescription cannot be resolved QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable QCategory cannot be resolved to a type QCategory cannot be resolved to a variable QCategoryDescription cannot be resolved to a type QCategoryDescription cannot be resolved to a variable at com.salesmanager.core.business.catalog.category.dao.CategoryDaoImpl.<init>(CategoryDaoImpl.java:13) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:525) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) ... 25 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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.