Announcement Announcement Module
Collapse
No announcement yet.
Order of Bean definitions matters? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Order of Bean definitions matters?

    Basically, if i move the jdbctemplate definition to the top, I get the exception included in the trace below. If I move it to the bottom, all is happy. I explored various depends scenarios on the beans and seemed to get further down the rabbit hole of exceptions. Based upon what I've read, it shouldn't matter (but, obviously, I haven't read enough!)

    Does anyone have any suggestions on this?

    TIA

    Code:
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http&#58;//www.springframework.org/dtd/spring-beans.dtd">
    
    <beans>
    	<!-- ========================= Start of PERSISTENCE DEFINITIONS ========================= -->
    	<bean id="jdbcTemplate"
    		class="org.springframework.jdbc.core.JdbcTemplate">
    		<property name="dataSource">
    			<ref bean="dataSource" />
    		</property>
    	</bean>
    	<bean id="connectionPool"
    		class="org.apache.commons.pool.impl.GenericObjectPool">
    	</bean>
    	<bean id="connectionFactory"
    		class="x.y.z.db.DBConnection">
    		<constructor-arg>
    			<value>$&#123;db.conn.uri&#125;</value>
    		</constructor-arg>
    		<constructor-arg type="java.util.Properties">
    			<null />
    		</constructor-arg>
    		<constructor-arg type="int">
    			<value>$&#123;db.type&#125;</value>
    		</constructor-arg>
    	</bean>
    	<bean id="poolableConnectionFactory"
    		class="org.apache.commons.dbcp.PoolableConnectionFactory">
    		<constructor-arg index="0">
    			<ref bean="connectionFactory" />
    		</constructor-arg>
    		<constructor-arg index="1">
    			<ref bean="connectionPool" />
    		</constructor-arg>
    		<constructor-arg
    			type="org.apache.commons.pool.KeyedObjectPoolFactory" index="2">
    			<null />
    		</constructor-arg>
    		<constructor-arg type="java.lang.String" index="3">
    			<value>select * from testtable</value>
    		</constructor-arg>
    		<constructor-arg type="boolean" index="4">
    			<value>false</value>
    		</constructor-arg>
    		<constructor-arg type="boolean" index="5">
    			<value>true</value>
    		</constructor-arg>
    	</bean>
    	<bean id="dataSource"
    		class="org.apache.commons.dbcp.PoolingDataSource">
    		<constructor-arg>
    			<ref bean="connectionPool" />
    		</constructor-arg>
    	</bean>
          &#58;
    And the trace
    Code:
    &#91;2005 19 Oct 19&#58;22&#58;32&#58;562&#93; INFO  BeanDefinitionReader Loading XML bean definitions from class path resource &#91;conflictContext.xml&#93;
    &#91;2005 19 Oct 19&#58;22&#58;32&#58;609&#93; DEBUG BeanDefinitionReader Using JAXP implementation &#91;org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@88b1e6&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;203&#93; DEBUG sourceEntityResolver Trying to resolve XML entity with public ID &#91;-//SPRING//DTD BEAN//EN&#93; and system ID &#91;http&#58;//www.springframework.org/dtd/spring-beans.dtd&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;203&#93; DEBUG sourceEntityResolver Trying to locate &#91;spring-beans.dtd&#93; under &#91;/org/springframework/beans/factory/xml/&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;203&#93; DEBUG sourceEntityResolver Found beans DTD &#91;http&#58;//www.springframework.org/dtd/spring-beans.dtd&#93; in classpath
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;281&#93; DEBUG BeanDefinitionParser Loading bean definitions
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;296&#93; DEBUG BeanDefinitionParser Default lazy init 'false'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;296&#93; DEBUG BeanDefinitionParser Default dependency check 'none'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;296&#93; DEBUG BeanDefinitionParser Default autowire 'no'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;437&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'jdbcTemplate'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;437&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'connectionPool'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;437&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'connectionFactory'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;437&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'poolableConnectionFactory'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;484&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'dataSource'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;500&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'propertyConfigurer'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;515&#93; DEBUG BeanDefinitionParser Found 6 <bean> elements defining beans
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;515&#93; INFO  mlApplicationContext Bean factory for application context &#91;org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=15572807&#93;&#58; org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;jdbcTemplate,connectionPool,connectionFactory,poolableConnectionFactory,dataSource,propertyConfigurer&#93;; Root of BeanFactory hierarchy
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;515&#93; INFO  mlApplicationContext 6 beans defined in ApplicationContext &#91;org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=15572807&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;515&#93; INFO  tListableBeanFactory Creating shared instance of singleton bean 'propertyConfigurer'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;515&#93; DEBUG tListableBeanFactory Creating instance of bean 'propertyConfigurer' with merged definition &#91;Root bean with class &#91;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#93; defined in class path resource &#91;conflictContext.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;609&#93; DEBUG IntrospectionResults Getting BeanInfo for class &#91;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;625&#93; DEBUG IntrospectionResults Caching PropertyDescriptors for class &#91;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;625&#93; DEBUG IntrospectionResults Found property 'class' of type &#91;class java.lang.Class&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'ignoreResourceNotFound' of type &#91;boolean&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'ignoreUnresolvablePlaceholders' of type &#91;boolean&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'location' of type &#91;interface org.springframework.core.io.Resource&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'locations' of type &#91;class &#91;Lorg.springframework.core.io.Resource;&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'order' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'placeholderPrefix' of type &#91;class java.lang.String&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'placeholderSuffix' of type &#91;class java.lang.String&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'properties' of type &#91;class java.util.Properties&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'systemPropertiesMode' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Found property 'systemPropertiesModeName' of type &#91;class java.lang.String&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;640&#93; DEBUG IntrospectionResults Class &#91;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#93; is cache-safe
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;703&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;interface org.springframework.core.io.Resource&#93; using property editor &#91;org.springframework.core.io.ResourceEditor@1d349e2&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;703&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.beans.factory.config.PropertyResourceConfigurer.setLocations&#40;org.springframework.core.io.Resource&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;703&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.beans.factory.config.PropertyResourceConfigurer.setLocations&#40;org.springframework.core.io.Resource&#91;&#93;&#41;&#93; with value of type &#91;&#91;Lorg.springframework.core.io.Resource;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;703&#93; DEBUG tListableBeanFactory Invoking BeanPostProcessors before initialization of bean 'propertyConfigurer'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;703&#93; DEBUG tListableBeanFactory Invoking BeanPostProcessors after initialization of bean 'propertyConfigurer'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;703&#93; INFO  laceholderConfigurer Loading properties from class path resource &#91;loyalty.properties&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;718&#93; DEBUG laceholderConfigurer Resolving placeholder 'db.conn.uri' to &#91;jdbc&#58;jtds&#58;sqlserver&#58;//127.0.0.1&#58;1433/mx;user=sa&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;718&#93; DEBUG laceholderConfigurer Resolving placeholder 'db.type' to &#91;2&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;718&#93; INFO  mlApplicationContext No MessageSource found for context &#91;org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=15572807&#93;&#58; using empty default
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;734&#93; INFO  mlApplicationContext No ApplicationEventMulticaster found for context &#91;org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=15572807&#93;&#58; using default
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;734&#93; INFO  mlApplicationContext Refreshing listeners
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;734&#93; DEBUG mlApplicationContext Found 0 listeners in bean factory
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;734&#93; INFO  tListableBeanFactory Pre-instantiating singletons in factory &#91;org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;jdbcTemplate,connectionPool,connectionFactory,poolableConnectionFactory,dataSource,propertyConfigurer&#93;; Root of BeanFactory hierarchy&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;750&#93; INFO  tListableBeanFactory Creating shared instance of singleton bean 'jdbcTemplate'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;750&#93; DEBUG tListableBeanFactory Creating instance of bean 'jdbcTemplate' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.core.JdbcTemplate&#93; defined in class path resource &#91;conflictContext.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;750&#93; DEBUG IntrospectionResults Getting BeanInfo for class &#91;org.springframework.jdbc.core.JdbcTemplate&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG IntrospectionResults Caching PropertyDescriptors for class &#91;org.springframework.jdbc.core.JdbcTemplate&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG IntrospectionResults Found property 'class' of type &#91;class java.lang.Class&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG IntrospectionResults Found property 'dataSource' of type &#91;interface javax.sql.DataSource&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG IntrospectionResults Found property 'exceptionTranslator' of type &#91;interface org.springframework.jdbc.support.SQLExceptionTranslator&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG IntrospectionResults Found property 'fetchSize' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG IntrospectionResults Found property 'ignoreWarnings' of type &#91;boolean&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG IntrospectionResults Found property 'nativeJdbcExtractor' of type &#91;interface org.springframework.jdbc.support.nativejdbc.NativeJdbcExtractor&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG IntrospectionResults Class &#91;org.springframework.jdbc.core.JdbcTemplate&#93; is cache-safe
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG tListableBeanFactory Resolving reference from property 'dataSource' in bean 'jdbcTemplate' to bean 'dataSource'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; INFO  tListableBeanFactory Creating shared instance of singleton bean 'dataSource'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG tListableBeanFactory Creating instance of bean 'dataSource' with merged definition &#91;Root bean with class &#91;org.apache.commons.dbcp.PoolingDataSource&#93; defined in class path resource &#91;conflictContext.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; DEBUG tListableBeanFactory Resolving reference from property 'constructor argument' in bean 'dataSource' to bean 'connectionPool'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;781&#93; INFO  tListableBeanFactory Creating shared instance of singleton bean 'connectionPool'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;796&#93; DEBUG tListableBeanFactory Creating instance of bean 'connectionPool' with merged definition &#91;Root bean with class &#91;org.apache.commons.pool.impl.GenericObjectPool&#93; defined in class path resource &#91;conflictContext.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;828&#93; DEBUG IntrospectionResults Getting BeanInfo for class &#91;org.apache.commons.pool.impl.GenericObjectPool&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;890&#93; DEBUG IntrospectionResults Caching PropertyDescriptors for class &#91;org.apache.commons.pool.impl.GenericObjectPool&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'class' of type &#91;class java.lang.Class&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'config' of type &#91;class org.apache.commons.pool.impl.GenericObjectPool$Config&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'factory' of type &#91;interface org.apache.commons.pool.PoolableObjectFactory&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'maxActive' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'maxIdle' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'maxWait' of type &#91;long&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'minEvictableIdleTimeMillis' of type &#91;long&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'numActive' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;906&#93; DEBUG IntrospectionResults Found property 'numIdle' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG IntrospectionResults Found property 'numTestsPerEvictionRun' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG IntrospectionResults Found property 'testOnBorrow' of type &#91;boolean&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG IntrospectionResults Found property 'testOnReturn' of type &#91;boolean&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG IntrospectionResults Found property 'testWhileIdle' of type &#91;boolean&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG IntrospectionResults Found property 'timeBetweenEvictionRunsMillis' of type &#91;long&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG IntrospectionResults Found property 'whenExhaustedAction' of type &#91;byte&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG IntrospectionResults Class &#91;org.apache.commons.pool.impl.GenericObjectPool&#93; is cache-safe
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG tListableBeanFactory Invoking BeanPostProcessors before initialization of bean 'connectionPool'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;921&#93; DEBUG tListableBeanFactory Invoking BeanPostProcessors after initialization of bean 'connectionPool'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;937&#93; DEBUG tListableBeanFactory Ignoring constructor &#91;public org.apache.commons.dbcp.PoolingDataSource&#40;&#41;&#93; of bean 'dataSource'&#58; could not satisfy dependencies. Detail&#58; Error creating bean with name 'dataSource' defined in class path resource &#91;conflictContext.xml&#93;&#58; 1 constructor arguments specified but no matching constructor found in bean 'dataSource' &#40;hint&#58; specify index arguments for simple parameters to avoid type ambiguities&#41;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;937&#93; DEBUG IntrospectionResults Getting BeanInfo for class &#91;org.apache.commons.dbcp.PoolingDataSource&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;953&#93; DEBUG IntrospectionResults Caching PropertyDescriptors for class &#91;org.apache.commons.dbcp.PoolingDataSource&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;953&#93; DEBUG IntrospectionResults Found property 'class' of type &#91;class java.lang.Class&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;953&#93; DEBUG IntrospectionResults Found property 'connection' of type &#91;interface java.sql.Connection&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;953&#93; DEBUG IntrospectionResults Found property 'logWriter' of type &#91;class java.io.PrintWriter&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG IntrospectionResults Found property 'loginTimeout' of type &#91;int&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG IntrospectionResults Found property 'pool' of type &#91;interface org.apache.commons.pool.ObjectPool&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG IntrospectionResults Class &#91;org.apache.commons.dbcp.PoolingDataSource&#93; is cache-safe
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; INFO  tListableBeanFactory Bean 'dataSource' instantiated via constructor &#91;public org.apache.commons.dbcp.PoolingDataSource&#40;org.apache.commons.pool.ObjectPool&#41;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG tListableBeanFactory Invoking BeanPostProcessors before initialization of bean 'dataSource'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG tListableBeanFactory Invoking BeanPostProcessors after initialization of bean 'dataSource'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.JdbcAccessor.setDataSource&#40;javax.sql.DataSource&#41;&#93; on object of class &#91;org.springframework.jdbc.core.JdbcTemplate&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.JdbcAccessor.setDataSource&#40;javax.sql.DataSource&#41;&#93; with value of type &#91;javax.sql.DataSource&#93;
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG tListableBeanFactory Invoking BeanPostProcessors before initialization of bean 'jdbcTemplate'
    &#91;2005 19 Oct 19&#58;22&#58;33&#58;968&#93; DEBUG tListableBeanFactory Invoking afterPropertiesSet&#40;&#41; on bean with beanName 'jdbcTemplate'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;062&#93; INFO  BeanDefinitionReader Loading XML bean definitions from class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;062&#93; DEBUG BeanDefinitionReader Using JAXP implementation &#91;org.apache.xerces.jaxp.DocumentBuilderFactoryImpl@413fc6&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;078&#93; DEBUG xml.BeansDtdResolver Trying to resolve XML entity with public ID &#91;-//SPRING//DTD BEAN//EN&#93; and system ID &#91;http&#58;//www.springframework.org/dtd/spring-beans.dtd&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;078&#93; DEBUG xml.BeansDtdResolver Trying to locate &#91;spring-beans.dtd&#93; under &#91;/org/springframework/beans/factory/xml/&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;078&#93; DEBUG xml.BeansDtdResolver Found beans DTD &#91;http&#58;//www.springframework.org/dtd/spring-beans.dtd&#93; in classpath
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;125&#93; DEBUG BeanDefinitionParser Loading bean definitions
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;125&#93; DEBUG BeanDefinitionParser Default lazy init 'false'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;140&#93; DEBUG BeanDefinitionParser Default dependency check 'none'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;140&#93; DEBUG BeanDefinitionParser Default autowire 'no'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;140&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'DB2'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;140&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'HSQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;156&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'MS-SQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;156&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'MySQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;156&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'Oracle'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;156&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'Informix'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;156&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'PostgreSQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;156&#93; DEBUG BeanDefinitionParser Registering bean definition with id 'Sybase'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;156&#93; DEBUG BeanDefinitionParser Found 8 <bean> elements defining beans
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;171&#93; INFO  y.xml.XmlBeanFactory Creating shared instance of singleton bean 'DB2'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;171&#93; DEBUG y.xml.XmlBeanFactory Creating instance of bean 'DB2' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; defined in class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;171&#93; DEBUG IntrospectionResults Getting BeanInfo for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;187&#93; DEBUG IntrospectionResults Caching PropertyDescriptors for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;187&#93; DEBUG IntrospectionResults Found property 'badSqlGrammarCodes' of type &#91;class &#91;Ljava.lang.String;&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;187&#93; DEBUG IntrospectionResults Found property 'cannotAcquireLockCodes' of type &#91;class &#91;Ljava.lang.String;&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;187&#93; DEBUG IntrospectionResults Found property 'class' of type &#91;class java.lang.Class&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;187&#93; DEBUG IntrospectionResults Found property 'customTranslations' of type &#91;interface java.util.List&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;187&#93; DEBUG IntrospectionResults Found property 'dataAccessResourceFailureCodes' of type &#91;class &#91;Ljava.lang.String;&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;187&#93; DEBUG IntrospectionResults Found property 'dataIntegrityViolationCodes' of type &#91;class &#91;Ljava.lang.String;&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;187&#93; DEBUG IntrospectionResults Found property 'dataRetrievalFailureCodes' of type &#91;class &#91;Ljava.lang.String;&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG IntrospectionResults Found property 'databaseProductName' of type &#91;class java.lang.String&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG IntrospectionResults Found property 'optimisticLockingFailureCodes' of type &#91;class &#91;Ljava.lang.String;&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG IntrospectionResults Found property 'useSqlStateForTranslation' of type &#91;boolean&#93;; editor=&#91;null&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG IntrospectionResults Class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; is cache-safe
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; with value &#91;DB2*&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@179b7b0&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@18c458&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@179b7b0&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@2a2cc&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors before initialization of bean 'DB2'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors after initialization of bean 'DB2'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; INFO  y.xml.XmlBeanFactory Creating shared instance of singleton bean 'HSQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG y.xml.XmlBeanFactory Creating instance of bean 'HSQL' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; defined in class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG IntrospectionResults Using cached introspection results for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; with value &#91;HSQL Database Engine&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@10e18ba&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;203&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@7981d5&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@10e18ba&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@13acc52&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors before initialization of bean 'HSQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors after initialization of bean 'HSQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; INFO  y.xml.XmlBeanFactory Creating shared instance of singleton bean 'MS-SQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG y.xml.XmlBeanFactory Creating instance of bean 'MS-SQL' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; defined in class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG IntrospectionResults Using cached introspection results for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; with value &#91;Microsoft SQL Server&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@13c33b7&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@16752c9&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@13c33b7&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;218&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@6c2896&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors before initialization of bean 'MS-SQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors after initialization of bean 'MS-SQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; INFO  y.xml.XmlBeanFactory Creating shared instance of singleton bean 'MySQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG y.xml.XmlBeanFactory Creating instance of bean 'MySQL' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; defined in class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG IntrospectionResults Using cached introspection results for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@dccfab&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@c5f468&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@dccfab&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@30d83d&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors before initialization of bean 'MySQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors after initialization of bean 'MySQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; INFO  y.xml.XmlBeanFactory Creating shared instance of singleton bean 'Oracle'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG y.xml.XmlBeanFactory Creating instance of bean 'Oracle' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; defined in class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG IntrospectionResults Using cached introspection results for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@c4afc4&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@ef9f84&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;234&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@c4afc4&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@1d1c3cd&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@c4afc4&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setCannotAcquireLockCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setCannotAcquireLockCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@162d950&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors before initialization of bean 'Oracle'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors after initialization of bean 'Oracle'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; INFO  y.xml.XmlBeanFactory Creating shared instance of singleton bean 'Informix'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG y.xml.XmlBeanFactory Creating instance of bean 'Informix' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; defined in class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG IntrospectionResults Using cached introspection results for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; with value &#91;Informix Dynamic Server&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@18e899c&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;250&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@ec8784&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@18e899c&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@b52a28&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors before initialization of bean 'Informix'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors after initialization of bean 'Informix'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; INFO  y.xml.XmlBeanFactory Creating shared instance of singleton bean 'PostgreSQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG y.xml.XmlBeanFactory Creating instance of bean 'PostgreSQL' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; defined in class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG IntrospectionResults Using cached introspection results for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;boolean&#93; using property editor &#91;sun.beans.editors.BoolEditor@1e2c841&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setUseSqlStateForTranslation&#40;boolean&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setUseSqlStateForTranslation&#40;boolean&#41;&#93; with value &#91;true&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@1c958af&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;265&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;281&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@1dd7736&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;281&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@1c958af&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;281&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;281&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@bd93cd&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors before initialization of bean 'PostgreSQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors after initialization of bean 'PostgreSQL'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; INFO  y.xml.XmlBeanFactory Creating shared instance of singleton bean 'Sybase'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG y.xml.XmlBeanFactory Creating instance of bean 'Sybase' with merged definition &#91;Root bean with class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93; defined in class path resource &#91;org/springframework/jdbc/support/sql-error-codes.xml&#93;&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG IntrospectionResults Using cached introspection results for class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDatabaseProductName&#40;java.lang.String&#41;&#93; with value &#91;Sybase SQL Server&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@3299f6&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setBadSqlGrammarCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@19fc25&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG eans.BeanWrapperImpl Converting String to &#91;class &#91;Ljava.lang.String;&#93; using property editor &#91;org.springframework.beans.propertyeditors.StringArrayPropertyEditor@3299f6&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG eans.BeanWrapperImpl About to invoke write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; on object of class &#91;org.springframework.jdbc.support.SQLErrorCodes&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG eans.BeanWrapperImpl Invoked write method &#91;public void org.springframework.jdbc.support.SQLErrorCodes.setDataIntegrityViolationCodes&#40;java.lang.String&#91;&#93;&#41;&#93; with value &#91;&#91;Ljava.lang.String;@1f8f8c8&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors before initialization of bean 'Sybase'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; DEBUG y.xml.XmlBeanFactory Invoking BeanPostProcessors after initialization of bean 'Sybase'
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;296&#93; INFO  SQLErrorCodesFactory SQLErrorCodes loaded&#58; &#91;HSQL Database Engine, Oracle, Sybase SQL Server, Microsoft SQL Server, Informix Dynamic Server, PostgreSQL, DB2*, MySQL&#93;
    &#91;2005 19 Oct 19&#58;22&#58;34&#58;312&#93; INFO  SQLErrorCodesFactory Looking up default SQLErrorCodes for DataSource
    &#91;2005 19 Oct 19&#58;22&#58;42&#58;171&#93; INFO  tListableBeanFactory Destroying singletons in factory &#123;org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;jdbcTemplate,connectionPool,connectionFactory,poolableConnectionFactory,dataSource,propertyConfigurer&#93;; Root of BeanFactory hierarchy&#125;
    &#91;2005 19 Oct 19&#58;22&#58;42&#58;171&#93; DEBUG tListableBeanFactory Retrieving dependent beans for bean 'dataSource'
    &#91;2005 19 Oct 19&#58;22&#58;42&#58;171&#93; DEBUG tListableBeanFactory Applying DestructionAwareBeanPostProcessors to bean with name 'dataSource'
    &#91;2005 19 Oct 19&#58;22&#58;42&#58;171&#93; DEBUG tListableBeanFactory Retrieving dependent beans for bean 'connectionPool'
    &#91;2005 19 Oct 19&#58;22&#58;42&#58;171&#93; DEBUG tListableBeanFactory Applying DestructionAwareBeanPostProcessors to bean with name 'connectionPool'
    &#91;2005 19 Oct 19&#58;22&#58;42&#58;171&#93; DEBUG tListableBeanFactory Retrieving dependent beans for bean 'propertyConfigurer'
    &#91;2005 19 Oct 19&#58;22&#58;42&#58;171&#93; DEBUG tListableBeanFactory Applying DestructionAwareBeanPostProcessors to bean with name 'propertyConfigurer'
    &#91;2005 19 Oct 19&#58;22&#58;42&#58;171&#93; INFO  tListableBeanFactory Destroying inner beans in factory &#123;org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans &#91;jdbcTemplate,connectionPool,connectionFactory,poolableConnectionFactory,dataSource,propertyConfigurer&#93;; Root of BeanFactory hierarchy&#125;
    Exception in thread "main" java.lang.ExceptionInInitializerError
    	at x.y.z.q.doWork&#40;ConflictModuleConfirmationSvapWizardPanel.java&#58;262&#41;
    	at x.y.z.q.main&#40;ConflictModuleConfirmationSvapWizardPanel.java&#58;1656&#41;
    Caused by&#58; org.springframework.beans.factory.BeanCreationException&#58; Error creating bean with name 'jdbcTemplate' defined in class path resource &#91;conflictContext.xml&#93;&#58; Initialization of bean failed; nested exception is java.lang.NullPointerException&#58; null
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean&#40;AbstractAutowireCapableBeanFactory.java&#58;300&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean&#40;AbstractAutowireCapableBeanFactory.java&#58;205&#41;
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean&#40;AbstractBeanFactory.java&#58;204&#41;
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean&#40;AbstractBeanFactory.java&#58;136&#41;
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons&#40;DefaultListableBeanFactory.java&#58;236&#41;
    	at org.springframework.context.support.AbstractApplicationContext.refresh&#40;AbstractApplicationContext.java&#58;284&#41;
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>&#40;ClassPathXmlApplicationContext.java&#58;80&#41;
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>&#40;ClassPathXmlApplicationContext.java&#58;65&#41;
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>&#40;ClassPathXmlApplicationContext.java&#58;56&#41;
    	at x.y.z.gui.advantage.cnflct.ConflictControl.<clinit>&#40;ConflictControl.java&#58;32&#41;
    	... 2 more
    Caused by&#58; java.lang.NullPointerException
    	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject&#40;GenericObjectPool.java&#58;722&#41;
    	at org.apache.commons.dbcp.PoolingDataSource.getConnection&#40;PoolingDataSource.java&#58;110&#41;
    	at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection&#40;DataSourceUtils.java&#58;173&#41;
    	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection&#40;DataSourceUtils.java&#58;152&#41;
    	at org.springframework.jdbc.datasource.DataSourceUtils.getConnection&#40;DataSourceUtils.java&#58;128&#41;
    	at org.springframework.jdbc.support.JdbcUtils.extractDatabaseMetaData&#40;JdbcUtils.java&#58;93&#41;
    	at org.springframework.jdbc.support.SQLErrorCodesFactory.getErrorCodes&#40;SQLErrorCodesFactory.java&#58;209&#41;
    	at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.setDataSource&#40;SQLErrorCodeSQLExceptionTranslator.java&#58;115&#41;
    	at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.<init>&#40;SQLErrorCodeSQLExceptionTranslator.java&#58;96&#41;
    	at org.springframework.jdbc.support.JdbcAccessor.getExceptionTranslator&#40;JdbcAccessor.java&#58;76&#41;
    	at org.springframework.jdbc.support.JdbcAccessor.afterPropertiesSet&#40;JdbcAccessor.java&#58;93&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods&#40;AbstractAutowireCapableBeanFactory.java&#58;1057&#41;
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean&#40;AbstractAutowireCapableBeanFactory.java&#58;287&#41;
    	... 11 more
    [/quote]

  • #2
    You can try using depends-on to sort this out.

    Comment


    • #3
      Solved

      I tried that before, but apparently, did not have the right set of combinations. By adding two depends-on on the elements shown below, all seems to work. I always defined my beans in an order that worked, so I never ran into this until a coworker rearranged his...from searching the forums, it doesn't seem to happen often, so I guess no worries...Thanks.

      Code:
      	<bean id="jdbcTemplate"
      		class="org.springframework.jdbc.core.JdbcTemplate" depends-on="dataSource">
      		<property name="dataSource">
      			<ref bean="dataSource" />
      		</property>
      	</bean>
      	
      	<bean id="dataSource"
      		class="org.apache.commons.dbcp.PoolingDataSource" depends-on="poolableConnectionFactory">
      		<constructor-arg>
      			<ref bean="connectionPool" />
      		</constructor-arg>
      	</bean>

      Comment

      Working...
      X