Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] badWeaverState exception on iajc w/out prior clean

Diane,

What happens if you run ant clean, then ant, then ant again? Does the
problem occur? Are you able to narrow down which jar file(s) cause the
problem and how they get created?

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Nguyen, Diane
Sent: Tuesday, February 21, 2006 1:17 PM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] badWeaverState exception on iajc w/out prior
clean

Thanks for the response!

Unfortunately, I don't think that's what is causing my bad WeaverState
exception. I'm using ajdt 1.3.0 (the latest from the eclipse AJDT site)
and AspectJ 1.5.0 from Dec 20 2005. These are the only aspectJ downloads
I've installed on my computer, and this is the only iajc compilation in
my build.xml file.

Does it matter what was used to compile the jars in my inpath? Just a
stab in the dark...

thanks again!
diane

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Ron Bodkin
Sent: Friday, February 17, 2006 4:57 PM
To: aspectj-users@xxxxxxxxxxx
Subject: RE: [aspectj-users] badWeaverState exception on iajc w/out
prior clean

Hi Diane,

One likely reason for the problem is that you somehow have an older
version of AspectJ that is doing some of the building. E.g., are you
perhaps using a version of AJDT from before 1.5.0 final to build these
same classes? AspectJ 1.5.0 would choke on the output of development
releases of AJDT from before AspectJ 1.5.0 final (AJDT 1.3.0 final).

-----Original Message-----
From: aspectj-users-bounces@xxxxxxxxxxx
[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Nguyen, Diane
Sent: Friday, February 17, 2006 4:40 PM
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] badWeaverState exception on iajc w/out prior
clean

Hello,

I am trying to compile junit tests and aspects in my application and
keep running into a "bad WeaverState.Kind: -115" error when I recompile
without cleaning all my source first. As rebuilding is obviously a bear
to have to do each time I make a tweak, I'd love to learn why this
occurs and how I can stop it.

I am using AspectJ 1.5.0, jdk1.5.0_02, ant 1.6.2.

Below are the iajc tag in my build.xml and the error output.

Any help/tips/corrections are greatly appreciated! Thanks!

diane

		<iajc srcdir="${test.src}" 
			destdir="${test.classes}" 
			deprecation="${compile.deprecation}"
			debug="${compile.debug}"
			source="1.5"
			maxmem="640m"
			fork="true">
			<classpath>
				... lots of jars ...
			</classpath>
			<inpath>
				<pathelement location="some.jar"/>
				<pathelement location="another.jar"/>
				<pathelement location="${test.classes}"
/>
			</inpath>

		</iajc>


compile-tests-with-aspects:
     [iajc] ABORT
     [iajc]
     [iajc] Exception thrown from AspectJ 1.5.0

     [iajc] This might be logged as a bug already -- find current bugs
at
     [iajc]
http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ&component
=Compiler

     [iajc] Bugs for exceptions thrown have titles File:line from the
top stack,

     [iajc] e.g., "SomeFile.java:243"

     [iajc] If you don't find the exception below in a bug, please add a
new bug

     [iajc] at
http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
     [iajc] To make the bug a priority, please include a test program
     [iajc] that can reproduce this exception.
     [iajc] bad WeaverState.Kind: -115

     [iajc] when batch building with classpath: <classpath here>
     [iajc] bad WeaverState.Kind: -115
     [iajc] java.lang.RuntimeException: bad WeaverState.Kind: -115
     [iajc]     at
org.aspectj.weaver.WeaverStateInfo.read(WeaverStateInfo.java:
142)
     [iajc]     at
org.aspectj.weaver.AjAttribute.read(AjAttribute.java:98)
     [iajc]     at
org.aspectj.weaver.bcel.BcelAttributes.readAjAttributes(BcelA
ttributes.java:59)
     [iajc]     at
org.aspectj.weaver.bcel.BcelObjectType.unpackAspectAttributes
(BcelObjectType.java:273)
     [iajc]     at
org.aspectj.weaver.bcel.BcelObjectType.<init>(BcelObjectType.
java:134)
     [iajc]     at
org.aspectj.weaver.bcel.BcelWorld.makeBcelObjectType(BcelWorl
d.java:257)
     [iajc]     at
org.aspectj.weaver.bcel.BcelWorld.addSourceObjectType(BcelWor
ld.java:314)
     [iajc]     at
org.aspectj.weaver.bcel.BcelWeaver.addClassFile(BcelWeaver.ja
va:386)
     [iajc]     at
org.aspectj.weaver.bcel.BcelWeaver.addClassFile(BcelWeaver.ja
va:401)
     [iajc]     at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBce
lWorld(AjBuildManager.java:658)
     [iajc]     at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild
(AjBuildManager.java:209)
     [iajc]     at
org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBu
ild(AjBuildManager.java:156)
     [iajc]     at
org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:1
12)
     [iajc]     at
org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:
60)
     [iajc]     at org.aspectj.tools.ajc.Main.run(Main.java:326)
     [iajc]     at org.aspectj.tools.ajc.Main.runMain(Main.java:240)
     [iajc]     at org.aspectj.tools.ajc.Main.main(Main.java:83)


     [iajc] 1 fail|abort

BUILD FAILED
C:\views\yadda-yadda-yadda\build.xml:386:
failure[-1] running ajc

_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users



Back to the top