JBoss Community

Problems with runtime weaving and typedefs

created by Bernhard Berger in JBoss AOP - View the full discussion

Hi,

 

I've a problem with runtime weaving of an enterprise application leading to a hard crash of the java runtime. There is an error entry in the server log, telling that he is not able to load a transformed class (see attachement). I think it is a problem that can not be solved in minutes, therefore I tried to exclude the class from instrumentation and I realized I'm not able to configure aop this way.

 

I'm using the following typedef and binding to instrument my system:

 

<typedef name="system" expr="class(com.XXX.*) AND !class(com.XXX.YYY.Foobar)" />

<bind pointcut="call(public * $typedef{system}->*(..))">

   <before aspect="..." trace="..." />

</bind>

 

I'm aware that instrumenting the whole application is very expensive but I have to do some kind of runtime tracing and this is the only way I see. Is this the way I should reach my goal or did I understand the documentation wrong?

 

Thanks in advance

 

Bernhard

Reply to this message by going to Community

Start a new discussion in JBoss AOP at Community