[aspectwerkz-dev] [jira] Deleted: (AW-64) offline mode for caller side fails due to BCEL repository issue

"[email protected] (JIRA)" <jira-yCVjj/[email protected]> Fri, 3 Aug 2007 07:08:27 +1000 (EST)
Newsgroups gmane.comp.java.aspectwerkz.devel
Message-ID <[email protected]>
     [ http://jira.codehaus.org/browse/AW-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

[email protected] deleted AW-64:
--------------------------------


> offline mode for caller side fails due to BCEL repository issue
> ---------------------------------------------------------------
>
>                 Key: AW-64
>                 URL: http://jira.codehaus.org/browse/AW-64
>             Project: AspectWerkz
>          Issue Type: Bug
>            Reporter: Alexandre Vasseur
>            Assignee: Alexandre Vasseur
>            Priority: Blocker
>
> Bug described by Erik Jogi on aw-users list (31/07/2003)
> I have this class:
> package a;
> public class Call {
>   private static void test() {
>     System.out.println("test");
>   }
>   public static void main(String[] args) {
>     test();
>   }
> }
> and this advice:
> import org.codehaus.aspectwerkz.advice.PreAdvice;
> import org.codehaus.aspectwerkz.joinpoint.JoinPoint;
> public class CallerSideAdvice extends PreAdvice {
>   public void execute(JoinPoint joinPoint) throws Throwable {
>     System.out.println("CallerSideAdvice");
>   }
> }
> and this aspectwerkz.xml
> <?xml version="1.0"?>
> <aspectwerkz>
>   <advice-def name="advice" advice="CallerSideAdvice" deployment-model="perJVM"/>
>   <aspect name="aspect">
>     <pointcut-def name="pointcut" type="callerSide" pattern="a.Call->* a.Call.*(..)"/>
>     <advice pointcut="pointcut">
>       <advice-ref name="advice"/>
>     </advice>
>   </aspect>
> </aspectwerkz>
> After compiling I have this dir tree:
> c:\work\aspecttest\classes>dir /s
> Volume in drive C has no label.
> Volume Serial Number is 7039-9800
> Directory of c:\work\aspecttest\classes
> 31.07.2003  18:17    <DIR>          .
> 31.07.2003  18:17    <DIR>          ..
> 31.07.2003  18:17    <DIR>          a
> 31.07.2003  17:47               346 aspectwerkz.xml
> 31.07.2003  18:17               754 CallerSideAdvice.class
>                2 File(s)          1 100 bytes
> Directory of c:\work\aspecttest\classes\a
> 31.07.2003  18:17    <DIR>          .
> 31.07.2003  18:17    <DIR>          ..
> 31.07.2003  18:17               640 Call.class
>                1 File(s)            640 bytes
>      Total Files Listed:
>                3 File(s)          1 740 bytes
> and I still get this error:
> c:\work\aspecttest\classes>aspectwerkz -offline . aspectwerkz.xml
> Reading configuration...
> Transforming classes...
> Transforming directory .
> Transforming class file .\CallerSideAdvice.class
> Transforming directory .\a
> Transforming class file .\a\Call.class
> Offline transformation not successfully finished.
> java.lang.reflect.InvocationTargetException
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at org.cs3.jmangler.offline.starter.Main.start(Main.java:115)
>         at org.cs3.jmangler.offline.starter.Main.main(Main.java:77)
> Caused by: java.lang.ClassNotFoundException: Exception while looking for class a.Call: java.io.IOException: Couldn't find: a.Call.class
>         at org.codehaus.aspectwerkz.transform.AdviseCallerSideMethodTransformer.transformCode(AdviseCallerSideMethodTransformer.java:179)
>         at org.cs3.jmangler.bceltransformer.IterativeTransformationAlgorithm.transform(IterativeTransformationAlgorithm.java:217)
>         at org.cs3.jmangler.offline.OfflineTransformer.transformDirectory(OfflineTransformer.java:107)
>         at org.cs3.jmangler.offline.OfflineTransformer.transformDirectory(OfflineTransformer.java:122)
>         at org.cs3.jmangler.offline.OfflineTransformer.transformClasses(OfflineTransformer.java:81)
>         at org.cs3.jmangler.offline.OfflineTransformer.run(OfflineTransformer.java:61)
>         ... 6 more
> Caused by: java.lang.ClassNotFoundException: Exception while looking for class a.Call: java.io.IOException: Couldn't find: a.Call.class
>         at org.apache.bcel.util.SyntheticRepository.loadClass(SyntheticRepository.java:150)
>         at org.codehaus.aspectwerkz.transform.AdviseCallerSideMethodTransformer.transformCode(AdviseCallerSideMethodTransformer.java:175)
>         ... 11 more

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email