Quantcast
Channel: Spring Community Forums - AOP
Browsing all 83 articles
Browse latest View live

Spring Hibernate Concurrency

Hi, I am updating the same object from two different browers. One browser succesfully saves ok. However, the other browser when I save throws an error StaleObjectStateException. I am expecting the...

View Article



passing parent id to bean() pointcut ?

[bean id="parent" class="Foo"/] [bean id="c1" parent="parent"/] [bean id="c2" parent="parent"/] [aop:advisor advice-ref="adviser2" pointcut="bean(parent)"/] I want adviser2 to be called for c1 and c2....

View Article

3.1.1.RELEASE recommended .jar containing...

What is the .jar recommended for use with Spring 3.1.1.RELEASE containing org.aopalliance.intercept.MethodInterceptor?

View Article

How to get prototype from ProxyFactoryBean ?

Hello all, first of all I would like to say I am a beginner in spring, so maybe I am asking basic thing, but I am really stuck in my problem. Used components: Spring 1.2.8, Hibernate 3.2.0 cr1, tomcat,...

View Article

advice for annotation on either class or method

Hi, I have the following problem: I have create annotation for Security: Code: @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.TYPE}) @Inherited @Documented public...

View Article


AspectJ and calling another method in @AfterReturning method

I'm starting to learn how to use AspectJ in Spring. I have the following class. I want to perform first method in new thread (long running task), so I thought this might be achieved using Aspect - when...

View Article

AopConfigException - Superclass has no null constructors but no arguments...

After upgrading to the 3.1.3, I run into the following error during the start up. Code: org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class...

View Article

Transaction management

Hi everybody, I'm having problem managing transactions with @Transactional annotaton and AspectJ. Other annotations such as @Configurable work as expected. Also auto-wiring dependencies is ok. I can't...

View Article


ReflectionWorld$ReflectionWorldException Exception

Hi, I have a very small Spring AOP- application using also Maven, where the JARs are in the pom.xml If I start the application, I get the following exception: Code:...

View Article


[Urgent] - Bad version numner found in AspectJ 1.7.0 (m2eclipse issue?)

Hello, I am stuck on this issue for a while now. It used to work fine for a while and had to re-install IBM RAD (eclipse 3.6) and and this problem started showing up. This happens when I run the test...

View Article

@Configurable in spring initialization

Hi, I'm trying to configure MultiTenant in LocalSessionFactoryBean and xml looks like this: Code: <context:spring-configured/>        <context:component-scan...

View Article

CRUD AJ Methods in Controller

Hi I'm new in Spring and I'm using Spring Roo to generate a webapp and I don't know much about AspectJ, and I want to understand better the AspectJ code that is generated for the CRUD operations on the...

View Article

Using pertarget instantiation model for around advice aspect

I have a Query class defined as follows: package abc; @Component("QueryController") @Scope ("Session") public class QueryController extends BaseController { public String runQuery(){ ... } }...

View Article


ApplicationContext load fails once I make my aspect implement Ordered

Hello, I have a very complicated error, for which Google provided no help, so I'm hoping Spring gurus here can give me some tips. I have a Spring AOP aspect whose purpose of being is translating DB...

View Article

IllegalStateException during Context initialization using Spring AOP, CXF,...

Summary: I'm getting the following error after enabling Spring AOP. I'm not sure why it's choking at startup trying to wire Jackson's ObjectMapper. Code: Caused by: java.lang.IllegalStateException:...

View Article


ClassNotFoundException: org.springframework.transaction.aspectj.AbstractTr...

Hello I get this exception after updating spring 3.2.1 to 3.2.2. The stacktrace indicates that its an org.aspectj.weaver problem, but my server startet without problem before updating to 3.2.2. Anybody...

View Article

Declarative Transactions weaves the classes at compile time or load time

We all know the transaction management in spring uses the AOP. My question related to transaction management is "when we define the declarative transaction either using annotations or XML, when weaving...

View Article


Image may be NSFW.
Clik here to view.

Memory leak in ConfigurationClassEnhancer$BeanMethodInterceptor

Hi, I'm using spring 3.1.4 IMHO there is some sort of memory leak ConfigurationClassEnhancer$BeanMethodInterceptor. Due to it the BeanFactory isn't GC'd and we experience connection leak(since pool...

View Article

@Configurable not working on Subclass of an Abstract Class in specific case

I believe I have narrowed this issue down to a specific case. Take the following general abstract class: Code: public abstract class AbstractClass { //Irrelevant } And a subclass of that AbstractClass...

View Article

Can AOP and AspectJ intercept spring integration queries?

I´ve been checking AOP for a project I´m working. I know that with AOP and AspectJ we can intercept java classes, but can we intercept queries launched by spring integration?? So if in my context I ´ve...

View Article
Browsing all 83 articles
Browse latest View live




Latest Images