4 Replies Latest reply on May 24, 2005 7:04 PM by Charles Abreu

    ArrayIndexOutOfBoundsException during field interception

    Holger Engels Newbie

      jboss-aop 1.1.2, jdk 1.4.2_03-b02, standalone, instrumentation on classloading

      the xml:

      <aspect class="wilken.lib.log.aop.Trace" scope="PER_VM"/>
      
       <bind pointcut="execution(* wilken.cst.gui.*->*(..))">
       <advice name="trace" aspect="wilken.lib.log.aop.Trace"/>
       </bind>
      
       <bind pointcut="field(* wilken.cst.gui.*->*)">
       <advice name="trace" aspect="wilken.lib.log.aop.Trace"/>
       </bind>


      the exceptions are looking like this:

      java.lang.ArrayIndexOutOfBoundsException: 12
       at wilken.cst.gui.basics.kernel.KernelAbstract.state_r_$aop(KernelAbstract.java)
       at wilken.cst.gui.basics.kernel.KernelAbstract.wilken$cst$gui$basics$kernel$KernelAbstract$initialize$aop(KernelAbstract.java:202)

      and:
      java.lang.ArrayIndexOutOfBoundsException: 11
       at wilken.cst.gui.basics.kernel.KernelOptionsDefault.use2Tier_w_$aop(KernelOptionsDefault.java)
       at wilken.cst.gui.basics.kernel.KernelOptionsDefault.<init>(KernelOptionsDefault.java:121)


      not all field interceptions fail. only some read accesses and some write accesses. the array index differs from field to field. method interception is working perfectly.

      any ideas, what am I doing wrong?

      Regards,

      Holger