문제

I have a running grails app. I upgraded the
springsecurity-core from 1.2.7.3 to 2.0-RC2
springsecurity-acl from 1.1.1 to 2.0-RC1
I added
springsecurity-oauth-provider 1.0.5.1

And I get an exception during startup:

Caused by: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class org.codehaus.groovy.grails.commons.spring.TypeSpecifyableTransactionProxyFactoryBean]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given at grails.plugin.springsecurity.acl.AclAutoProxyCreator.createProxy(AclAutoProxyCreator.java:120) ... 4 more

Caused by: java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given at net.sf.cglib.transform.TransformingClassGenerator.generateClass(TransformingClassGenerator.java:33) at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25) at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216) ... 5 more

(only last part of ex)

도움이 되었습니까?

해결책

The workaround was to remove the "@PreAuhthorize" annotations from the code. These versions of springSecurity don't work well together from some reason.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top