Hi All,
Not sure where to put this, or who to email.
But in the documentation located here:
http://static.springsource.org/sprin...params-passing
It states this:
However when I was running my version of this I was getting Transaction errors as it was having problems setting the error Type..Code:@Before("com.xyz.lib.Pointcuts.anyPublicMethod() && " + "@annotation(auditable)") public void audit(Auditable auditable) { AuditCode code = auditable.value(); // ... }
But I found by change the lineCode:Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error Type referred to is not an annotation type:
toCode:@Before("com.xyz.lib.Pointcuts.anyPublicMethod() && @annotation(auditable)")
It all works.Code:@Before("com.xyz.lib.Pointcuts.anyPublicMethod() and @annotation(auditable)")
Am I abusing something I shouldn't be? or is the documentation wrong?


Reply With Quote
