Compile time weaving is a technique which allows AOP aspects to be "woven in" at compile time mainly by modifying the compiled code (e.g. byte-code manipulation in Java).
Questions tagged [compile-time-weaving]
89 questions
0
votes
1 answer
Eclipselink static weaving not work
I have configured my project to support static weaving but it's not working for lazy loading @ManyToOne.
version of freamwork used:
eclipselink-2.6.3-M1.jar
wildfly 10.0.0
JPA 2.0
eclipselink-staticweave-maven-plugin:1.0.4
my configuration :
-…

Gogo
- 292
- 8
- 19
0
votes
1 answer
Project containing a Fody Name.Of weaver works depending on containing solution
I experience the problem that in one solution the Fody weaving, in my case Fody.NameOf, doesn't work.
I created a new solution, copied the project in question and in this solution, the weaving works!
In the new solution I didn't configure anything…

Onur
- 5,017
- 5
- 38
- 54
0
votes
1 answer
Disable Spring AOP MethodSecurityInterceptor when using AspectJ CTW
I have a project which uses Spring Security and is making of AspectJ compile time weaving (CTW) to weave in spring-security-aspects. This allows me to use annotations such as @PreAuthorize in non-Spring managed classes (which works fine) but I'm…

Robert Hunt
- 7,914
- 5
- 40
- 43
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
0
votes
3 answers
Visual Studio editor doesn't see my generated types
Using Cecil, I'm modifying an assembly for a certain project to include a few extra interfaces. This is triggered from an AfterBuild target in my project file, which calls a custom task. This works fine. The resulting assembly is modified just as it…

matko
- 134
- 6
0
votes
1 answer
Unable to get JPA Entity manager working with java config (XML free)
I'm able to configure the datasource, JPA transaction manager and Spring aspects jar file. To be precise I want AspectJ compile time weaving (CWT). Please share any clues to get this done if someone has done this.

jpdave
- 408
- 1
- 4
- 7
0
votes
0 answers
JPA With EclipseLink 2.3 Lazy Loading Weaving Method Not Found Exception
We have a web application with JPA eclipselink 2.3.
We want to enable lazy loading, which requires us to enable weaving. The weaving process runs fine except that it cause a number of errors when we run our page.
The error is below:
Exception…

lazell
- 53
- 1
- 4
- 11
0
votes
1 answer
postsharp 3 introduce/remove constructor aspect
I'm evaluating Postsharp 3.0 and would like to know if there is a way to introduce and/or remove constructors.
The use case is to remove all public parameterless constructors, and introduce a private paramterless one.
Thanks in advance,
Kavan

Kavan Shaban
- 11
- 1
0
votes
1 answer
Glassfish 4.0 Security Exception at ClassLoader
My setup consists of Glassfish 4, a MySQL database, Eclipse-Link 2.5 as JPA provider. In order to profit from lazy fetching and load groups, I statically weave my entity classes.
Now I get the following error while starting my stand-alone…

salocinx
- 3,715
- 8
- 61
- 110
0
votes
1 answer
Compile Time Weaving Null Pointer Exception
Edit 7:
The problem seems to be how to get @Configurable working with HttpSessionListener, a workaround is suggested, but I'dd prefer not to to interact with the WebApplicationContext directly:
@Configurable(autowire = Autowire.BY_TYPE,…

Vjeetje
- 5,314
- 5
- 35
- 57
0
votes
1 answer
Spring compile time weaving transaction rollback
I'm trying to get Aspectj Compile Time Weaving(CTW) configured in Spring. However after adding mode="aspectj" to the tx:annotation-driven, the transactions all fail and no entities are stored in the database as a result.
Here is the relevant part of…

Vjeetje
- 5,314
- 5
- 35
- 57
0
votes
2 answers
Junit fails due to Aspect
I have a custom security framwork based on annotations.I use the aspectj maven plugin to weave the aspect when it comes across the security annotation for the method.
I use jenkins to build the project and the aspectj maven plugin goals are set for…

sathishvisa
- 315
- 1
- 5
- 16
0
votes
1 answer
Switching from Maven command line interface to Eclipse Plugin
I'm working on a project that is built using maven to weave in AspectJ annotations when compiling. Up until now, it worked like this:
1) Turn off "Build Automatically" in eclipse
2) Make changes to code in Eclipse
3) Navigate to Project folder on…

Yozarian22
- 279
- 4
- 9
0
votes
1 answer
How to interpret my stacktrace?
I use IBM RAD 8 and deploy to websphere and then I get this stacktrace:
ERROR ArendeProcessLoginServlet:142 - Fel i ArendeProcessLoginServlet, performTask():
javax.ejb.EJBTransactionRolledbackException: nested exception is: javax.ejb.EJBException:…

Niklas Rosencrantz
- 25,640
- 75
- 229
- 424