|
From: <jue...@we...> - 2004-05-25 09:41:02
|
Have you got old spring jars in your class path? That sort of error can =
just happen when you've built against classes that are not the same =
during runtime.
=20
DO_NOT_PROXY and co in AbstractAutoProxyCreator have changed from =
"protected final" to "protected static final" (an oversight that's been =
corrected). But as long as everything is built against the current =
version, that shouldn't matter.
=20
That just made me aware that we actually require rebuilding your apps =
against new Spring jars. That's not a big problem, I guess, but it means =
that new Spring jars are in general not a drop-in replacement for =
runtime environments.
=20
In other words, current Spring releases are source compatible but not =
necessarily binary compatible. So to be on the safe side, rebuild your =
app against the Spring jars that you intend to use, and everything =
should work.
=20
Juergen
=20
________________________________
Von: spr...@li... im Auftrag =
von Bronwen Cassidy
Gesendet: Di 25.05.2004 11:07
An: spr...@li...
Betreff: [Springframework-developer] re: =
java.lang.IncompatibleClassChangeError
Hi Just tried the CVS version for spring (pre 1.0.2) I have been using =
1.0.1, when running my AOP tests I get the following stack trace, the =
same happens in weblogic:
=20
java.lang.IncompatibleClassChangeError
at =
org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreat=
or.getInterceptorsAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java=
:66)
at =
org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.post=
ProcessAfterInitialization(AbstractAutoProxyCreator.java:209)
at =
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact=
ory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBea=
nFactory.java:150)
at =
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact=
ory.createBean(AbstractAutowireCapableBeanFactory.java:234)
at =
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFact=
ory.createBean(AbstractAutowireCapableBeanFactory.java:172)
at =
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abs=
tractBeanFactory.java:159)
at =
org.springframework.beans.factory.support.DefaultListableBeanFactory.preI=
nstantiateSingletons(DefaultListableBeanFactory.java:178)
at =
org.springframework.context.support.AbstractApplicationContext.refresh(Ab=
stractApplicationContext.java:269)
at =
org.springframework.context.support.ClassPathXmlApplicationContext.<init>=
(ClassPathXmlApplicationContext.java:58)
=20
this is when upgrading spring.jar and aopalliance.jar. I cannot figure =
out what has gone wrong, if I replace spring.jar with the 1.0.1 version, =
everything runs with no problems, help :-)
=20
This happens in AbstractAdvisorAutoproxyCreator here:
=20
List advices =3D findEligibleAdvisors(bean.getClass());
f (advices.isEmpty()) {
return DO_NOT_PROXY;
}=20
=20
The return DO_NOT_PROXY ends up with the error, the debugger goes no =
further??
=20
Thanx in advance
Bronwen
|