freesky7 / ehcache-spring-annotations

Automatically exported from code.google.com/p/ehcache-spring-annotations
0 stars 0 forks source link

java.lang.NoSuchMethodError: org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang/Object;) #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for your great work. I want to use your API but got an error at
deployment. The spring-beans-3.0.1.RELEASE.jar is in the classpath but no
"add(String; Object;)" method exists in the
org.springframework.beans.MutablePropertyValues class !

I'm using ehcache-spring-annotations-1.0.3.

Please come back to me, it's pretty urgent.

StackTrace :
Caused by: java.lang.NoSuchMethodError:
org.springframework.beans.MutablePropertyValues.add(Ljava/lang/String;Ljava/lang
/Object;)Lorg/springframework/beans/MutablePropertyValues;
    at
com.googlecode.ehcache.annotations.config.AnnotationDrivenEhCacheBeanDefinitionP
arser.setupCacheAttributeSource(AnnotationDrivenEhCacheBeanDefinitionParser.java
:156)
    at
com.googlecode.ehcache.annotations.config.AnnotationDrivenEhCacheBeanDefinitionP
arser.parse(AnnotationDrivenEhCacheBeanDefinitionParser.java:83)
    at
org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHan
dlerSupport.java:69)
    at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomEl
ement(BeanDefinitionParserDelegate.java:1297)
    at
org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomEl
ement(BeanDefinitionParserDelegate.java:1287)
    at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseB
eanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
    at
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.regist
erBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
    at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefini
tions(XmlBeanDefinitionReader.java:507)
    at
org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefiniti
ons(XmlBeanDefinitionReader.java:398)

Original issue reported on code.google.com by phr...@gmail.com on 29 Apr 2010 at 10:00

GoogleCodeExporter commented 9 years ago
According to the Spring JavaDocs this API exists in 3.0:

http://static.springsource.org/spring/docs/3.0.x/javadoc-api/org/springframework
/beans/MutablePropertyValues.html#add(java.lang.String,%20java.lang.Object)

Can you verify that you don't accidentally have Spring 2.5 in your application?

Also we will be fixing this so the library should work with Spring 2.5 in the 
next
release.

Original comment by eric.dalquist on 29 Apr 2010 at 12:57

GoogleCodeExporter commented 9 years ago

Original comment by eric.dalquist on 29 Apr 2010 at 11:41