Announcement Announcement Module
Collapse
No announcement yet.
Cannot instantiate Gateway in 2.0.0M1 w/ Spring 3.0.0RC3 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot instantiate Gateway in 2.0.0M1 w/ Spring 3.0.0RC3

    When attempting to instantiate a Gateway, the following results:

    Code:
    java.lang.NoClassDefFoundError: org/springframework/core/convert/support/DefaultConversionService
    Gateway Configuration snippet:

    Code:
    	
    <si:gateway id="lookupProdGateway"
            service-interface="com.company.gateway.IProdLookupGateway"
    	default-request-channel="ProdLookup-Request"
    	default-reply-channel="ProdLookup-Response" />


    It seems that SI 2.0M1 requires Spring 3, yet Spring Core seems to have dropped the DefaultConversionService object from its latest release.


    Here is the full stacktrace:

    Code:
    SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'lookupProdGateway': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/convert/support/DefaultConversionService
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1401)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:512)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:289)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:286)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:188)
    	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:541)
    	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:842)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:416)
    	at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261)
    	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192)
    	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
    	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    	at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    	at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    	at java.lang.reflect.Method.invoke(Method.java:585)
    	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: java.lang.NoClassDefFoundError: org/springframework/core/convert/support/DefaultConversionService
    	at org.springframework.integration.gateway.GatewayProxyFactoryBean.createGatewayForMethod(GatewayProxyFactoryBean.java:228)
    	at org.springframework.integration.gateway.GatewayProxyFactoryBean.onInit(GatewayProxyFactoryBean.java:145)
    	at org.springframework.integration.endpoint.AbstractEndpoint.afterPropertiesSet(AbstractEndpoint.java:69)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
    	... 27 more

  • #2
    The DefaultConversionService was renamed in Spring 3.0 RC3 (or in a nightly after that). So either use a nightly snapshot of SI or wait for a snapshot which has this addressed.

    Comment


    • #3
      Thanks for the suggestion, Marten. That worked.

      Comment


      • #4
        We will be releasing Spring Integration 2.0 M2 sometime in December. It will depend on *at least* RC3 but hopefully even Spring 3.0 GA.

        Comment

        Working...
        X