|
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... |