Announcement Announcement Module
Collapse
No announcement yet.
arning no match for this type name Xlint:invalidAbsoluteTypeName Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • arning no match for this type name Xlint:invalidAbsoluteTypeName

    hi, i am trying to use aop for definition of bean. But i always get an exception
    "warning no match for this type name: eu.tra
    de.eutn2.backend.bean.business [Xlint:invalidAbsoluteTypeName]"
    Could someone tell me what this exception means so i can solve it?
    thnx

    See the code here:

    Code:
    <tx:advice id="transactionAdvice" transaction-manager="transactionManager">
    		<tx:attributes>
    			<tx:method name="*" propagation="REQUIRED" isolation="DEFAULT" rollback-for="BeanException"/>
    		</tx:attributes>
    	</tx:advice>
    
    	<aop:config>
    		<aop:pointcut id="beanPointcut" expression="execution(* eu.trade.eutn2.backend.bean.business.*BeanImpl (..))"/>
    		<aop:advisor advice-ref="transactionAdvice" pointcut-ref="beanPointcut"/>
    	</aop:config>

    <!-- definition of all the business functionality bean -->
    <bean id="templateBean" parent="service" class="eu.trade.eutn2.backend.bean.business.Templa teBeanImpl" />
    <bean id="profileBean" parent="service" class="eu.trade.eutn2.backend.bean.business.Profil eBeanImpl" />
    <bean id="editionBean" parent="service" class="eu.trade.eutn2.backend.bean.business.Editio nBeanImpl" />
    <bean id="messageBean" parent="service" class="eu.trade.eutn2.backend.bean.business.Messag eBeanImpl" />
    <bean id="recipientBean" parent="service" class="eu.trade.eutn2.backend.bean.business.Recipi entBeanImpl" />


    Code:
    2007-03-20 11:56:02,088 ERROR [org.springframework.web.context.ContextLoader] - <Context initializat
    ion failed>
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SqlMapClient
    Properties3' defined in class path resource [applicationContext.xml]: Initialization of bean failed;
     nested exception is java.lang.IllegalArgumentException: warning no match for this type name: eu.tra
    de.eutn2.backend.bean.business [Xlint:invalidAbsoluteTypeName]
    Caused by:
    java.lang.IllegalArgumentException: warning no match for this type name: eu.trade.eutn2.backend.bean
    .business [Xlint:invalidAbsoluteTypeName]
            at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:315)
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJ
    ExpressionPointcut.java:159)
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpres
    sionPointcut.java:149)
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressio
    nPointcut.java:134)
            at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:166)
            at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:226)
            at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:256)
            at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleA
    dvisors(AbstractAdvisorAutoProxyCreator.java:85)
            at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAnd
    AdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:69)
            at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInit
    ialization(AbstractAutoProxyCreator.java:265)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPos
    tProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:316)
            at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.postProcessO
    bjectFromFactoryBean(AbstractAutowireCapableBeanFactory.java:1175)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectFromFactoryBean(Ab
    stractBeanFactory.java:1228)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(Ab
    stractBeanFactory.java:1177)
            at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory

  • #2
    You pointcut expression is incorrect. Change it to:

    Code:
    execution(* eu.trade.eutn2.backend.bean.business.*BeanImpl.*(..))
    -Ramnivas

    Comment


    • #3
      thnx that was the problem!!

      Comment

      Working...
      X