Top "Spring-aop" questions

Spring AOP is the Spring Framework's version of AOP, implemented in pure Java and using the @AspectJ annotations from the AspectJ project.

java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut

Thinker.java package springdemo2; public interface Thinker { void thinkOfSomething(String thoughts); } Volunteer.java package springdemo2; public class Volunteer implements Thinker{ …

spring aop spring-aop
Getting the java.lang.reflect.Method from a ProceedingJoinPoint?

The question is short and simple: Is there a way to get the Method object from an apsectj ProceedingJoinPoint? Currently …

spring jakarta-ee aop aspectj spring-aop
How to enable <aop:aspectj-autoproxy> with java-based annotations

I am trying to set up Spring AOP without any XML. I'd like to enable <aop:aspectj-autoproxy> in …

java spring spring-aop
How to specify single pointcut for multiple packages

I am using Aspect for logging activities in my spring mvc based application. I am using @controller annotations to define …

spring aop spring-aop pointcut aspect
Spring autowired bean for @Aspect aspect is null

I have the following spring configuration: <context:component-scan base-package="uk.co.mysite.googlecontactsync.aop"/> <bean name="simpleEmailSender" …

java spring aop aspectj spring-aop
annotation equivalent of <aop:scoped-proxy>

I am moving from an xml config to annoations. i want to convert a session scoped bean that is <…

spring spring-aop
spring 3.0 aop Pointcut is not well-formed: expecting 'name pattern' error

The following is my pointcut and advise declaration //PointCut on A method which takes two parameters and is in a …

java spring aop aspectj spring-aop
Spring AOP (Aspect) Not executing

I ams using Spring 2.5.6, asm 1.5.3, aspectjrt/aspectjweaver 1.6.1, cglib 2.1_3 In my Web based Spring application I have following class: package uk.…

spring spring-mvc aop spring-aop
BeanNotOfRequiredTypeException but was actually of type $Proxy

I need help with a problem with Spring and proxy. org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'fooAPIService' must be …

java spring spring-aop cglib aspect
Spring AOP AfterThrowing vs. Around Advice

when trying to implement an Aspect, that is responsible for catching and logging a certain type of error, I initially …

java spring-aop