Community
Participate
Working Groups
When I try to weave a jar file in a tool, I got the following error: Type 'xx.x.x.xx.' (no debug info available) advised by before advice from 'xxxxx' (xxxx.java:4) I've search the bugzillar database, but didn't find something simallar. if source codes are compiled without debug information, does AJC work correctly?
AspectJ works perfectly without line number information (or local variable information) - it is just that any weaving info messages we put out can't have accurate line number info in.
(In reply to comment #1) > AspectJ works perfectly without line number information (or local variable > information) - it is just that any weaving info messages we put out can't have > accurate line number info in. So, you mean the jar file has been weaved successfully ?
Yep - the jar will be woven correctly.
Thank you very much. I have another question, how about the eclipse plugin environment ? is there anything differently ? I add the aspectjrt.jar to plugin.xml. But when I run the plugin, it says: .... [java.lang.NoClassDefFoundError] - org/aspectj/lang/NoAspectBoundException.]. ======================= Class clazz = (Class)AccessController.doPrivileged(loader, acc); if (clazz == null) { if (scl) { ClassLoaderDiagnosticsHelper.failedToLoadClass(this, name); } throw new ClassNotFoundException(name); // HERE }
as discussed on sametime, you need to export aspectjrt.jar as a library on the ProjectProperties>JavaBuildPath page. Or a better alternative might be to depend on the org.aspectj.runtime plugin that exports the library you need.
Are we ok to close this now its resolved? (per our sametime discussion?)
believed resolved - if you have any more problems with the weave info debug messages or the aspectjrt dependency, please reopen.