java - Get a NoSuchMethodError:Spring Framework when I am not using Spring -
i running normal automation case error :
java.lang.nosuchmethoderror: org.springframework.util.classutils.iscglibproxyclass(ljava/lang/class;)z @ org.apache.cxf.common.util.springaopclasshelper.getrealclassinternal(springaopclasshelper.java:86) @ org.apache.cxf.common.util.classhelper.getrealclass(classhelper.java:55) @ org.apache.cxf.jaxrs.provider.providerfactory.setcommonproviders(providerfactory.java:513) @ org.apache.cxf.jaxrs.client.clientproviderfactory.setproviders(clientproviderfactory.java:91) @ org.apache.cxf.jaxrs.provider.providerfactory.initbasefactory(providerfactory.java:138) @ org.apache.cxf.jaxrs.client.clientproviderfactory.initbasefactory(clientproviderfactory.java:81) @ org.apache.cxf.jaxrs.client.clientproviderfactory.createinstance(clientproviderfactory.java:56) @ org.apache.cxf.jaxrs.client.jaxrsclientfactorybean.initclient(jaxrsclientfactorybean.java:364) @ org.apache.cxf.jaxrs.client.jaxrsclientfactorybean.createwebclient(jaxrsclientfactorybean.java:212) @ org.apache.cxf.jaxrs.client.spec.clientimpl$webtargetimpl.inittargetclientifneeded(clientimpl.java:270) @ org.apache.cxf.jaxrs.client.spec.clientimpl$webtargetimpl.request(clientimpl.java:232)
the puzzling thing not using related spring.
and pom file has spring version 3.0.3
if run code in new workspace run first time - after start throwing above error. also, if build project before running code won't work.
seems apache cxf sees spring available , tries use in classhelper, see https://issues.apache.org/jira/browse/cxf-6191 , https://github.com/apache/cxf/blob/master/core/src/main/java/org/apache/cxf/common/util/classhelper.java#l40.
and spring comes dependency component, it's pretty common these days :) can pin point needs running mvn dependency:tree
command line or using dependency tree view in ide.
Comments
Post a Comment