org.springframework.beans.factory.BeanCreationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • JDBC config ignored
    via by Matthew Smith,
    • 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.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:274) 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$1.run(AbstractAutowireCapableBeanFactory.java:485) at java.security.AccessController.doPrivileged(Native Method) 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 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170) 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) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: 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.springframework.beans.factory.support.AbstractBeanFactory$3.run(AbstractBeanFactory.java:1310) at java.security.AccessController.doPrivileged(Native Method) 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) ... 25 more Caused by: java.lang.RuntimeException: SQL exception occurred exporting database schema at com.datafeeds.testutils.testdb.TestDataSourceFactory$TestDatabasePopulator.createDatabaseSchema(TestDataSourceFactory.java:167) 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$3.run(AbstractBeanFactory.java:1304) ... 31 more Caused by: java.sql.SQLException: Unexpected token:  in statement \[ CREATE TABLE client\_reporting.CLT\_user\_GIC\_secur ( gvkey integer NOT NULL, iid varchar(5) NOT NULL, dsci varchar(20) NOT NULL, exchg int NOT NULL, isin varchar(15) NOT NULL, secstat varchar(3) NOT NULL,\] at org.hsqldb.jdbc.Util.sqlException(Unknown Source) at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source) at org.hsqldb.jdbc.jdbcStatement.execute(Unknown Source) at com.datafeeds.testutils.testdb.TestDataSourceFactory$TestDatabasePopulator.executeSql(TestDataSourceFactory.java:202) at com.datafeeds.testutils.testdb.TestDataSourceFactory$TestDatabasePopulator.createDatabaseSchema(TestDataSourceFactory.java:163) ... 36 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    12 more bugmates