Hello JB,

I changed the OpCode ASM5 into ASM7 and it works fine for me now.
I have another question about Aries/Proxy: I would like to add dynamically some 
(byte)code before and after methods of some services. I tried it with weaving 
hook and proxy but it requires to register the proxy as a new service and hide 
the original one. The problem is when the service to instrument is a central 
service (used by many other components), the proxy creation comes too late, the 
user components have already bound to the original service… Is it possible to 
instrument service classes without creating proxies?
Thanks.
Christian

From: Jean-Baptiste Onofre <j...@nanthrax.net>
Sent: mercredi 23 juin 2021 06:24
To: user@aries.apache.org
Subject: Re: [EXTERNAL] Re: UnsupportedOperationException: NestMember requires 
ASM7

Hi Christian,

Thanks for the update, let me check the WovenProxyAdapter and eventually cut a 
new Aries Proxy release.

Regards
JB


Le 22 juin 2021 à 18:20, Nerriere, Christian 
<christiannerri...@eaton.com<mailto:christiannerri...@eaton.com>> a écrit :


Hello JB,

I just try it with Karaf 4.3.2 (and Aries Proxy 1.1.10) but I have the same 
error.
The constructor of the 
AbstractWovenProxyAdapter<https://github.com/apache/aries/blob/org.apache.aries.proxy-1.1.10/proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/common/AbstractWovenProxyAdapter.java>
 still uses Opcodes.ASM5 in its constructor.

Christian

From: Jean-Baptiste Onofre <j...@nanthrax.net<mailto:j...@nanthrax.net>>
Sent: jeudi 17 juin 2021 16:59
To: user@aries.apache.org<mailto:user@aries.apache.org>
Subject: [EXTERNAL] Re: UnsupportedOperationException: NestMember requires ASM7

Hi Christian

Did you try with Karaf 4.3.2 or 4.2.12-SNAPSHOT ?

I did an update on Aries Proxy with ASM9 code.

Regards
JB



Le 17 juin 2021 à 16:27, Nerriere, Christian 
<christiannerri...@eaton.com<mailto:christiannerri...@eaton.com>> a écrit :

Hello,

I’m trying to use Aries Proxy to create weaving proxies on some classes of my 
project (running with Karaf 4.2.11 and Java 11).
I changed the custom.properties to restrict weaving on my project classes and 
added a  ProxyWeavingController component but the weaving fails with the 
following error:

java.lang.UnsupportedOperationException: NestMember requires ASM7

In the Aries proxy code, I found that the ClassVisitor 
AbstractWovenProxyAdapter uses Opcodes.ASM5. Is it a choice? Why?
Thanks.

Christian


________________________________
Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble 
Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu 
d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 
509 653 176 ~ Capital social souscrit et liberé:€ 16215441 ~ Numéro de TVA: 
FR47509653176




________________________________
Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble 
Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu 
d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 
509 653 176 ~ Capital social souscrit et liberé:€ 16215441 ~ Numéro de TVA: 
FR47509653176




________________________________
Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble 
Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu 
d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 
509 653 176 ~ Capital social souscrit et liberé:€ 16215441 ~ Numéro de TVA: 
FR47509653176

________________________________


Reply via email to