PDA

View Full Version : SI M4 nightly build taken today



diippi
Apr 21st, 2008, 03:18 PM
is breaking our previously running code with following , Any ideas ?



org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'integrationservice' defined in class path resource [/spring/integrationServiceDemo.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from class path resource [/spring/integrationservice-spring.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.support.BeanDefi nitionBuilder.genericBeanDefinition(Ljava/lang/Class;)Lorg/springframework/beans/factory/support/BeanDefinitionBuilder;
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1260)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:438)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:383)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:353)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 45)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:169)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.context.support.AbstractApplic ationContext.getBean(AbstractApplicationContext.ja va:888)
at com.wachovia.cib.gfits.frameworks.test.ServiceClie ntTest.testSendMessage(ServiceClientTest.java:48)
Caused by: org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from class path resource [/spring/integrationservice-spring.xml]; nested exception is java.lang.NoSuchMethodError: org.springframework.beans.factory.support.BeanDefi nitionBuilder.genericBeanDefinition(Ljava/lang/Class;)Lorg/springframework/beans/factory/support/BeanDefinitionBuilder;
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:405)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:327)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.loadBeanDefinitions(XmlBeanDefinitionR eader.java:295)
at org.springframework.beans.factory.support.Abstract BeanDefinitionReader.loadBeanDefinitions(AbstractB eanDefinitionReader.java:143)
at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:108)
at org.springframework.context.support.AbstractXmlApp licationContext.loadBeanDefinitions(AbstractXmlApp licationContext.java:79)
at org.springframework.context.support.AbstractRefres hableApplicationContext.refreshBeanFactory(Abstrac tRefreshableApplicationContext.java:97)
at org.springframework.context.support.AbstractApplic ationContext.obtainFreshBeanFactory(AbstractApplic ationContext.java:411)
at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:338)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationContext.java:181)
at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationContext.java:156)
at com.wachovia.cib.gfits.integration.service.Integra tionServiceImpl.afterPropertiesSet(IntegrationServ iceImpl.java:187)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1288)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1257)
... 55 more
Caused by: java.lang.NoSuchMethodError: org.springframework.beans.factory.support.BeanDefi nitionBuilder.genericBeanDefinition(Ljava/lang/Class;)Lorg/springframework/beans/factory/support/BeanDefinitionBuilder;
at org.springframework.integration.adapter.jms.config .JmsSourceAdapterParser.parseMessageDrivenSourceAd apter(JmsSourceAdapterParser.java:131)
at org.springframework.integration.adapter.jms.config .JmsSourceAdapterParser.parseInternal(JmsSourceAda pterParser.java:73)
at org.springframework.beans.factory.xml.AbstractBean DefinitionParser.parse(AbstractBeanDefinitionParse r.java:56)
at org.springframework.beans.factory.xml.NamespaceHan dlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1246)
at org.springframework.beans.factory.xml.BeanDefiniti onParserDelegate.parseCustomElement(BeanDefinition ParserDelegate.java:1236)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.parseBeanDefinitions(Defau ltBeanDefinitionDocumentReader.java:135)
at org.springframework.beans.factory.xml.DefaultBeanD efinitionDocumentReader.registerBeanDefinitions(De faultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.registerBeanDefinitions(XmlBeanDefinit ionReader.java:488)
at org.springframework.beans.factory.xml.XmlBeanDefin itionReader.doLoadBeanDefinitions(XmlBeanDefinitio nReader.java:383)
... 68 more

Mark Fisher
Apr 21st, 2008, 03:48 PM
That looks like a classpath issue. Can you check to be sure that you only have the snapshot version on your classpath and that all of the JARs from that version are available (spring-integration-core, spring-integration-adapters, etc)?

I think you likely have both the previous (M3) version and the new snapshot version.

-Mark

diippi
Apr 22nd, 2008, 04:05 PM
I cleared all the jars from my class path and tested this. Also had my team member test it and we still see the same issue..
Is there any other version that has changed in this week ? Spring version etc ?
Please help..

Mark Fisher
Apr 22nd, 2008, 04:13 PM
Indeed it looks like you must have a different Spring version on the classpath. Some of the API used for Spring Integration parsing was updated to use part of the underlying Spring API that is not in the version you have on the classpath. The official spring version included in the spring-integration M3 distirbution was 2.5.2. What version do you have on the classpath? Are you able to upgrade to 2.5.2 or 2.5.3?

-Mark

diippi
Apr 22nd, 2008, 04:32 PM
Yes...that was the spring version issue..I upgraded to 2.5.3 and it works fine now..
Thanks a lot !