|
From: <jue...@we...> - 2004-06-24 13:00:46
|
I've recently renamed our CGLIB jar to cglib-2.0.2-dev.jar in CVS, to = stop the confusion. I guess the Maven script has not been adapted to = this. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...]On Behalf Of Colin Sampaleanu Sent: Thursday, June 24, 2004 3:01 PM To: spr...@li... Subject: Re: [Springframework-developer] do unit tests fail in CVS HEAD for others? jas...@ma... wrote: > > On 24 Jun 2004, at 11:52, jas...@ma... wrote: > >> >> On 24 Jun 2004, at 11:21, Rod Johnson wrote: >> >>> Both Juergen and I ran all tests OK last night, after I did a >>> big checkin... They should pass at all times! >>> >>> Is there any more specific error information? >> >> >> I'm on the latest greatest OS X if that helps. JVM... >> >> java version "1.4.2_03" >> Java(TM) 2 Runtime Environment, Standard Edition (build = 1.4.2_03-117.1) >> Java HotSpot(TM) Client VM (build 1.4.2-34, mixed mode) >> >> Maven 1.0-RC1 >> >> I ran them via >> >> maven tests >> >> Am just doing a fresh checkout and trying again... Do folks run the=20 >> tests via Maven or Ant? > > > > FWIW here are some of the errors attached > >------------------------------------------------------------------------= > >Testsuite: org.springframework.aop.framework.CglibProxyTests >Tests run: 42, Failures: 2, Errors: 35, Time elapsed: 10.287 sec > >Testcase: testNullConfig took 1.687 sec >Testcase: testNoTarget took 0.153 sec >Testcase: testProxyCanBeClassNotInterface took 1.485 sec > Caused an ERROR >null >java.lang.IllegalStateException: Callback = Lnet/sf/cglib/proxy/MethodInterceptor; is not assignable to = Lnet/sf/cglib/proxy/MethodInterceptor; > at net.sf.cglib.proxy.Enhancer.validate(Enhancer.java:374) > at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:399) > at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:318) > at = org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.= java:170) > at = org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.= java:135) > at = org.springframework.aop.framework.CglibProxyTests.testProxyCanBeClassNotI= nterface(CglibProxyTests.java:94) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > >Testcase: testProxyCanBeClassNotInterfaceTestcase: = testCGLIBProxyingGivesMeaningfulExceptionIfAskedToProxyNonvisibleClass = took 0.041 sec > FAILED >null >junit.framework.AssertionFailedError > at = org.springframework.aop.framework.CglibProxyTests.testCGLIBProxyingGivesM= eaningfulExceptionIfAskedToProxyNonvisibleClass(CglibProxyTests.java:118)= > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java= :39) > at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI= mpl.java:25) > >Testcase: = testCGLIBProxyingGivesMeaningfulExceptionIfAskedToProxyNonvisibleClassTes= tcase:=20 > Ok, I know what this is. The cglib version is not correct. We had to=20 switch to a dev version of cglib to resolve some issues with cglib based = class proxy creation. The maven project file needs an override to use=20 cglib inside the lib dir istead of a stock cglib 2.0.1. I can probably make this change in about half an hour. In the meantime=20 James, you may want to do it locally. Colin ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 -=20 digital self defense, top technical experts, no vendor pitches,=20 unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |