Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » ArrayIndexOutOfBoundsException on around advice (CTW, not LTW)
ArrayIndexOutOfBoundsException on around advice (CTW, not LTW) [message #599202] Thu, 30 October 2008 09:31
Joakim von Brandis is currently offline Joakim von Brandis
Messages: 2
Registered: July 2009
Junior Member
Hi folks!

I have run across a really strange problem using AspectJ:

- a method invocation throws ArrayIndexOutOfBoundsException as it enters
one of the around advices around this method.

java.lang.ArrayIndexOutOfBoundsException: 1
at
no.mnemonic.application.impl.DataServiceImpl.getAllServiceTy pes_aroundBody55$advice(DataServiceImpl.java:54)
at
no.mnemonic.application.impl.DataServiceImpl.getAllServiceTy pes(DataServiceImpl.java:496)
...


The method has absolutely no arrays in neither parameters or return type,
so I guess this is some array used by AspectJ.

However, the problem does only occur under special circumstances, which I
have not fully understood.

1) Only on Linux JDK 1.6 (problem does not occur on Mac JDK 1.6). Have not
cross-checked all java versions though...

2) Only when using compile time weaving (CTW), running without a javaagent.
If i start the application with javaagent:aspectjweaver.jar (I've tried
both with and without performing CTW first), it runs fine.

3) It seems to happen with several versions of AspectJ, the latest I've
tried is 1.6.1

4) It happens for some, but not all of my application. Some libraries,
previously compiled with ajc, work fine, while other parts do not.

Have anybody stumbled across anything similar? Any ideas where to start
looking? (or how to even debug this?)
Previous Topic:ArrayIndexOutOfBoundsException on around advice (CTW, not LTW)
Next Topic:When AsmManager.getDefault().getRelationshipMap().get(p) is null
Goto Forum:
  


Current Time: Sat Aug 23 01:47:21 EDT 2014

Powered by FUDForum. Page generated in 0.02014 seconds