DWR 3.0 and spring 4.2

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

DWR 3.0 and spring 4.2

jiri.pejchal
Hi,

I can't run dwr3.0 with spring 4.2 (currently 4.2.0.RC3).

org.directwebremoting.spring.BeanCreator uses method

org.springframework.aop.support.AopUtils#isCglibProxyClass(this.beanClass)

that has been deprecated as of Spring 3.1 in favor of
ClassUtils.isCglibProxyClassName(String) and in spring 4.2 has been
apparently removed.

Jiri Pejchal


Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)#7d4e4d56': Invocation of
init method failed; nested exception is java.lang.NoSuchMethodError:
org.springframework.aop.support.AopUtils.isCglibProxyClass(Ljava/lang/Class;)Z
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
    ... 91 common frames omitted
Caused by: java.lang.NoSuchMethodError:
org.springframework.aop.support.AopUtils.isCglibProxyClass(Ljava/lang/Class;)Z
    at org.directwebremoting.spring.BeanCreator.afterPropertiesSet(BeanCreator.java:60)
~[dwr-3.0.0-RELEASE.jar:na]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
    ... 94 common frames omitted
Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 and spring 4.2

david@butterdev.com
Thanks for the report Jiri.  I have created a ticket for this:
https://directwebremoting.atlassian.net/browse/DWR-650

On 07/16/2015 09:35 AM, Jiri Pejchal wrote:

> Hi,
>
> I can't run dwr3.0 with spring 4.2 (currently 4.2.0.RC3).
>
> org.directwebremoting.spring.BeanCreator uses method
>
> org.springframework.aop.support.AopUtils#isCglibProxyClass(this.beanClass)
>
> that has been deprecated as of Spring 3.1 in favor of
> ClassUtils.isCglibProxyClassName(String) and in spring 4.2 has been
> apparently removed.
>
> Jiri Pejchal
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)#7d4e4d56': Invocation of
> init method failed; nested exception is java.lang.NoSuchMethodError:
> org.springframework.aop.support.AopUtils.isCglibProxyClass(Ljava/lang/Class;)Z
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      ... 91 common frames omitted
> Caused by: java.lang.NoSuchMethodError:
> org.springframework.aop.support.AopUtils.isCglibProxyClass(Ljava/lang/Class;)Z
>      at org.directwebremoting.spring.BeanCreator.afterPropertiesSet(BeanCreator.java:60)
> ~[dwr-3.0.0-RELEASE.jar:na]
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      ... 94 common frames omitted
>

Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 and spring 4.2

david@butterdev.com
In reply to this post by jiri.pejchal
Jeri,
Try out the latest build on Bamboo:
http://ci.directwebremoting.org/bamboo/browse/DWRTRUNK-ALL-643/artifact

On 07/16/2015 09:35 AM, Jiri Pejchal wrote:

> Hi,
>
> I can't run dwr3.0 with spring 4.2 (currently 4.2.0.RC3).
>
> org.directwebremoting.spring.BeanCreator uses method
>
> org.springframework.aop.support.AopUtils#isCglibProxyClass(this.beanClass)
>
> that has been deprecated as of Spring 3.1 in favor of
> ClassUtils.isCglibProxyClassName(String) and in spring 4.2 has been
> apparently removed.
>
> Jiri Pejchal
>
>
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)#7d4e4d56': Invocation of
> init method failed; nested exception is java.lang.NoSuchMethodError:
> org.springframework.aop.support.AopUtils.isCglibProxyClass(Ljava/lang/Class;)Z
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:299)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      ... 91 common frames omitted
> Caused by: java.lang.NoSuchMethodError:
> org.springframework.aop.support.AopUtils.isCglibProxyClass(Ljava/lang/Class;)Z
>      at org.directwebremoting.spring.BeanCreator.afterPropertiesSet(BeanCreator.java:60)
> ~[dwr-3.0.0-RELEASE.jar:na]
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
> ~[spring-beans-4.2.0.RC3.jar:4.2.0.RC3]
>      ... 94 common frames omitted
>

Reply | Threaded
Open this post in threaded view
|

Re: DWR 3.0 and spring 4.2

jiri.pejchal
In reply to this post by jiri.pejchal
>Jeri,
>Try out the latest build on Bamboo:
>http://ci.directwebremoting.org/bamboo/browse/DWRTRUNK-ALL-643/artifact

Hi,

looks good. It's working now.

Jiri Pejchal