[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [aspectj-users] Corbetura + LTW
- From: Andy Clement <andrew.clement@xxxxxxxxx>
- Date: Thu, 17 May 2012 10:45:13 -0700
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=xh+VlvzvoWc8gT2F1rHvpeKsrJ3iEFRZPeQ7VF53b/8=; b=WvTL13pvtWG2wsDlLSkY03L8noNI79IoYkcHhn4sJRhGUDPAhltIs3+8jkdygyUIoj OK5m3XWupzo1WNkuRmIPWnK4N7yqoI4Wg9W7M0vT58bCMx7xCAABs4xjtEno0cknuICp VEwE5tv41qZC76pHhmeLtFAHF7a3+0OIZvHX3TlxOSKZEQqbN1tCuJggQTaewmu0Z6R2 aRnocei0cyPDXNLFjmD4PN2iACqJbNdo8nXm+nht0a9SK2X4hDNoVwpnXq4hU1z/KRFX H1iaCQVt4awnAoTahWFyDb7vxcCmjb120hPn6kZjbz20SfMDhQH6dxvfHHqNiKfIaXXN tQ2A==
Sorry I didn't reply sooner - at a conference right now.
Yes, we can work with cobertura but you have to be careful on ordering
when running it and AJ together. There is at least one open bug in
On 16 May 2012 08:09, Steve Ash <stevemash@xxxxxxxxx> wrote:
> Just for anyone that runs across this in the googles-- this was just
> me being stupid. I had not cleaned the workspace and the class files
> that corbetura was instrumenting were already woven at compile time.
> So compile time ajc -> corbetura instrumentation -> LTW caused this
> blow up. You can see the ajc stuff already in the class file that I
> attached to my previous message.
> Once I cleaned and re-ran letting javac build the original class files
> then having corbetura instrument those and do LTW on the corbetura
> classes --- everything worked fine.
> So to answer my original question -- it appears that with corbetura
> 2.5.1 and AspectJ Weaver 1.7.0.M1 -- LTW can weave into corbetura
> instrumented classes.
> On Tue, May 15, 2012 at 11:45 AM, Steve Ash <stevemash@xxxxxxxxx> wrote:
>> I have run across a number of things on google so I know that this has
>> come up in the past, but I couldn't get a clear answer. So sorry for
>> the re-post.
>> I am trying to use corbetura + aspectJ LTW and the weaver is blowing
>> up on the corbetura instrumented classes. I am trying to dig in to
>> the class file to see if I can spot the exact problem, but wanted to
>> post and see if the expectation was that this would work or not. I am
>> using the 1.7.0.M1 weaver and this is the stack trace:
>> SEVERE: com/argodata/empi/database/util/InsertIfMissingEntityLoader
>> org.aspectj.apache.bcel.classfile.ClassFormatException: File:
>> 'com.argodata.empi.database.util.InsertIfMissingEntityLoader': Invalid
>> byte tag in constant pool: 0
>> at org.aspectj.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:192)
>> at org.aspectj.apache.bcel.classfile.ClassParser.parse(ClassParser.java:131)
>> at org.aspectj.weaver.bcel.Utility.makeJavaClass(Utility.java:467)
>> at org.aspectj.weaver.bcel.BcelWeaver.processReweavableStateIfPresent(BcelWeaver.java:1387)
>> at org.aspectj.weaver.bcel.BcelWeaver.weave(BcelWeaver.java:1097)
>> at org.aspectj.weaver.tools.WeavingAdaptor.getWovenBytes(WeavingAdaptor.java:472)
>> at org.aspectj.weaver.tools.WeavingAdaptor.weaveClass(WeavingAdaptor.java:323)
>> at org.aspectj.weaver.loadtime.Aj.preProcess(Aj.java:99)
>> at org.aspectj.weaver.loadtime.ClassPreProcessorAgentAdapter.transform(ClassPreProcessorAgentAdapter.java:54)
>> I have a few spring-aspects @Transactional annotations in there
>> weaving the before, after, and throwing advice for
>> I have attached the cobetura instrumented class file to this message
>> if that helps at all.
>> But I guess the main question is: should this work? Or is this a
>> known limitation?
> aspectj-users mailing list