Back Forum Reply New

@Configurable not working

mons.propertyset.impl.PropertyRowMapp  er.lt;initgt;())' in Type 'com.cedac.commons.propertyset.impl.PropertyRowMap  per' (PropertyRowMapper.java:35) advised by afterReturning advice from 'org..beans.factory.aspectj.Annotat  ionBeanConfigurerAspect' (spring-aspects-2.5.6.jar!AbstractDependencyInjectionAspect.class:  87(from AbstractDependencyInjectionAspect.aj)) [with runtime test]
...

Now the problem is that, when running tests, the PropertyRowMapper class is not injected with the LobHandler declared in the application context.
I've tried different approaches to this problem but none of them seems to work.
I've also noticed that Eclipse AJDT plugin doesn't annotate the code line with his marker (usually this happens).
In the first I've suspected an Eclipse problem, but running tests from command line produce the same results.

There is someone that can help me?
This problem is driving me crazy.
Thank you.

Mauro

I just tried your code (in AJDT, not Maven). It works fine for me. I did make two modifications, although I don't think they matter:
1. I changed ltropertygt; to lt;Stringgt;, since I don't know which Property class you are using.
2. I changed the namespace declaration as follows:

Code:
lt;?xml version=quot;1.0quot; encoding=quot;UTF-8quot;?gt;
lt;beans xmlns=quot;schema/beansquot;   xmlns:xsi=quot;2001/XMLSchema-instancequot;   xmlns:aop=quot;schema/aopquot;   xmlns:context=quot;schema/contextquot;   xsi:schemaLocation=quot;schema/beans                   schema/beans/spring-beans-2.5.xsd                  schema/aop                   schema/aop/spring-aop-2.5.xsd                  schema/context                   schema/context/spring-context-2.5.xsdquot;gt;                  
lt;context:spring-configured /gt;

lt;bean id=quot;lobHandlerquot; class=quot;org..jdbc.support.lob.DefaultLobHandlerquot; /gt;
lt;/beansgt;
When compiling using AJDT, did you put spring-aspects.jar in the AspectPath tab?

-Ramnivas
¥
Back Forum Reply New