awltech / org.parallelj

ParallelJ-Runtime is a part of the ParallelJ project corresponding to the runtime part (obviously). It contains the execution engine, and all runtime related components. More information can be found on our website: http://www.parallelj.org
http://www.parallelj.org
GNU Lesser General Public License v2.1
4 stars 2 forks source link

Fix the "NegativeArraySizeException" when running a Program #77

Closed christophe-w closed 12 years ago

christophe-w commented 12 years ago

When a Program is launched using LTW, a NegativeArraysSizeException is thrown by the wearver:

28 août 2012 10:23:21 org.aspectj.weaver.tools.Jdk14Trace error GRAVE: register definition failed java.lang.NegativeArraySizeException at org.aspectj.weaver.patterns.TypePatternList.read(TypePatternList.java:490) at org.aspectj.weaver.patterns.ThrowsPattern.read(ThrowsPattern.java:120) at org.aspectj.weaver.patterns.SignaturePattern.read(SignaturePattern.java:913) at org.aspectj.weaver.patterns.KindedPointcut.read(KindedPointcut.java:335) at org.aspectj.weaver.patterns.Pointcut.read(Pointcut.java:279) at org.aspectj.weaver.ResolvedPointcutDefinition.read(ResolvedPointcutDefinition.java:59) at org.aspectj.weaver.AjAttribute.read(AjAttribute.java:113) at org.aspectj.weaver.bcel.Utility.readAjAttributes(Utility.java:101) at org.aspectj.weaver.bcel.BcelMethod.unpackAjAttributes(BcelMethod.java:200) at org.aspectj.weaver.bcel.BcelMethod.(BcelMethod.java:92) at org.aspectj.weaver.bcel.BcelObjectType.getDeclaredMethods(BcelObjectType.java:291) at org.aspectj.weaver.ReferenceType.getDeclaredMethods(ReferenceType.java:784) at org.aspectj.weaver.ResolvedType.getDeclaredAdvice(ResolvedType.java:953) at org.aspectj.weaver.ResolvedType.getDeclaredShadowMungers(ResolvedType.java:993) at org.aspectj.weaver.ResolvedType.collectShadowMungers(ResolvedType.java:828) at org.aspectj.weaver.ResolvedType.collectCrosscuttingMembers(ResolvedType.java:755) at org.aspectj.weaver.CrosscuttingMembersSet.addOrReplaceAspect(CrosscuttingMembersSet.java:85) at org.aspectj.weaver.CrosscuttingMembersSet.addOrReplaceAspect(CrosscuttingMembersSet.java:69) at org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeaver.java:202) at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerAspects(ClassLoaderWeavingAdaptor.java:470) at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerDefinitions(ClassLoaderWeavingAdaptor.java:295) at org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.initialize(ClassLoaderWeavingAdaptor.java:181) at org.aspectj.weaver.loadtime.Aj$ExplicitlyInitializedClassLoaderWeavingAdaptor.initialize(Aj.java:277)

christophe-w commented 12 years ago

For this Exception to not happen, the aspectj-maven-plugin must be upgrade to version 1.4 Note that this plugin uses aspectj 1.6.11

christophe-w commented 12 years ago

Using apspectj-maven-plugin to 1.4, ParallelJ Runtime doesn't compile. Same issue with the release 1.3 of the plugin...

christophe-w commented 12 years ago

As parallelj core doesn't compile with aspectj-maven-plugin 1.4/1.3, we keep the 1.2 and force it to use aspectj 1.7.0

chauhanatul commented 12 years ago

i am putting in pom.xml kile this:- 1.6.12</aspectjweaver.version> and aspectj-maven-plugin

1.2
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>

but still same issue facing.

christophe-w commented 12 years ago

The next release of the Runtime will use AspectJ 1.7.0 and aspectj-maven-plugin 1.2. Then, this Exception will disappear..