Bug 375477 - Dozens of "Exception thrown from aspectJ" dialogs
Summary: Dozens of "Exception thrown from aspectJ" dialogs
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: IDE (show other bugs)
Version: 1.7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-27 16:09 EDT by Bruce Edge CLA
Modified: 2013-01-30 22:19 EST (History)
2 users (show)

See Also:


Attachments
error screen shot (43.81 KB, image/png)
2012-03-27 16:09 EDT, Bruce Edge CLA
no flags Details
patch for a class to introduce more diagnostics (26.96 KB, application/octet-stream)
2012-03-29 13:59 EDT, Andrew Clement CLA
no flags Details
aspectJ-error (104.26 KB, image/png)
2013-01-30 22:19 EST, Andrew Rubalcaba CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bruce Edge CLA 2012-03-27 16:09:50 EDT
Created attachment 213256 [details]
error screen shot

Note dark border shadow on screenshot indicating the sheer number of windows.
Have to click "OK" dozens of times to close all.

Details pane contains:

org.aspectj.apache.bcel.classfile.ClassFormatException
at org.aspectj.apache.bcel.classfile.Utility.typeOfSignature(Utility.java:781)
at org.aspectj.apache.bcel.generic.Type.getType(Type.java:184)
at org.aspectj.weaver.bcel.BcelWorld.makeBcelType(BcelWorld.java:337)
at org.aspectj.weaver.bcel.BcelTypeMunger.makeMethodGen(BcelTypeMunger.java:742)
at org.aspectj.weaver.bcel.BcelTypeMunger.mungeNewMethod(BcelTypeMunger.java:888)

This is the STS 2.9.1 release.
Comment 1 Andrew Clement CLA 2012-03-27 17:37:43 EDT
Such a shame that method didn't tell us which class was causing the problem.  Are you able to share your project with me or shall I push out a debug build that will include the information we need?  One of the classes in your build has something 'funny' about it and it is tripping up AspectJ.  Are you by any chance using groovy code anywhere?
Comment 2 Bruce Edge CLA 2012-03-27 18:01:05 EDT
No groovy that I'm aware of. However it's a huge workspace with many projects, although most are spring j2ee based.
Can I email more stack details to you directly when it happens again? I have to keep some details off the web at large.
Apologies for making this harder than it needs to be.
Comment 3 Andrew Clement CLA 2012-03-27 18:50:35 EDT
i'll craft a debug build where we can get some info about the problem class.
Comment 4 Andrew Clement CLA 2012-03-29 13:59:25 EDT
Created attachment 213348 [details]
patch for a class to introduce more diagnostics

This is a patch for the weaver.  To apply it, shutdown eclipse then go into the plugins folder for your eclipse installation.  Find the most recent org.aspectj.weaver plugin.  In there backup aspectjweaver.jar:

cp aspectjweaver.jar aspectjweaver.jar.original

then unzip this patch

jar -xvf bug375477.zip

then apply it

jar -uvf aspectjweaver.jar org

now restart eclipse.

It should produce a diagnostic message like this:

throw new RuntimeException("Problem with makeMethodGen for method "+member.getName()+" in type "+gen.getName()+"  ret="+member.getReturnType(),cfe);

the return type value is likely the funny looking signature we need to investigate.
Comment 5 Bruce Edge CLA 2012-04-05 17:18:22 EDT
Running with patch, have not seen problem since.
Comment 6 Andrew Clement CLA 2012-04-05 19:34:50 EDT
thanks for the feedback.  At least if it happens again we should get a more detailed stacktrace, I might commit this debug patch for now.
Comment 7 Andrew Rubalcaba CLA 2013-01-30 22:18:14 EST
I'm having the exact issue but a bit different. Should try the patch as well?
Comment 8 Andrew Rubalcaba CLA 2013-01-30 22:19:24 EST
Created attachment 226358 [details]
aspectJ-error

error I"m getting