org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'equityHoldingsDAO' defined in class path resource \[EquityHoldings-beans.xml\]: Cannot resolve reference to bean 'hsqlDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hsqlDataSource': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: SQL exception occurred exporting database schema

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via hsqldb by flame23
, 1 year ago
Error creating bean with name 'equityHoldingsDAO' defined in class path resource \[EquityHoldings-beans.xml\]: Cannot resolve reference to bean 'hsqlDataSource' while setting bean property 'dataSource'; nested exception is
via Spring JIRA by Cédric Vidal, 1 year ago
Error creating bean with name 'mock' defined in class path resource [com/foo/bar/services/functional/impl/remote-ejb-context.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is
via Spring JIRA by Cédric Vidal, 1 year ago
Error creating bean with name 'mock' defined in class path resource [com/foo/bar/services/functional/impl/remote-ejb-context.xml]: Cannot resolve reference to bean 'userService' while setting bean property 'userService'; nested exception is
via Coderanch by Satya Pal Singh, 10 months ago
Error creating bean with name 'employeeDao' defined in file [C:\Users\Satya\spring\SPRINGandHIBERNATE\.\resource\spring-hibernate.xml]: Cannot resolve reference to bean 'hibernateTemplate' while setting bean property 'hibernateTemplate'; nested
via Stack Overflow by Prashant
, 2 years ago
Error creating bean with name 'themeCache' defined in ServletContext resource [/WEB-INF/applicationContext-themes.xml]: Cannot resolve reference to bean 'unsecureRepositoryService' while setting bean property 'repositoryService'; nested exception is
via solutionscore.com by Unknown author, 2 years ago
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'template' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'mysessionFactory' while setting bean property 'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'equityHoldingsDAO' defined in class path resource \[EquityHoldings-beans.xml\]: Cannot resolve reference to bean 'hsqlDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hsqlDataSource': FactoryBean threw exception on object creation; nested exception is java.lang.RuntimeException: SQL exception occurred exporting database schema
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
at com.datafeeds.testutils.testdb.TestDataSourceFactory$TestDatabasePopulator.executeSql(TestDataSourceFactory.java:202)
at com.datafeeds.testutils.testdb.TestDataSourceFactory$TestDatabasePopulator.createDatabaseSchema(TestDataSourceFactory.java:163)
at com.datafeeds.testutils.testdb.TestDataSourceFactory$TestDatabasePopulator.populate(TestDataSourceFactory.java:145)
at com.datafeeds.testutils.testdb.TestDataSourceFactory.populateDataSource(TestDataSourceFactory.java:119)
at com.datafeeds.testutils.testdb.TestDataSourceFactory.initDataSource(TestDataSourceFactory.java:97)
at com.datafeeds.testutils.testdb.TestDataSourceFactory.getObject(TestDataSourceFactory.java:74)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromFactoryBean(AbstractBeanFactory.java:1299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1272)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:262)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:268)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at com.datafeeds.equityholdings.EquityHoldingsReaderTest.setUp(EquityHoldingsReaderTest.java:46)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.