If you create a small test case to reproduce it, we might take a quick look to 
see if something obvious can be fixed.   However, I'd suggest start working on 
upgrading to a newer version of Spring.     We haven't tested with spring 2.5.x 
for a long time.   CXF 2.8.0 will drop support for spring 2.5 entirely.

Dan



On Feb 17, 2013, at 8:41 AM, stagirus <[email protected]> wrote:

> Did anybody test the CXF client (both simple and jaxws)? I am using CXF 2.6.6
> and Spring 2.5.6. CXF Server is working fine but not CXF client. I get the
> following error. The same Spring configuration worked fine with CXF 2.1.
> 
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'myclient': Initialization of bean failed; nested exception is
> java.lang.reflect.MalformedParameterizedTypeException:
> java.lang.reflect.MalformedParameterizedTypeException
>       at
> sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments(Unknown
> Source)
>       at
> sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.<init>(Unknown
> Source)
>       at
> sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.make(Unknown
> Source)
>       at
> sun.reflect.generics.factory.CoreReflectionFactory.makeParameterizedType(Unknown
> Source)
>       at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Unknown
> Source)
>       at sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown Source)
>       at
> sun.reflect.generics.repository.ClassRepository.getSuperInterfaces(Unknown
> Source)
>       at java.lang.Class.getGenericInterfaces(Unknown Source)
>       at
> org.springframework.core.GenericTypeResolver.getTypeVariableMap(GenericTypeResolver.java:151)
>       at
> org.springframework.core.GenericTypeResolver.resolveReturnType(GenericTypeResolver.java:99)
>       at
> org.springframework.beans.GenericTypeAwarePropertyDescriptor.getPropertyType(GenericTypeAwarePropertyDescriptor.java:88)
>       at
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)
>       at
> org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1289)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1250)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
>       at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
>       at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
>       at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
>       at
> org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
>       at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
>       at
> org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
>       at
> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
> 
> 
> 
> 
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/CXF-2-6-1-supported-Spring-versions-tp5712317p5723284.html
> Sent from the cxf-user mailing list archive at Nabble.com.

-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to