Announcement Announcement Module
Collapse
No announcement yet.
Debug exceptions using ContextSingletonBeanFactoryLocator Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Debug exceptions using ContextSingletonBeanFactoryLocator

    Hi

    I've set up a system following the last recommended pattern of use in SingletonBeanFactoryLocator's javadoc - lots of beanRefFactory.xml files all at the root of each element of the classpath.

    When I run my code, it actually works fine. However, I've written an adapter from Commons Logging to our own logging API and while tracing debug messages I've noticed lots of exceptions being thrown while trying to create ClassPathXmlApplicationContext instances.

    Obviously, Spring seems to be falling back to some sensible behaviour, since it's all working fine - I just wondering if these exceptions that are being thrown are 'normal' ones that occur as Spring tries to work out what's the best way to connect all the bean together.

    Tim

  • #2
    Tim,

    Can you post the log file so we can check out what error messages are appearing in your logs. Also post your config so we can compare the logs to that.

    Regards,

    Rob

    Comment


    • #3
      Warning - long post content!

      Rob - let me stress, functionally this is working fine, it's just that the log looks a bit funny. I do get the output:

      Hello, my name is Joe Bloggs
      Hello, my name is Fred Bloggs

      Client code is:

      Introducable someIntroducable = (Introducable)SingletonBeanFactoryLocator.getInsta nce().useBeanFactory("modulea.beans").getFactory() .getBean("someBean");
      someIntroducable.introduction();
      Introducable anotherIntroducable = (Introducable)SingletonBeanFactoryLocator.getInsta nce().useBeanFactory("moduleb.beans").getFactory() .getBean("anotherBean");
      anotherIntroducable.introduction();

      The two, related beans defined are, in beansa.xml in module A:

      <beans>
      <bean id="someBean" class="test.beans.intro.implementation.Person" init-method="setup">
      <property name="firstName"><value>Joe</value></property>
      <property name="lastName"><value>Bloggs</value></property>
      </bean>
      </beans>

      and in beansb.xml in module B:

      <beans>
      <bean id="anotherBean" parent="someBean">
      <property name="firstName"><value>Fred</value></property>
      </bean>
      </beans>

      The bean factories are stitched together by two beanRefFactory.xml files. In module A we have:

      <beans>
      <bean id="modulea.beans" lazy-init="true" class="org.springframework.context.support.ClassPa thXmlApplicationContext">
      <constructor-arg>
      <value>test/beans/beansa.xml</value>
      </constructor-arg>
      </bean>
      </beans>

      and in module B:

      <beans>
      <bean id="moduleb.beans" lazy-init="true" class="org.springframework.context.support.ClassPa thXmlApplicationContext">
      <constructor-arg>
      <list><value>test/beans/beansb.xml</value></list>
      </constructor-arg>
      <constructor-arg>
      <ref bean="modulea.beans"/>
      </constructor-arg>
      </bean>
      </beans>

      which is exactly how I'd expect to be able to use SingletonBeanFactoryLocator, according to the javadoc.

      Now the log I get is as follows. Note the log format is referring to 'debug' level where you see 'Detail' - I've just adapted the logger into our own framework. You can see the debug exceptions there.

      2005-02-21 17:08:14.309|Detail |COREM.101 |Factory group with resource name [classpath*:beanRefFactory.xml] requested. Creating new instance.
      2005-02-21 17:08:14.499|Information|COREM.101 |Loading XML bean definitions from URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]
      2005-02-21 17:08:14.499|Detail |COREM.101 |Using JAXP implementation [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl @17a29a1]
      2005-02-21 17:08:14.539|Detail |COREM.101 |Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
      2005-02-21 17:08:14.539|Detail |COREM.101 |Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
      2005-02-21 17:08:14.549|Detail |COREM.101 |Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
      2005-02-21 17:08:14.609|Detail |COREM.101 |Loading bean definitions
      2005-02-21 17:08:14.609|Detail |COREM.101 |Default lazy init 'false'
      2005-02-21 17:08:14.609|Detail |COREM.101 |Default dependency check 'none'
      2005-02-21 17:08:14.609|Detail |COREM.101 |Default autowire 'no'
      2005-02-21 17:08:14.669|Detail |COREM.101 |Found 1 <bean> elements defining beans
      2005-02-21 17:08:14.669|Information|COREM.101 |Loading XML bean definitions from URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]
      2005-02-21 17:08:14.669|Detail |COREM.101 |Using JAXP implementation [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl @1479feb]
      2005-02-21 17:08:14.669|Detail |COREM.101 |Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
      2005-02-21 17:08:14.669|Detail |COREM.101 |Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
      2005-02-21 17:08:14.669|Detail |COREM.101 |Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
      2005-02-21 17:08:14.719|Detail |COREM.101 |Loading bean definitions
      2005-02-21 17:08:14.719|Detail |COREM.101 |Default lazy init 'false'
      2005-02-21 17:08:14.719|Detail |COREM.101 |Default dependency check 'none'
      2005-02-21 17:08:14.719|Detail |COREM.101 |Default autowire 'no'
      2005-02-21 17:08:14.719|Detail |COREM.101 |Found 1 <bean> elements defining beans
      2005-02-21 17:08:14.719|Information|COREM.101 |Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [modulea.beans,moduleb.beans]; root of BeanFactory hierarchy]
      2005-02-21 17:08:14.729|Information|COREM.101 |Creating shared instance of singleton bean 'modulea.beans'
      2005-02-21 17:08:14.729|Detail |COREM.101 |Creating instance of bean 'modulea.beans' with merged definition [Root bean with class [org.springframework.context.support.ClassPathXmlAp plicationContext] defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]]
      2005-02-21 17:08:14.800|Detail |COREM.101 |Ignoring constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String[],boolean,org.springframework.context.ApplicationCo ntext) throws org.springframework.beans.BeansException] of bean 'modulea.beans': could not satisfy dependencies
      2005-02-21 17:08:14.800|Detail |COREM.101 |Error creating bean with name 'modulea.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [[Ljava.lang.String;]: Did you specify the correct bean references as generic constructor arguments?
      2005-02-21 17:08:14.800|Detail |CCOMM.0 |Exception: org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'modulea.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [[Ljava.lang.String;]: Did you specify the correct bean references as generic constructor arguments?
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createArgumentArray(Abs tractAutowireCapableBeanFactory.java:622)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:495)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:306)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:387)
      at test.Main.getBean(Unknown Source)
      at test.Main.run(Unknown Source)
      at test.Main.main(Unknown Source)

      2005-02-21 17:08:14.800|Detail |COREM.101 |Ignoring constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String[],boolean) throws org.springframework.beans.BeansException] of bean 'modulea.beans': could not satisfy dependencies
      2005-02-21 17:08:14.800|Detail |COREM.101 |Error creating bean with name 'modulea.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [[Ljava.lang.String;]: Did you specify the correct bean references as generic constructor arguments?
      2005-02-21 17:08:14.800|Detail |CCOMM.0 |Exception: org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'modulea.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [[Ljava.lang.String;]: Did you specify the correct bean references as generic constructor arguments?
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createArgumentArray(Abs tractAutowireCapableBeanFactory.java:622)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:495)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:306)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:387)
      at test.Main.getBean(Unknown Source)
      at test.Main.run(Unknown Source)
      at test.Main.main(Unknown Source)

      2005-02-21 17:08:14.800|Detail |COREM.101 |Ignoring constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String[],org.springframework.context.ApplicationContext) throws org.springframework.beans.BeansException] of bean 'modulea.beans': could not satisfy dependencies
      2005-02-21 17:08:14.800|Detail |COREM.101 |Error creating bean with name 'modulea.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [[Ljava.lang.String;]: Did you specify the correct bean references as generic constructor arguments?
      2005-02-21 17:08:14.800|Detail |CCOMM.0 |Exception: org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'modulea.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [[Ljava.lang.String;]: Did you specify the correct bean references as generic constructor arguments?
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createArgumentArray(Abs tractAutowireCapableBeanFactory.java:622)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:495)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:306)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:387)
      at test.Main.getBean(Unknown Source)
      at test.Main.run(Unknown Source)
      at test.Main.main(Unknown Source)

      2005-02-21 17:08:14.800|Detail |COREM.101 |Ignoring constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String[]) throws org.springframework.beans.BeansException] of bean 'modulea.beans': could not satisfy dependencies
      2005-02-21 17:08:14.800|Detail |COREM.101 |Error creating bean with name 'modulea.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [[Ljava.lang.String;]: Did you specify the correct bean references as generic constructor arguments?
      2005-02-21 17:08:14.800|Detail |CCOMM.0 |Exception: org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'modulea.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/modulea/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [[Ljava.lang.String;]: Did you specify the correct bean references as generic constructor arguments?
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createArgumentArray(Abs tractAutowireCapableBeanFactory.java:622)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:495)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:306)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:387)
      at test.Main.getBean(Unknown Source)
      at test.Main.run(Unknown Source)
      at test.Main.main(Unknown Source)

      2005-02-21 17:08:14.800|Information|COREM.101 |Loading XML bean definitions from class path resource [test/beans/beansa.xml]
      2005-02-21 17:08:14.810|Detail |COREM.101 |Using JAXP implementation [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl @3570b0]
      2005-02-21 17:08:14.810|Detail |COREM.101 |Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
      2005-02-21 17:08:14.810|Detail |COREM.101 |Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
      2005-02-21 17:08:14.810|Detail |COREM.101 |Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
      2005-02-21 17:08:14.830|Detail |COREM.101 |Loading bean definitions
      2005-02-21 17:08:14.830|Detail |COREM.101 |Default lazy init 'false'
      2005-02-21 17:08:14.830|Detail |COREM.101 |Default dependency check 'none'
      2005-02-21 17:08:14.830|Detail |COREM.101 |Default autowire 'no'
      2005-02-21 17:08:14.840|Detail |COREM.101 |Found 1 <bean> elements defining beans
      2005-02-21 17:08:14.840|Information|COREM.101 |Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=29839159]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [someBean]; root of BeanFactory hierarchy
      2005-02-21 17:08:14.840|Information|COREM.101 |1 beans defined in application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=29839159]
      2005-02-21 17:08:14.840|Information|COREM.101 |Using JDK 1.4 collections
      2005-02-21 17:08:14.840|Detail |COREM.101 |Creating java.util.LinkedHashMap
      2005-02-21 17:08:14.850|Detail |COREM.101 |Creating java.util.LinkedHashMap
      2005-02-21 17:08:14.850|Information|COREM.101 |Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.StaticMessageS ource: {}]
      2005-02-21 17:08:14.860|Information|COREM.101 |Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@148bd3]
      2005-02-21 17:08:14.860|Detail |COREM.101 |Refreshing listeners
      2005-02-21 17:08:14.860|Detail |COREM.101 |Creating java.util.LinkedHashMap
      2005-02-21 17:08:14.860|Detail |COREM.101 |Found 0 listeners in bean factory
      2005-02-21 17:08:14.860|Information|COREM.101 |Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [someBean]; root of BeanFactory hierarchy]
      2005-02-21 17:08:14.860|Information|COREM.101 |Creating shared instance of singleton bean 'someBean'
      2005-02-21 17:08:14.860|Detail |COREM.101 |Creating instance of bean 'someBean' with merged definition [Root bean with class [test.beans.intro.implementation.Person] defined in class path resource [test/beans/beansa.xml]]
      2005-02-21 17:08:14.860|Detail |COREM.101 |Getting BeanInfo for class [test.beans.intro.implementation.Person]
      2005-02-21 17:08:14.880|Detail |COREM.101 |Caching PropertyDescriptors for class [test.beans.intro.implementation.Person]
      2005-02-21 17:08:14.880|Detail |COREM.101 |Found property 'class' of type [java.lang.Class]
      2005-02-21 17:08:14.880|Detail |COREM.101 |Found property 'firstName' of type [java.lang.String]
      2005-02-21 17:08:14.880|Detail |COREM.101 |Found property 'lastName' of type [java.lang.String]
      2005-02-21 17:08:14.880|Detail |COREM.101 |Class [test.beans.intro.implementation.Person] is cache-safe
      2005-02-21 17:08:14.880|Detail |COREM.101 |About to invoke write method [public void test.beans.intro.implementation.Person.setFirstNam e(java.lang.String)] on object of class [test.beans.intro.implementation.Person]
      2005-02-21 17:08:14.880|Detail |COREM.101 |Invoked write method [public void test.beans.intro.implementation.Person.setFirstNam e(java.lang.String)] with value [Joe]
      2005-02-21 17:08:14.880|Detail |COREM.101 |About to invoke write method [public void test.beans.intro.implementation.Person.setLastName (java.lang.String)] on object of class [test.beans.intro.implementation.Person]
      2005-02-21 17:08:14.880|Detail |COREM.101 |Invoked write method [public void test.beans.intro.implementation.Person.setLastName (java.lang.String)] with value [Bloggs]
      2005-02-21 17:08:14.890|Detail |COREM.101 |Invoking BeanPostProcessors before initialization of bean 'someBean'
      2005-02-21 17:08:14.900|Detail |COREM.101 |Invoking custom init method 'setup' on bean with beanName 'someBean'
      2005-02-21 17:08:14.900|Detail |COREM.101 |Invoking BeanPostProcessors after initialization of bean 'someBean'
      2005-02-21 17:08:14.910|Detail |COREM.101 |Publishing event in context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=29839159]: org.springframework.context.event.ContextRefreshed Event[source=org.springframework.context.support.ClassPa thXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=29839159]; startup date [Mon Feb 21 17:08:14 GMT 2005]; root of context hierarchy]
      2005-02-21 17:08:14.910|Detail |COREM.101 |Getting BeanInfo for class [org.springframework.context.support.ClassPathXmlAp plicationContext]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Caching PropertyDescriptors for class [org.springframework.context.support.ClassPathXmlAp plicationContext]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'beanDefinitionCount' of type [int]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'beanDefinitionNames' of type [[Ljava.lang.String;]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'beanFactory' of type [org.springframework.beans.factory.config.Configura bleListableBeanFactory]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'beanFactoryPostProcessors' of type [java.util.List]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'class' of type [java.lang.Class]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'classLoader' of type [java.lang.ClassLoader]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'displayName' of type [java.lang.String]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'parent' of type [org.springframework.context.ApplicationContext]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'parentBeanFactory' of type [org.springframework.beans.factory.BeanFactory]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Found property 'startupDate' of type [long]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Class [org.springframework.context.support.ClassPathXmlAp plicationContext] is cache-safe
      2005-02-21 17:08:14.940|Detail |COREM.101 |Bean 'modulea.beans' instantiated via constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String) throws org.springframework.beans.BeansException]
      2005-02-21 17:08:14.940|Detail |COREM.101 |Invoking BeanPostProcessors before initialization of bean 'modulea.beans'
      2005-02-21 17:08:14.940|Detail |COREM.101 |Invoking BeanPostProcessors after initialization of bean 'modulea.beans'
      2005-02-21 17:08:14.940|Detail |COREM.101 |Returning cached instance of singleton bean 'someBean'
      2005-02-21 17:08:14.940|Information|COREM.101 |Creating shared instance of singleton bean 'moduleb.beans'
      2005-02-21 17:08:14.940|Detail |COREM.101 |Creating instance of bean 'moduleb.beans' with merged definition [Root bean with class [org.springframework.context.support.ClassPathXmlAp plicationContext] defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]]
      2005-02-21 17:08:14.950|Detail |COREM.101 |Resolving reference from property 'constructor argument' in bean 'moduleb.beans' to bean 'modulea.beans'
      2005-02-21 17:08:14.950|Detail |COREM.101 |Returning cached instance of singleton bean 'modulea.beans'
      2005-02-21 17:08:14.950|Detail |COREM.101 |Ignoring constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String[],boolean,org.springframework.context.ApplicationCo ntext) throws org.springframework.beans.BeansException] of bean 'moduleb.beans': could not satisfy dependencies
      2005-02-21 17:08:14.950|Detail |COREM.101 |Error creating bean with name 'moduleb.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [boolean]: Did you specify the correct bean references as generic constructor arguments?
      2005-02-21 17:08:14.950|Detail |CCOMM.0 |Exception: org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'moduleb.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [boolean]: Did you specify the correct bean references as generic constructor arguments?
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createArgumentArray(Abs tractAutowireCapableBeanFactory.java:622)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:495)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:306)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:387)
      at test.Main.getBean(Unknown Source)
      at test.Main.run(Unknown Source)
      at test.Main.main(Unknown Source)

      2005-02-21 17:08:14.950|Detail |COREM.101 |Ignoring constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String[],boolean) throws org.springframework.beans.BeansException] of bean 'moduleb.beans': could not satisfy dependencies
      2005-02-21 17:08:14.950|Detail |COREM.101 |Error creating bean with name 'moduleb.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [boolean]: Did you specify the correct bean references as generic constructor arguments?
      2005-02-21 17:08:14.950|Detail |CCOMM.0 |Exception: org.springframework.beans.factory.UnsatisfiedDepen dencyException: Error creating bean with name 'moduleb.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [boolean]: Did you specify the correct bean references as generic constructor arguments?
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createArgumentArray(Abs tractAutowireCapableBeanFactory.java:622)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:495)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:306)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:387)
      at test.Main.getBean(Unknown Source)
      at test.Main.run(Unknown Source)
      at test.Main.main(Unknown Source)

      2005-02-21 17:08:14.950|Detail |COREM.101 |Ignoring constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String[]) throws org.springframework.beans.BeansException] of bean 'moduleb.beans': could not satisfy dependencies
      2005-02-21 17:08:14.950|Detail |COREM.101 |Error creating bean with name 'moduleb.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]: 2 constructor arguments specified but no matching constructor found in bean 'moduleb.beans' (hint: specify index arguments for simple parameters to avoid type ambiguities)
      2005-02-21 17:08:14.950|Detail |CCOMM.0 |Exception: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'moduleb.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]: 2 constructor arguments specified but no matching constructor found in bean 'moduleb.beans' (hint: specify index arguments for simple parameters to avoid type ambiguities)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:490)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:306)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:387)
      at test.Main.getBean(Unknown Source)
      at test.Main.run(Unknown Source)
      at test.Main.main(Unknown Source)

      2005-02-21 17:08:14.950|Detail |COREM.101 |Ignoring constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String) throws org.springframework.beans.BeansException] of bean 'moduleb.beans': could not satisfy dependencies
      2005-02-21 17:08:14.950|Detail |COREM.101 |Error creating bean with name 'moduleb.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]: 2 constructor arguments specified but no matching constructor found in bean 'moduleb.beans' (hint: specify index arguments for simple parameters to avoid type ambiguities)
      2005-02-21 17:08:14.950|Detail |CCOMM.0 |Exception: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'moduleb.beans' defined in URL [file:/G:/sandboxes/investingations/springsimple/build/moduleb/beanRefFactory.xml]: 2 constructor arguments specified but no matching constructor found in bean 'moduleb.beans' (hint: specify index arguments for simple parameters to avoid type ambiguities)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireConstructor(Abs tractAutowireCapableBeanFactory.java:490)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:306)
      at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:260)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:221)
      at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:145)
      at org.springframework.beans.factory.access.Singleton BeanFactoryLocator.useBeanFactory(SingletonBeanFac toryLocator.java:387)
      at test.Main.getBean(Unknown Source)
      at test.Main.run(Unknown Source)
      at test.Main.main(Unknown Source)

      2005-02-21 17:08:14.950|Information|COREM.101 |Loading XML bean definitions from class path resource [test/beans/beansb.xml]
      2005-02-21 17:08:14.950|Detail |COREM.101 |Using JAXP implementation [org.apache.crimson.jaxp.DocumentBuilderFactoryImpl @10382a9]
      2005-02-21 17:08:14.950|Detail |COREM.101 |Trying to resolve XML entity with public ID [-//SPRING//DTD BEAN//EN] and system ID [http://www.springframework.org/dtd/spring-beans.dtd]
      2005-02-21 17:08:14.950|Detail |COREM.101 |Trying to locate [spring-beans.dtd] under [/org/springframework/beans/factory/xml/]
      2005-02-21 17:08:14.960|Detail |COREM.101 |Found beans DTD [http://www.springframework.org/dtd/spring-beans.dtd] in classpath
      2005-02-21 17:08:14.980|Detail |COREM.101 |Loading bean definitions
      2005-02-21 17:08:14.980|Detail |COREM.101 |Default lazy init 'false'
      2005-02-21 17:08:14.980|Detail |COREM.101 |Default dependency check 'none'
      2005-02-21 17:08:14.980|Detail |COREM.101 |Default autowire 'no'
      2005-02-21 17:08:14.980|Detail |COREM.101 |Found 1 <bean> elements defining beans
      2005-02-21 17:08:14.980|Information|COREM.101 |Bean factory for application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=22355327]: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [anotherBean]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [someBean]; root of BeanFactory hierarchy
      2005-02-21 17:08:14.980|Information|COREM.101 |1 beans defined in application context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=22355327]
      2005-02-21 17:08:14.980|Detail |COREM.101 |Creating java.util.LinkedHashMap
      2005-02-21 17:08:14.980|Detail |COREM.101 |Creating java.util.LinkedHashMap
      2005-02-21 17:08:14.980|Information|COREM.101 |Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.StaticMessageS ource: {}]
      2005-02-21 17:08:14.980|Information|COREM.101 |Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicatio nEventMulticaster@1506dc4]
      2005-02-21 17:08:14.980|Detail |COREM.101 |Refreshing listeners
      2005-02-21 17:08:14.980|Detail |COREM.101 |Creating java.util.LinkedHashMap
      2005-02-21 17:08:14.980|Detail |COREM.101 |Found 0 listeners in bean factory
      2005-02-21 17:08:14.980|Information|COREM.101 |Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [anotherBean]; parent: org.springframework.beans.factory.support.DefaultL istableBeanFactory defining beans [someBean]; root of BeanFactory hierarchy]
      2005-02-21 17:08:14.990|Information|COREM.101 |Creating shared instance of singleton bean 'anotherBean'
      2005-02-21 17:08:14.990|Detail |COREM.101 |Creating instance of bean 'anotherBean' with merged definition [Root bean with class [test.beans.intro.implementation.Person] defined in class path resource [test/beans/beansb.xml]]
      2005-02-21 17:08:14.990|Detail |COREM.101 |Using cached introspection results for class [test.beans.intro.implementation.Person]
      2005-02-21 17:08:14.990|Detail |COREM.101 |About to invoke write method [public void test.beans.intro.implementation.Person.setFirstNam e(java.lang.String)] on object of class [test.beans.intro.implementation.Person]
      2005-02-21 17:08:14.990|Detail |COREM.101 |Invoked write method [public void test.beans.intro.implementation.Person.setFirstNam e(java.lang.String)] with value [Fred]
      2005-02-21 17:08:14.990|Detail |COREM.101 |About to invoke write method [public void test.beans.intro.implementation.Person.setLastName (java.lang.String)] on object of class [test.beans.intro.implementation.Person]
      2005-02-21 17:08:14.990|Detail |COREM.101 |Invoked write method [public void test.beans.intro.implementation.Person.setLastName (java.lang.String)] with value [Bloggs]
      2005-02-21 17:08:14.990|Detail |COREM.101 |Invoking BeanPostProcessors before initialization of bean 'anotherBean'
      2005-02-21 17:08:14.990|Detail |COREM.101 |Invoking custom init method 'setup' on bean with beanName 'anotherBean'
      2005-02-21 17:08:14.990|Detail |COREM.101 |Invoking BeanPostProcessors after initialization of bean 'anotherBean'
      2005-02-21 17:08:14.990|Detail |COREM.101 |Publishing event in context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=22355327]: org.springframework.context.event.ContextRefreshed Event[source=org.springframework.context.support.ClassPa thXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=22355327]; startup date [Mon Feb 21 17:08:14 GMT 2005]; child of [org.springframework.context.support.ClassPathXmlAp plicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=29839159]; startup date [Mon Feb 21 17:08:14 GMT 2005]; root of context hierarchy]]
      2005-02-21 17:08:14.990|Detail |COREM.101 |Publishing event in context [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=29839159]: org.springframework.context.event.ContextRefreshed Event[source=org.springframework.context.support.ClassPa thXmlApplicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=22355327]; startup date [Mon Feb 21 17:08:14 GMT 2005]; child of [org.springframework.context.support.ClassPathXmlAp plicationContext: display name [org.springframework.context.support.ClassPathXmlAp plicationContext;hashCode=29839159]; startup date [Mon Feb 21 17:08:14 GMT 2005]; root of context hierarchy]]
      2005-02-21 17:08:14.990|Detail |COREM.101 |Using cached introspection results for class [org.springframework.context.support.ClassPathXmlAp plicationContext]
      2005-02-21 17:08:14.990|Detail |COREM.101 |Bean 'moduleb.beans' instantiated via constructor [public org.springframework.context.support.ClassPathXmlAp plicationContext(java.lang.String[],org.springframework.context.ApplicationContext) throws org.springframework.beans.BeansException]
      2005-02-21 17:08:14.990|Detail |COREM.101 |Invoking BeanPostProcessors before initialization of bean 'moduleb.beans'
      2005-02-21 17:08:14.990|Detail |COREM.101 |Invoking BeanPostProcessors after initialization of bean 'moduleb.beans'
      2005-02-21 17:08:14.990|Detail |COREM.101 |Returning cached instance of singleton bean 'anotherBean'

      Comment

      Working...
      X