Skip to main content

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 13:31
Joakim von Brandis is currently offline Joakim von BrandisFriend
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
no.mnemonic.application.impl.DataServiceImpl.getAllServiceTy pes_aroundBody55$advice(
no.mnemonic.application.impl.DataServiceImpl.getAllServiceTy pes(

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: Sun May 20 14:17:30 GMT 2018

Powered by FUDForum. Page generated in 0.01946 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top