From e0c8a4875c23cc2443bd309658d8dab3e1f7d070 Mon Sep 17 00:00:00 2001 From: wisberg Date: Wed, 1 Oct 2003 05:17:20 +0000 Subject: [PATCH] updated NoAspectBoundException entry --- docs/faq/faq.xml | 58 ++++++++++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 21 deletions(-) diff --git a/docs/faq/faq.xml b/docs/faq/faq.xml index 8c70d5dfb..e9b7d32da 100644 --- a/docs/faq/faq.xml +++ b/docs/faq/faq.xml @@ -3067,15 +3067,45 @@ vmparam -Xmx384m + xreflabel="Q:When I run, I get a NoAspectBoundException or a + ClassNotFound message for NoAspectBoundException."> - When I run, I get a ClassNotFound message for NoAspectBoundException. + When I run, I get a NoAspectBoundException or a + ClassNotFound message for NoAspectBoundException. - This is what happens when aspectjrt.jar classes - are not on the runtime classpath. Add the jar to the classpath and - try again. + This happens when an aspect is not associated with an object + that is being advised. We have seen this happen two ways: + + + You get a ClassNotFound message for + NoAspectBoundException when loading a + class affected by aspects if aspectjrt.jar + classes are not on the runtime classpath. + To fix this, put the classes on the classpath. + + + + + You can get a NoAspectBoundException when + there is a cycle in aspect initialization or static + initialization, most commonly when an aspect advises + its own initializer. To fix this, first find the class that + fails to load by running java in debug mode or looking + at the NoAspectBoundException trace, + and then fix the offending (probably unintended) dependency. + Most often, it comes from a pointcut like + staticinitialization(com.company..*) + or within(com.company..*), which + can include any aspects in the same subpackages. + You can avoid advising most join points associated with + the aspect TheAspect + by adding && !within(TheAspect) + to your pointcut. + + + @@ -4139,23 +4169,9 @@ vmparam -Xmx384m - This revision had still - more 1.1-driven changes and updated some process and build questions. - Entries changed since the earlier June, 2003 version: + Entries changed since the earlier September, 2003 version: - - - - - - - - - - - - - + -- 2.39.5