As Ramnivas says, you could try on 1.6.1 final - but I think it might prove
to be a bug, please raise it and I'll look into it.

Andy.

2008/7/25 Ramnivas Laddad <[EMAIL PROTECTED]>

> As a first step, you might want to try 1.6.1 (final, you seem to be using
> the rc release).
>
> If you still see the problem, it is best to open a bug.
>
> -Ramnivas
>
> On Fri, Jul 25, 2008 at 4:41 PM, 100ji <[EMAIL PROTECTED]> wrote:
>
>> Hi all,
>>
>> I am instrumenting java.io.PrintWriter.println() call in an EchoClient
>> and EchoServer example I downloaded from the internet. When I weave
>> aspects: it fails with the error below. I have attached the complete
>> directory as an attachment for your reference. This crash is
>> intermittent. So, I am not sure if this happens on reweaving an
>> already woven file.
>>
>> providence /u/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3
>> % make -f ytrace/Makefile weave_client
>> rm -rf
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects/*
>> python /u/suman/exercise/steve_rnr/ytrace/ytrace/python/genAspects.py
>>
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/conf/echo_ytrace_config.xml
>> >
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects_src/AddTaintVarToThread.aj
>> ajc -1.5 -classpath
>>
>> /u/suman/installs/libs/java/log4j-1.2.15.jar:/u/suman/installs/aspectj1.6//lib/aspectjrt.jar:/home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3:.
>> -d
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects
>>
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects_src/*.*
>>
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects_src/AddTaintVarToThread.aj:31
>> [warning] advice defined in AddTaintVarToThread has not been applied
>> [Xlint:adviceDidNotMatch]
>>
>>
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects_src/YTraceNameThreadAspect.aj:17
>> [warning] advice defined in YTraceNameThreadAspect has not been
>> applied [Xlint:adviceDidNotMatch]
>>
>>
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects_src/AddTaintVarToThread.aj:19
>> [warning] advice defined in AddTaintVarToThread has not been applied
>> [Xlint:adviceDidNotMatch]
>>
>>
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects_src/YTraceNameThreadAspect.aj:8
>> [warning] advice defined in YTraceNameThreadAspect has not been
>> applied [Xlint:adviceDidNotMatch]
>>
>>
>> 4 warnings
>> ajc -1.5  -classpath
>>
>> /u/suman/installs/libs/java/log4j-1.2.15.jar:/u/suman/installs/aspectj1.6//lib/aspectjrt.jar:/home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects:.
>>  -aspectpath
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects
>> -inpath /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3
>> -d
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/output/
>> ; echo "Add this to classpath:
>>
>> /u/suman/installs/libs/java/log4j-1.2.15.jar:/u/suman/installs/aspectj1.6//lib/aspectjrt.jar:/home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects:/home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/output"
>> ABORT
>>
>> Exception thrown from AspectJ 1.6.1rc1
>>
>> This might be logged as a bug already -- find current bugs at
>>
>> http://bugs.eclipse.org/bugs/buglist.cgi?product=AspectJ&component=Compiler
>>
>> Bugs for exceptions thrown have titles File:line from the top stack,
>> e.g., "SomeFile.java:243"
>>
>> If you don't find the exception below in a bug, please add a new bug
>> at http://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ
>> To make the bug a priority, please include a test program
>> that can reproduce this exception.
>> bad WeaverState.Kind: -115.  File was :<Unknown>::0
>>
>> when batch building BuildConfig[null] #Files=0
>> bad WeaverState.Kind: -115.  File was :<Unknown>::0
>> java.lang.RuntimeException: bad WeaverState.Kind: -115.  File was
>> :<Unknown>::0
>>      at org.aspectj.weaver.WeaverStateInfo.read(WeaverStateInfo.java:142)
>>      at org.aspectj.weaver.AjAttribute.read(AjAttribute.java:97)
>>      at
>> org.aspectj.weaver.bcel.BcelAttributes.readAjAttributes(BcelAttributes.java:106)
>>      at
>> org.aspectj.weaver.bcel.BcelObjectType.ensureAspectJAttributesUnpacked(BcelObjectType.java:333)
>>      at
>> org.aspectj.weaver.bcel.BcelObjectType.<init>(BcelObjectType.java:151)
>>      at
>> org.aspectj.weaver.bcel.BcelWorld.buildBcelDelegate(BcelWorld.java:299)
>>      at
>> org.aspectj.weaver.bcel.BcelWorld.addSourceObjectType(BcelWorld.java:365)
>>      at
>> org.aspectj.weaver.bcel.BcelWeaver.addClassFile(BcelWeaver.java:433)
>>      at
>> org.aspectj.weaver.bcel.BcelWeaver.addClassFile(BcelWeaver.java:448)
>>      at
>> org.aspectj.ajdt.internal.core.builder.AjBuildManager.initBcelWorld(AjBuildManager.java:841)
>>      at
>> org.aspectj.ajdt.internal.core.builder.AjBuildManager.doBuild(AjBuildManager.java:248)
>>      at
>> org.aspectj.ajdt.internal.core.builder.AjBuildManager.batchBuild(AjBuildManager.java:184)
>>      at org.aspectj.ajdt.ajc.AjdtCommand.doCommand(AjdtCommand.java:112)
>>      at org.aspectj.ajdt.ajc.AjdtCommand.runCommand(AjdtCommand.java:60)
>>      at org.aspectj.tools.ajc.Main.run(Main.java:382)
>>      at org.aspectj.tools.ajc.Main.runMain(Main.java:254)
>>      at org.aspectj.tools.ajc.Main.main(Main.java:88)
>>
>> Jul 25, 2008 11:50:38 AM org.aspectj.weaver.tools.Jdk14Trace info
>> INFO: Dumping to
>>
>> /home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/./ajcore.20080725.115038.627.txt
>>
>> 1 fail|abort
>> Add this to classpath:
>>
>> /u/suman/installs/libs/java/log4j-1.2.15.jar:/u/suman/installs/aspectj1.6//lib/aspectjrt.jar:/home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/aspects:/home/suman/exercise/steve_rnr/ytrace/ytrace_examples/echo/echo3/ytrace/build/output
>>
>> Thanks,
>> -S-
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@eclipse.org
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
>>
>
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@eclipse.org
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to