We got the following excpetion AbstractMethodError
when we used mixin on interfaces.
The exception does not occur when we applied the same aspect on implementation
- See below the aspect.
We would like to know what we're doing
wrong when we use interfaces? The behavior is a logging aspect. We want
to logging all methods from the interfaces, especially the find* methods.
I've put >>>>
45 et >>>>
34 to give you the line number
where the error is triggered inside the code.
By the past, in "coded-style",
with "declare parents", applying aspect on interfaces did not
raise an error.
Best regards
=============
ERROR TRACE
=============
java.lang.AbstractMethodError:
com/cpny/crm/aspects/LoggingBaseBehavior$Loggable.getLog()Lorg/slf4j/Logger;
at
javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
...
39 more
Caused by: java.lang.AbstractMethodError:
com/intact/cpny/aspects/LoggingBaseBehavior$Loggable.getLog()Lorg/slf4j/Logger;
at
com.cpny.crm.aspects.LoggingServiceBehavior.loggerService(LoggingServiceBehavior.java:45)
at
com.cpny.crm.domain.services.impl.EDocService.findDocumentsByPolicy(EDocService.java:34)
final
Map<String, ElectronicDocumentByPolicy> eDocPolicies =
new
HashMap<String,ElectronicDocumentByPolicy>();
final
Map<String, IEdocTree> eDocTreeCurrent = new
HashMap<String, IEdocTree>();
final
Map<String, IEdocTree> eDocTreeHistory = new
HashMap<String, IEdocTree>();
final
Map<String, DescriptionRuleHistory> eDocDescriptions =
new
HashMap<String, DescriptionRuleHistory>();
final
Map<String,Object> alreadySeenEDocs = new
HashMap<String,Object>();