[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] RuntimeException: cannot register non aspect?
|
- From: Daniel <daniel.rampanelli@xxxxxxxxx>
- Date: Thu, 20 Aug 2009 09:00:20 +0200
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=1ErWp7iLBeyIFUBhCu4qHS973TxdNaPHzf5G2uabSn0=; b=OLG3PsD022nazZMwZRg26KA2xnPjVE3h01N/vX3FUFEAgDahwU2j4BOvCF2KMgyIPs BNysJ2vcC4Z3HiPzVmEVLVAQdiQZxeyBaOCghsNhRNfb/2cbI44PL8AwblRcFNLtAEO4 QuF53jSP9fIp2dwRf9WGIsiWVHQt/aknOtCZ8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=XmcDA0KDRdy+Drq81yaheVNnHvn+/AlLanAbWG9hm0NfAeUXr9NstMKj9okJl3gziH 0nH9evWHDsVBd8nj7yeEXl0GG7mqhbAOPHW1/1TBcYAR+WngMPknXVtJS1xh1Ow1sseO EH7uRzGElQNZC7a+RGwN5PfUspAv4vQE7J0zY=
Hi!
yes I'm cure sure that the supplement headers are set, unless it
wouldn't work when launched in Eclipse.
Or maybe the bundles have to be specified in another way if we are
running it as a binary? I hope not because it would be quite
confusing.
Daniel
On Wed, Aug 19, 2009 at 6:20 PM, Andrew Eisenberg<andrew@xxxxxxxxxxxx> wrote:
> Not sure what the problem could be here. Have you set your
> MANIFEST.MF with the correct supplement headers?
>
> On Wed, Aug 19, 2009 at 7:30 AM, Daniel<daniel.rampanelli@xxxxxxxxx> wrote:
>> Hi to everyone,
>>
>> I'm working on a Eclipse RCP application and I obviously am using
>> aspects in my software. So, I setup a special bundle containing the
>> aspects and the aop.xml (in the META-INF folder). The weaving is
>> performed by the functionality provided by Equinox Aspects bundle.
>>
>> That means I have,
>>
>> client bundle : containing classes that are to be woven
>> aspect bundle : containing aspects and aop.xml
>>
>> As long as I'm using Eclipse to start and run my application,
>> everything is fine. But today I tried to export the software and I
>> discovered this exception stack trace in the Console.
>>
>> 8/19/09 3:58:50 PM [0x0-0xd80d8].org.eclipse.eclipse[2546]
>> java.lang.RuntimeException: Cannot register non aspect:
>> client$aspects$ThreadSafeExecutor , client.aspects.ThreadSafeExecutor
>> 8/19/09 3:58:50 PM [0x0-0xd80d8].org.eclipse.eclipse[2546] at
>> org.aspectj.weaver.bcel.BcelWeaver.addLibraryAspect(BcelWeaver.java:219)
>> 8/19/09 3:58:50 PM [0x0-0xd80d8].org.eclipse.eclipse[2546] at
>> org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerAspects(ClassLoaderWeavingAdaptor.java:432)
>> 8/19/09 3:58:50 PM [0x0-0xd80d8].org.eclipse.eclipse[2546] at
>> org.aspectj.weaver.loadtime.ClassLoaderWeavingAdaptor.registerDefinitions(ClassLoaderWeavingAdaptor.java:267)
>> [...]
>>
>> The software is being deployed with all the needed bundles and
>> dependencies and I also checked that the aspects are being included in
>> the binary build of the bundle.
>>
>> Has anybody a clue about my problem?
>>
>> Daniel
>> _______________________________________________
>> 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
>