|
From: Guido S. <Gui...@tr...> - 2006-08-11 14:40:09
|
Sorry, forgot something in my mail before ... >>This is a message coming out of AspectJ itself and almost certainly =20 >>an AspectJ bug (we upgraded Spring to the AspectJ 1.5.2 libraries =20 >>during the Spring rc3 development cycle). Yeah, I figured that out, because some other tests with Spring AOP and = @AspectJ, which didn't work with rc2, do now work :-) Could you please change the spring-framework-2.0-rc3\lib\readme.txt, it = still shows 1.5.1a * aspectj/aspectjweaver.jar, aspectj/aspectjrt.jar, = aspectj/aspectjtools.jar - AspectJ 1.5.1a (http://www.aspectj.org) Thanks Guido -----Urspr=FCngliche Nachricht----- Von: spr...@li... im Auftrag = von Adrian Colyer Gesendet: Fr 11.08.2006 15:49 An: spr...@li... Betreff: Re: [Springframework-developer] Problem with @Configurable and = LTWwith latest 2.0rc3 =20 This is a message coming out of AspectJ itself and almost certainly =20 an AspectJ bug (we upgraded Spring to the AspectJ 1.5.2 libraries =20 during the Spring rc3 development cycle). Please can you file a report against the AspectJ project: https://=20 bugs.eclipse.org/bugs/enter_bug.cgi?product=3DAspectJ. If you could also include in the report the full stack trace as =20 produced by the weaver, and attach the project to reproduce the error =20 that would be a big help. Depending on exactly what the error is, I =20 may be able to tell you some compiler options to set to workaround =20 the issue. Regards, Adrian. On 11 Aug 2006, at 13:19, Guido Schmutz wrote: > Hi > > I'm currently testing @Configurable and LTW. Everything worked/=20 > works fine with the 2.0rc2 distribution. This morning I then tried =20 > to use rc2 togehter with AspectJ 1.5.2 and had problems. > Then after seeing that 2.0rc3 has been released, i switched to the =20 > 2.0rc3 distribution with the dependencies from there and I'm =20 > getting the same problems. > > With RC3, the domain object doesn't get configured and the error I =20 > get on the console is the following (only parts of it): > > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > 2110 [main] FATAL AspectJ Weaver - [AspectJ] trouble in: > public class com.trivadis.aop.configurable.Address extends =20 > java.lang.Object: > private transient com.trivadis.aop.configurable.CodeRepository =20 > codeRepository > private long id > private String street > private String city > private com.trivadis.aop.configurable.Country country > public void setCodeRepository=20 > (com.trivadis.aop.configurable.CodeRepository): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 15) > ALOAD_1 // Lcom/trivadis/aop/configurable/=20 > CodeRepository; codeRepository > PUTFIELD =20 > com.trivadis.aop.configurable.Address.codeRepository Lcom/trivadis/=20 > aop/configurable/CodeRepository; > RETURN (line 16) > end public void setCodeRepository=20 > (com.trivadis.aop.configurable.CodeRepository) > > public String getCity(): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 28) > GETFIELD =20 > com.trivadis.aop.configurable.Address.city Ljava/lang/String; > ARETURN > end public String getCity() > > public void setCity(String): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 32) > ALOAD_1 // Ljava/lang/String; city > PUTFIELD =20 > com.trivadis.aop.configurable.Address.city Ljava/lang/String; > RETURN (line 33) > end public void setCity(String) > > public com.trivadis.aop.configurable.Country getCountry(): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 36) > GETFIELD =20 > com.trivadis.aop.configurable.Address.country Lcom/trivadis/aop/=20 > configurable/Country; > ARETURN > end public com.trivadis.aop.configurable.Country getCountry() > > public void setCountry(com.trivadis.aop.configurable.Country): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 40) > ALOAD_1 // Lcom/trivadis/aop/configurable/=20 > Country; country > PUTFIELD =20 > com.trivadis.aop.configurable.Address.country Lcom/trivadis/aop/=20 > configurable/Country; > RETURN (line 41) > end public void setCountry(com.trivadis.aop.configurable.Country) > > public String getStreet(): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 44) > GETFIELD =20 > com.trivadis.aop.configurable.Address.street Ljava/lang/String; > ARETURN > end public String getStreet() > > public void setStreet(String): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 48) > ALOAD_1 // Ljava/lang/String; street > PUTFIELD =20 > com.trivadis.aop.configurable.Address.street Ljava/lang/String; > RETURN (line 49) > end public void setStreet(String) > > private void <init>(): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 53) > INVOKESPECIAL java.lang.Object.<init> ()V > RETURN > end private void <init>() > > public static com.trivadis.aop.configurable.Address createAddress=20 > (String, String): > NEW com.trivadis.aop.configurable.Address =20 > (line 58) > DUP > INVOKESPECIAL =20 > com.trivadis.aop.configurable.Address.<init> ()V > ASTORE_2 > ALOAD_2 // Lcom/trivadis/aop/configurable/=20 > Address; adr (line 59) > ALOAD_0 // Ljava/lang/String; street > INVOKEVIRTUAL =20 > com.trivadis.aop.configurable.Address.setStreet (Ljava/lang/String;)V > ALOAD_2 // Lcom/trivadis/aop/configurable/=20 > Address; adr (line 60) > ALOAD_1 // Ljava/lang/String; city > INVOKEVIRTUAL =20 > com.trivadis.aop.configurable.Address.setCity (Ljava/lang/String;)V > ALOAD_2 // Lcom/trivadis/aop/configurable/=20 > Address; adr (line 61) > ARETURN > end public static com.trivadis.aop.configurable.Address =20 > createAddress(String, String) > > public com.trivadis.aop.configurable.Address withStreet(String): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 67) > ALOAD_1 // Ljava/lang/String; street > INVOKEVIRTUAL =20 > com.trivadis.aop.configurable.Address.setStreet (Ljava/lang/String;)V > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 68) > ARETURN > end public com.trivadis.aop.configurable.Address withStreet(String) > > public com.trivadis.aop.configurable.Address withCity(String): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 72) > ALOAD_1 // Ljava/lang/String; city > INVOKEVIRTUAL =20 > com.trivadis.aop.configurable.Address.setCity (Ljava/lang/String;)V > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 73) > ARETURN > end public com.trivadis.aop.configurable.Address withCity(String) > > public com.trivadis.aop.configurable.Address forCountry(String): > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 77) > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this > GETFIELD =20 > com.trivadis.aop.configurable.Address.codeRepository Lcom/trivadis/=20 > aop/configurable/CodeRepository; > ALOAD_1 // Ljava/lang/String; code > INVOKEINTERFACE =20 > com.trivadis.aop.configurable.CodeRepository.findCountryByCode =20 > (Ljava/lang/String;)Lcom/trivadis/aop/configurable/Country; > INVOKEVIRTUAL =20 > com.trivadis.aop.configurable.Address.setCountry (Lcom/trivadis/aop/=20 > configurable/Country;)V > ALOAD_0 // Lcom/trivadis/aop/configurable/=20 > Address; this (line 78) > ARETURN > end public com.trivadis.aop.configurable.Address forCountry(String) > > end public class com.trivadis.aop.configurable.Address > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > > If I switch to compile time weaving, then everything works fine. > > Do you have any idea what might be wrong. Am I doing something =20 > wrong. Just let me know, if you need the test case, I have a small =20 > project with only a few classes. > > Thanks for your help > > Guido > <winmail.dat> > ---------------------------------------------------------------------- = > --- > Using Tomcat but need to do more? Need to support web services, =20 > security? > Get stuff done quickly with pre-integrated technology to make your =20 > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache =20 > Geronimo > http://sel.as-us.falkag.net/sel?=20 > = cmd=3Dlnk&kid=3D120709&bid=3D263057&dat=3D121642_________________________= _____=20 > _________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer -- Adrian adr...@in... |