|
From: <And...@ub...> - 2006-08-03 16:11:18
|
Visit our website at http://www.ubs.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments. |
|
From: Dmitry S. <ds...@ch...> - 2006-08-03 16:25:19
|
Check out spring doc, specifically. 3.4.3.5. Scoped beans as dependencies >From what I understand: You will only need to use <aop:scoped-proxy/> if you need to inject the scoped bean into some other bean. Spring treats scoped beans like a subtype of "prototype" so without a proxy it has no knowledge of scoped beans after they are created and "scoped" Dmitry Quoting And...@ub...: > Hi, > > I've been looking over the new scoped bean functionality, and it looks > really good. However, I'm a bit puzzled about the need to have the > <aop:scoped-proxy/> as part of the definition. I understand why I proxy > is needed, I'm just not sure why a user has to specify one. Simply put, > if the scope is "session" or "request" (or custom for that matter), > should these beans not automatically be using a scoped proxy without > having to explicitly say so? > >From the Spring docs it shows we need to do this: > <bean id="userPreferences" class="com.foo.UserPreferences" > scope="session"> > <aop:scoped-proxy/> > </bean> > > Put another way, is there any case when you would not want to proxy > these beans? Or, in general use, if most people do use a proxy, but > there is a rare chance that someone wants to use a non-proxied bean, > then can a parameter be set up accordingly? > eg: > <bean id="userPreferences" class="com.foo.UserPreferences" > scope="session"> > <aop:no-proxy/> > </bean> > Or > <bean id="userPreferences" class="com.foo.UserPreferences" > scope="session" proxied="false" /> > > Regards, > > Gus. > > Thanks Dmitry |
|
From: Guido S. <Gui...@tr...> - 2006-08-11 12:19:41
|
Hi
I'm currently testing @Configurable and LTW. Everything worked/works =
fine with the 2.0rc2 distribution. This morning I then tried 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 =
2.0rc3 distribution with the dependencies from there and I'm getting the =
same problems.
With RC3, the domain object doesn't get configured and the error I 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=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:=20
public class com.trivadis.aop.configurable.Address extends =
java.lang.Object:
private transient com.trivadis.aop.configurable.CodeRepository =
codeRepository
private long id
private String street
private String city
private com.trivadis.aop.configurable.Country country
public void =
setCodeRepository(com.trivadis.aop.configurable.CodeRepository):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 15)
ALOAD_1 // =
Lcom/trivadis/aop/configurable/CodeRepository; codeRepository
PUTFIELD =
com.trivadis.aop.configurable.Address.codeRepository =
Lcom/trivadis/aop/configurable/CodeRepository;
RETURN (line 16)
end public void =
setCodeRepository(com.trivadis.aop.configurable.CodeRepository)
public String getCity():
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 28)
GETFIELD com.trivadis.aop.configurable.Address.city =
Ljava/lang/String;
ARETURN
end public String getCity()
public void setCity(String):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 32)
ALOAD_1 // Ljava/lang/String; city
PUTFIELD 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/Address; this (line 36)
GETFIELD =
com.trivadis.aop.configurable.Address.country =
Lcom/trivadis/aop/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/Address; this (line 40)
ALOAD_1 // =
Lcom/trivadis/aop/configurable/Country; country
PUTFIELD =
com.trivadis.aop.configurable.Address.country =
Lcom/trivadis/aop/configurable/Country;
RETURN (line 41)
end public void setCountry(com.trivadis.aop.configurable.Country)
public String getStreet():
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 44)
GETFIELD =
com.trivadis.aop.configurable.Address.street Ljava/lang/String;
ARETURN
end public String getStreet()
public void setStreet(String):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 48)
ALOAD_1 // Ljava/lang/String; street
PUTFIELD =
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/Address; this (line 53)
INVOKESPECIAL java.lang.Object.<init> ()V
RETURN
end private void <init>()
public static com.trivadis.aop.configurable.Address =
createAddress(String, String):
NEW com.trivadis.aop.configurable.Address (line =
58)
DUP
INVOKESPECIAL =
com.trivadis.aop.configurable.Address.<init> ()V
ASTORE_2
ALOAD_2 // =
Lcom/trivadis/aop/configurable/Address; adr (line 59)
ALOAD_0 // Ljava/lang/String; street
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setStreet (Ljava/lang/String;)V
ALOAD_2 // =
Lcom/trivadis/aop/configurable/Address; adr (line 60)
ALOAD_1 // Ljava/lang/String; city
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setCity (Ljava/lang/String;)V
ALOAD_2 // =
Lcom/trivadis/aop/configurable/Address; adr (line 61)
ARETURN
end public static com.trivadis.aop.configurable.Address =
createAddress(String, String)
public com.trivadis.aop.configurable.Address withStreet(String):
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this (line 67)
ALOAD_1 // Ljava/lang/String; street
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setStreet (Ljava/lang/String;)V
ALOAD_0 // =
Lcom/trivadis/aop/configurable/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/Address; this (line 72)
ALOAD_1 // Ljava/lang/String; city
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setCity (Ljava/lang/String;)V
ALOAD_0 // =
Lcom/trivadis/aop/configurable/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/Address; this (line 77)
ALOAD_0 // =
Lcom/trivadis/aop/configurable/Address; this
GETFIELD =
com.trivadis.aop.configurable.Address.codeRepository =
Lcom/trivadis/aop/configurable/CodeRepository;
ALOAD_1 // Ljava/lang/String; code
INVOKEINTERFACE =
com.trivadis.aop.configurable.CodeRepository.findCountryByCode =
(Ljava/lang/String;)Lcom/trivadis/aop/configurable/Country;
INVOKEVIRTUAL =
com.trivadis.aop.configurable.Address.setCountry =
(Lcom/trivadis/aop/configurable/Country;)V
ALOAD_0 // =
Lcom/trivadis/aop/configurable/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=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 wrong. =
Just let me know, if you need the test case, I have a small project with =
only a few classes.
Thanks for your help
Guido
|
|
From: Adrian C. <adr...@in...> - 2006-08-11 13:49:38
|
This is a message coming out of AspectJ itself and almost certainly an AspectJ bug (we upgraded Spring to the AspectJ 1.5.2 libraries during the Spring rc3 development cycle). Please can you file a report against the AspectJ project: https:// bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ. If you could also include in the report the full stack trace as produced by the weaver, and attach the project to reproduce the error that would be a big help. Depending on exactly what the error is, I may be able to tell you some compiler options to set to workaround the issue. Regards, Adrian. On 11 Aug 2006, at 13:19, Guido Schmutz wrote: > Hi > > I'm currently testing @Configurable and LTW. Everything worked/ > works fine with the 2.0rc2 distribution. This morning I then tried > 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 > 2.0rc3 distribution with the dependencies from there and I'm > getting the same problems. > > With RC3, the domain object doesn't get configured and the error I > get on the console is the following (only parts of it): > > ====================================================================== > =========================================================== > 2110 [main] FATAL AspectJ Weaver - [AspectJ] trouble in: > public class com.trivadis.aop.configurable.Address extends > java.lang.Object: > private transient com.trivadis.aop.configurable.CodeRepository > codeRepository > private long id > private String street > private String city > private com.trivadis.aop.configurable.Country country > public void setCodeRepository > (com.trivadis.aop.configurable.CodeRepository): > ALOAD_0 // Lcom/trivadis/aop/configurable/ > Address; this (line 15) > ALOAD_1 // Lcom/trivadis/aop/configurable/ > CodeRepository; codeRepository > PUTFIELD > com.trivadis.aop.configurable.Address.codeRepository Lcom/trivadis/ > aop/configurable/CodeRepository; > RETURN (line 16) > end public void setCodeRepository > (com.trivadis.aop.configurable.CodeRepository) > > public String getCity(): > ALOAD_0 // Lcom/trivadis/aop/configurable/ > Address; this (line 28) > GETFIELD > com.trivadis.aop.configurable.Address.city Ljava/lang/String; > ARETURN > end public String getCity() > > public void setCity(String): > ALOAD_0 // Lcom/trivadis/aop/configurable/ > Address; this (line 32) > ALOAD_1 // Ljava/lang/String; city > PUTFIELD > 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/ > Address; this (line 36) > GETFIELD > com.trivadis.aop.configurable.Address.country Lcom/trivadis/aop/ > 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/ > Address; this (line 40) > ALOAD_1 // Lcom/trivadis/aop/configurable/ > Country; country > PUTFIELD > com.trivadis.aop.configurable.Address.country Lcom/trivadis/aop/ > configurable/Country; > RETURN (line 41) > end public void setCountry(com.trivadis.aop.configurable.Country) > > public String getStreet(): > ALOAD_0 // Lcom/trivadis/aop/configurable/ > Address; this (line 44) > GETFIELD > com.trivadis.aop.configurable.Address.street Ljava/lang/String; > ARETURN > end public String getStreet() > > public void setStreet(String): > ALOAD_0 // Lcom/trivadis/aop/configurable/ > Address; this (line 48) > ALOAD_1 // Ljava/lang/String; street > PUTFIELD > 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/ > Address; this (line 53) > INVOKESPECIAL java.lang.Object.<init> ()V > RETURN > end private void <init>() > > public static com.trivadis.aop.configurable.Address createAddress > (String, String): > NEW com.trivadis.aop.configurable.Address > (line 58) > DUP > INVOKESPECIAL > com.trivadis.aop.configurable.Address.<init> ()V > ASTORE_2 > ALOAD_2 // Lcom/trivadis/aop/configurable/ > Address; adr (line 59) > ALOAD_0 // Ljava/lang/String; street > INVOKEVIRTUAL > com.trivadis.aop.configurable.Address.setStreet (Ljava/lang/String;)V > ALOAD_2 // Lcom/trivadis/aop/configurable/ > Address; adr (line 60) > ALOAD_1 // Ljava/lang/String; city > INVOKEVIRTUAL > com.trivadis.aop.configurable.Address.setCity (Ljava/lang/String;)V > ALOAD_2 // Lcom/trivadis/aop/configurable/ > Address; adr (line 61) > ARETURN > end public static com.trivadis.aop.configurable.Address > createAddress(String, String) > > public com.trivadis.aop.configurable.Address withStreet(String): > ALOAD_0 // Lcom/trivadis/aop/configurable/ > Address; this (line 67) > ALOAD_1 // Ljava/lang/String; street > INVOKEVIRTUAL > com.trivadis.aop.configurable.Address.setStreet (Ljava/lang/String;)V > ALOAD_0 // Lcom/trivadis/aop/configurable/ > 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/ > Address; this (line 72) > ALOAD_1 // Ljava/lang/String; city > INVOKEVIRTUAL > com.trivadis.aop.configurable.Address.setCity (Ljava/lang/String;)V > ALOAD_0 // Lcom/trivadis/aop/configurable/ > 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/ > Address; this (line 77) > ALOAD_0 // Lcom/trivadis/aop/configurable/ > Address; this > GETFIELD > com.trivadis.aop.configurable.Address.codeRepository Lcom/trivadis/ > aop/configurable/CodeRepository; > ALOAD_1 // Ljava/lang/String; code > INVOKEINTERFACE > com.trivadis.aop.configurable.CodeRepository.findCountryByCode > (Ljava/lang/String;)Lcom/trivadis/aop/configurable/Country; > INVOKEVIRTUAL > com.trivadis.aop.configurable.Address.setCountry (Lcom/trivadis/aop/ > configurable/Country;)V > ALOAD_0 // Lcom/trivadis/aop/configurable/ > Address; this (line 78) > ARETURN > end public com.trivadis.aop.configurable.Address forCountry(String) > > end public class com.trivadis.aop.configurable.Address > ====================================================================== > =========================================================== > > If I switch to compile time weaving, then everything works fine. > > Do you have any idea what might be wrong. Am I doing something > wrong. Just let me know, if you need the test case, I have a small > 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, > security? > Get stuff done quickly with pre-integrated technology to make your > job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel? > cmd=lnk&kid=120709&bid=263057&dat=121642______________________________ > _________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer -- Adrian adr...@in... |
|
From: Guido S. <Gui...@tr...> - 2006-08-11 14:35:00
|
Hi Adrian thanks for your quick reply. Just filed the bug against the AspectJ = project with the stack trace and a test project to reproduce it. 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... |
|
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... |