Announcement Announcement Module
Collapse
No announcement yet.
Messaging Gateway problem - bean creation throws exception Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Messaging Gateway problem - bean creation throws exception

    I'm trying to create a Gateway Proxy. But trying to inject the created proxy interface into an object throws and exception:

    Config...


    <message-bus/>
    <annotation-driven/>

    <context:component-scan base-package="springinttest" />

    <channel id="reqChannel" />
    <channel id="replyChannel" />


    <gateway id="timeService"
    service-interface="springinttest.SyncService"
    request-channel="reqChannel"
    reply-channel="replyChannel"
    />

    <beans:bean id="client" class="springinttest.SynchronousClient">
    <beansroperty name="service" ref="timeService"/>
    </beans:bean>


    Exception...

    Exception in thread "main" org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'client' defined in class path resource [sync-demo.xml]: Cannot resolve reference to bean 'timeService' while setting bean property 'service'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'timeService': Post-processing of the FactoryBean's object failed; nested exception is java.lang.IllegalArgumentException: Class must not be null
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:275)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:104)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1244)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1008)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:470)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)


    Anyone help
    Simon

  • #2
    Hi Simon,

    At a first glance, this looks like a bug. I raised http://jira.springframework.org/browse/INT-262 for it. Please monitor it.

    Thanks,
    Marius

    Comment


    • #3
      Simon,

      Are you seeing this error with M4 or are you running against a later version from SVN?

      The reason I ask is that it might be the same as this issue that has been resolved (since the M4 release): http://jira.springframework.org/browse/INT-239

      Regards,
      Mark

      Comment

      Working...
      X