|
From: <jas...@ma...> - 2004-06-24 13:02:04
|
On 24 Jun 2004, at 13:47, j=FCrgen h=F6ller [werk3AT] wrote:
> Seems to be a classloading problem... maybe an incompatible CGLIB =20
> version somewhere else in the classpath?
BTW the failure when running the tests via Ant doesn't have anything to =20=
do with Maven versions or CLASSPATHs AFAIK... (BTW the stuff in lib/ext =20=
was put there by Apple, not me)
macstrac:~/cvs/spring jstrachan$ echo $CLASSPATH
macstrac:~/cvs/spring jstrachan$ ls $JAVA_HOME/lib/ext
apple_provider.jar ldapsec.jar localedata.jar =20=
sunjce_provider.jar
macstrac:~/cvs/spring jstrachan$ ant tests
Buildfile: build.xml
compileattr:
[attribute-compiler] Generated attribute information for 0 classes. =20
Ignored 0 classes.
build:
buildmock:
compiletestattr:
[attribute-compiler] Generated attribute information for 0 classes. =20
Ignored 1 classes.
buildtests:
tests:
[junit] Running =20
org.springframework.aop.framework.adapter.AdvisorAdapterRegistrationTest=20=
s
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 8.857 =20=
sec
[junit] Testsuite: =20
org.springframework.aop.framework.adapter.AdvisorAdapterRegistrationTest=20=
s
[junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 8.857 =20=
sec
[junit] ------------- Standard Output ---------------
[junit] before() method is called on =20
org.springframework.aop.SimpleBeforeAdviceImpl
[junit] ------------- ---------------- ---------------
[junit] Testcase: =20
testAdvisorAdapterRegistrationManagerNotPresentInContext took 6.149 sec
[junit] Testcase: =20
testAdvisorAdapterRegistrationManagerPresentInContext took 0.448 sec
[junit] Running =20
org.springframework.aop.framework.adapter.ThrowsAdviceInterceptorTests
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 4.344 =20=
sec
[junit] Testsuite: =20
org.springframework.aop.framework.adapter.ThrowsAdviceInterceptorTests
[junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 4.344 =20=
sec
[junit] Testcase: testNoHandlerMethods took 0.808 sec
[junit] Testcase: testNotInvoked took 0.161 sec
[junit] Testcase: testNoHandlerMethodForThrowable took 0.002 sec
[junit] Testcase: testCorrectHandlerUsed took 0.004 sec
[junit] Testcase: testCorrectHandlerUsedForSubclass took 0.002 sec
[junit] Testcase: testHandlerMethodThrowsException took 0.002 sec
[junit] Running =20
org.springframework.aop.framework.autoproxy.AdvisorAutoProxyCreatorTests
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 4.277 =20=
sec
[junit] Testsuite: =20
org.springframework.aop.framework.autoproxy.AdvisorAutoProxyCreatorTests
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 4.277 =20=
sec
[junit] Testcase: testDefaultExclusionPrefix took 2.65 sec
[junit] Caused an ERROR
[junit] Error creating bean with name 'rollback' defined in class =20=
path resource =20
[org/springframework/aop/framework/autoproxy/=20
advisorAutoProxyCreator.xml]: Initialization of bean failed; nested =20
exception is org.aopalliance.aop.AspectException: null
[junit] org.springframework.beans.factory.BeanCreationException: =20=
Error creating bean with name 'rollback' defined in class path resource =20=
[org/springframework/aop/framework/autoproxy/=20
advisorAutoProxyCreator.xml]: Initialization of bean failed; nested =20
exception is org.aopalliance.aop.AspectException: null
[junit] java.lang.IllegalStateException: Callback =20
Lnet/sf/cglib/proxy/MethodInterceptor; is not assignable to =20
Lnet/sf/cglib/proxy/MethodInterceptor;
[junit] at =20
net.sf.cglib.proxy.Enhancer.validate(Enhancer.java:374)
[junit] at =20
net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:399)
[junit] at =
net.sf.cglib.proxy.Enhancer.create(Enhancer.java:318)
[junit] at =20
org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy=20=
.java:170)
[junit] at =20
org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy=20=
.java:135)
[junit] at =20
org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.jav=20=
a:63)
[junit] at =20
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.pos=20=
tProcessAfterInitialization(AbstractAutoProxyCreator.java:256)
[junit] at =20
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac=20=
tory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableB=20=
eanFactory.java:165)
[junit] at =20
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac=20=
tory.createBean(AbstractAutowireCapableBeanFactory.java:265)
[junit] at =20
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFac=20=
tory.createBean(AbstractAutowireCapableBeanFactory.java:187)
[junit] at =20
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Ab=20=
stractBeanFactory.java:159)
[junit] at =20
org.springframework.beans.factory.support.DefaultListableBeanFactory.pre=20=
InstantiateSingletons(DefaultListableBeanFactory.java:183)
[junit] at =20
org.springframework.context.support.AbstractApplicationContext.refresh(A=20=
bstractApplicationContext.java:279)
[junit] at =20
org.springframework.context.support.ClassPathXmlApplicationContext.<init=20=
>(ClassPathXmlApplicationContext.java:58)
[junit] at =20
org.springframework.aop.framework.autoproxy.AdvisorAutoProxyCreatorTests=20=
.getBeanFactory(AdvisorAutoProxyCreatorTests.java:52)
[junit] at =20
org.springframework.aop.framework.autoproxy.AdvisorAutoProxyCreatorTests=20=
.testDefaultExclusionPrefix(AdvisorAutoProxyCreatorTests.java:56)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native =20=
Method)
[junit] at =20
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav=20=
a:39)
[junit] at =20
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor=20=
Impl.java:25)
BUILD FAILED
file:/Users/jstrachan/cvs/spring/build.xml:479: Test =20
org.springframework.aop.framework.autoproxy.AdvisorAutoProxyCreatorTests=20=
failed
Total time: 53 seconds
James
-------
http://radio.weblogs.com/0112098/
|