[aop]
AspectWerkz NextGen
[ jonas ] 07:17, Friday, 19 March 2004

Today we released the 0.10 Release Candidate 1 of AspectWerkz. Which forms the foundation for the next generation of AspectWerkz.

AspectWerkz has gone through a lot of changes, the whole core engine has for example been thrown out and replaced by a much more flexible and performant one. The join point model is much more expressive and orthogonal we have also implemented a JIT compiler that is making AspectWerkz much more performant. On top of that we have a new implementation of true runtime weaving, which allows you to redefine your aspect model including adding new pointcuts at runtime.

Read more about it here.

TrackBack

Comments

I was using aspectwerkz 0.9 version, but it did not support pointcut for constructor. So I switched to 0.10(the latest one). And tried to use this for intercepting a constructor of Hibernate persisted object(so the actual object is an instance of CGLIB generated class).
But this caused following error.
Would this be a bug? I think it is desireble to apply AOP for hiberate(or CGLIB proxy) object.

nn
---
[exec] java.lang.ExceptionInInitializerError
[exec] at com.ontopsi.calathus.adaptor.weblog.WeblogAdaptorTest.main(Unknown Source)
[exec] Caused by: net.sf.cglib.core.CodeGenerationException: java.lang.NoSuchMethodError-->net.sf.cglib.reflect.FastClass: method ()V not found
[exec] at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:269)
[exec] at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:254)
[exec] at net.sf.cglib.reflect.FastClass$Generator.firstInstance(FastClass.java:104)
[exec] at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:190)
[exec] at net.sf.cglib.reflect.FastClass$Generator.create(FastClass.java:92)
[exec] at net.sf.cglib.reflect.FastClass.create(FastClass.java:74)
[exec] at net.sf.hibernate.persister.AbstractEntityPersister.(AbstractEntityPersister.java:757)
[exec] at net.sf.hibernate.persister.EntityPersister.(EntityPersister.java:715)
[exec] at net.sf.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:41)
[exec] at net.sf.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:137)
[exec] at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:750)
[exec] at com.ontopsi.util.orm.TransactionManager.(Unknown Source)
[exec] ... 1 more
[exec] Caused by: java.lang.NoSuchMethodError: net.sf.cglib.reflect.FastClass: method ()V not found
[exec] at com.ontopsi.calathus.adaptor.weblog.dao.impl.MailogBean$$FastClassByCGLIB$$926aceb6.()
[exec] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[exec] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[exec] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[exec] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[exec] at net.sf.cglib.core.ReflectUtils.newInstance(ReflectUtils.java:262)
[exec] ... 12 more

--nn, April 8, 2004 07:54 AM
Post a comment









Remember personal info?