Questions tagged [load-time-weaving]

Binary weaving of aspects when a class is loaded.

Load-Time Weaving (LTW) is instrumentation (binary weaving of aspects) at class loading time in a VM.

For example, in Java, it is implemented by AspectJ.

Alternatively, in the .NET world, it is also called "Runtime Weaving" (see the PostSharp documentation).

162 questions
0
votes
1 answer

How can i configure my spring aop xml with aop.xml an load time weaving?

I have one "Hello word" application on spring AOP and configured by XML, it looks like this: public class CustomerBoImpl { public CustomerBoImpl() { super(); } protected void addCustomer(){ …
Saad Fch
  • 1
  • 4
0
votes
0 answers

AOP on different classloader classes

I have an application deployed in jboss. In that I have .war(Web application) and .sar(Service layer). These two are loading by different class loaders. Now I want to apply AOP on the classes which are sitting in the .sar file from .war file. We…
0
votes
2 answers

Spring AOP and AspectJ Load-Time Weaving: Around advice will be invoked twice for private methods

I will use Spring AOP and AspectJ Load-Time Weaving to measure execution time of specific private/protected/public methods in my code. To do this I wrote following annotation with one I will annotate the methods which execution time should be…
Zsepii
  • 13
  • 5
0
votes
1 answer

Weaving aspect to executable jar and running it

I wrote an aspect to print details about Method whenver any method calls any another method. I want to exclude java libraries. I am trying to weave aspect to a jAR file and then execute the JAR. I am struggling from long and read many tutorials but…
user1568701
  • 43
  • 3
  • 11
0
votes
0 answers

Spring load time weaving

After 12 hours of trying I don't seem to be able to get Spring load time weaving working on Tomcat. Spring 4.2.1 Hibernate 4.3.11 Tomcat 8.09 I am trying to get an @Entity autowired. The weaver output always says: not weaving…
Doahh
  • 590
  • 1
  • 8
  • 20
0
votes
2 answers

AspectJ aspect is not applied in LTW scenario

I am trying to use AspectJ in a standalone application but does not seem to work. Here are the classes I created- package oata.aspect; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import…
Ashish Abrol
  • 97
  • 1
  • 2
  • 8
0
votes
1 answer

Sporadic NoClassDefFoundError for org/aspectj/runtime/reflect/JoinPointImpl

We are using aspectj (1.8.5) with Java (1.7) and Spring (3.2.3). We use load time weaving. Once in a while we see these errors is the log of our application when it starts. Sometimes the start up of the application fails (due to the errors) and…
0
votes
0 answers

Spring Aspectj LoadTimeWeaving is not working

I have a problem weaving an aspect using AspectJ LoadTimeWeaving Here is the aspect: package com.thomson.tgr.aspects; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Aspect; import…
user3341697
  • 305
  • 4
  • 12
0
votes
0 answers

LoadTimeWeaving issue with Spring 4 and Java 8

I'm enabling load time weaving via XML as Relevant dependencies are as follow: spring-orm = 4.0.x; spring-aop = 4.0.x; …
andres.santana
  • 624
  • 1
  • 6
  • 13
0
votes
0 answers

AspectJ Load Time Weaving takes too much time

I have created an executable jar of my scala application. I am trying to use AspectJ Load-Time-Weaving. The aspectj is working as expected, however, it is taking a huge amount of time to start the jar file after the LTW. My AOP.xml is as…
Yadu Krishnan
  • 3,492
  • 5
  • 41
  • 80
0
votes
1 answer

Spring - @Configurable classes in external JAR

I want to use spring dependency injection for my domain classes, that are possibly not created within spring context. That's why I have annotated these classes with @Configurable annotation and I try to setup load time weaving. My spring…
Richard Kakaš
  • 121
  • 1
  • 9
0
votes
1 answer

Cannot find parent aspect for concrete aspect

I have trying to test load time weaving in simple hello world normal Servlet based example in wildfly8.2 I have below Aspect code package com.test.aspects; import org.aspectj.lang.annotation.Around; import…
hitts
  • 31
  • 1
  • 10
0
votes
1 answer

Issues with a Spring @Configurable class not getting its dependencies autowired

I am trying to configure Load Time Weaving for my Spring Boot app to properly autowire dependencies on a @Configurable java class. Here is my configuration/main class: package com.bignibou; @Configuration @EnableAutoConfiguration(exclude = {…
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
1 answer

Roo and Failsafe integration tests: BeanConfigurerSupport issue

case: Roo application with integration tests autoganerated. need: use PGSQL for deployment, HSQLDB for integration tests. choice: spring-agent/spring-instrument & aspectjweaver in argLine in maven-failsafe-plugin configuration so as not to be…
0
votes
1 answer

JPA - Performance impact of weaving

I am unable to find any benchmark or large scale test that shows the performance gain of static weaving versus dynamic weaving. Does somebody has any experience with this ?
Julien
  • 1,302
  • 10
  • 23
1 2 3
10
11