Announcement Announcement Module
Collapse
No announcement yet.
strange poin-cut error? what it means plz guide me for that Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • strange poin-cut error? what it means plz guide me for that

    hi all,
    I'm getting this strange error when i start my jboss and load my application
    i'm doing logging code is following:

    package com.myorg.springaop.examples;

    import org.aspectj.lang.ProceedingJoinPoint;

    public class MyLoggingAspect
    {
    public Object log(ProceedingJoinPoint call) throws Throwable
    {
    System.out.println("from logging aspect: entering method [" + call.toShortString()
    +"] with param:"+call.getArgs()[0] );

    Object point = call.proceed();

    System.out.println("from logging aspect: exiting method [" + call.toShortString()
    + "with return as:" +point);

    return point;
    }

    }

    in applicationContext.xml

    <bean id="LoggingAspect" class = "com.myorg.springaop.examples.MyLoggingAspect"/>
    <aop:config>
    ...
    ...
    ...
    <aop:aspect ref="LoggingAspect">
    <aopointcut id="myCutLogging"
    expression="execution(* com.myorg.springaop.examples.MyService*.*(..))"/>
    <aop:around pointcut-ref="myCutLogging" method="log"/>
    </aop:aspect>
    </aop:config>

    Above code is working showing me output in log file of all that sysout.
    but after that operation it shows following error which i dont understand what it means.
    Error is bellow(first few lines):

    2009-03-24 21:20:23,578 INFO [STDOUT] 21:20:23,562 ERROR [/myApp]:660 - StandardWrapper.Throwable
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'messageSource' defined in class path resource [applicationContext.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAd visor#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationExcepti on: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdv isor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'identifier' at character position 0

    ^

    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:405)
    at java.security.AccessController.doPrivileged(Native Method)
Working...
X