Pointcut isn't well-formed:expecting ' (' at character position 0 Mypt

Source: Internet
Author: User

January 08, 2017 4:18:23 pm Org.springframework.context.support.AbstractApplicationContext Preparerefresh
Information: Refreshing org[email protected]7e814e46:startup date [Sun Jan 16:18:23 CST 2017]; Root of context Hierarchy
January 08, 2017 4:18:23 pm Org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadbeandefinitions
Info: Loading XML Bean Definitions from class path resource [Applicationcontext.xml]
January 08, 2017 4:18:24 pm Org.springframework.context.support.AbstractApplicationContext Refresh
Warning: Exception encountered during context initialization-cancelling refresh attempt
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' Userdao ' defined in class path re SOURCE [Applicationcontext.xml]: Beanpostprocessor before instantiation of Bean failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Org.springframework.aop.aspectj.aspectjpointcutadvisor#0 ': Bean instantiation via constructor failed; Nested exception is org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; Nested exception is java.lang.IllegalArgumentException:Pointcut are not well-formed:expecting ' (' at character position 0
Mypt
^

At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:478)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:305)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:230)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:301)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:196)
At Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:772)
At Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:834)
At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:537)
At Org.springframework.context.support.classpathxmlapplicationcontext.<init> ( classpathxmlapplicationcontext.java:139)
At Org.springframework.context.support.classpathxmlapplicationcontext.<init> ( CLASSPATHXMLAPPLICATIONCONTEXT.JAVA:83)
At Spring.aop.a.demo.main (Demo.java:8)
caused by:org.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' Org.springframework.aop.aspectj.aspectjpointcutadvisor#0 ': Bean instantiation via constructor failed; Nested exception is org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; Nested exception is java.lang.IllegalArgumentException:Pointcut are not well-formed:expecting ' (' at character position 0
Mypt
^

At Org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor (Constructorresolver.java : 275)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor ( abstractautowirecapablebeanfactory.java:1143)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:1046)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:510)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:482)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:305)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:230)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:301)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:201)
At Org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans ( beanfactoryadvisorretrievalhelper.java:92)
At Org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors ( ABSTRACTADVISORAUTOPROXYCREATOR.JAVA:101)
At Org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip ( aspectjawareadvisorautoproxycreator.java:103)
At Org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation ( abstractautoproxycreator.java:243)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation (abstractautowirecapablebeanfactory.java:988)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation ( abstractautowirecapablebeanfactory.java:959)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:472)
... Ten more
caused By:org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; Nested exception is java.lang.IllegalArgumentException:Pointcut are not well-formed:expecting ' (' at character position 0
Mypt
^

At Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:163)
At Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:122)
At Org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor (Constructorresolver.java : 267)
... More
caused by:java.lang.IllegalArgumentException:Pointcut is not well-formed:expecting ' (' at character position 0
Mypt
^

At Org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression (pointcutparser.java:316)
At Org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression (pointcutparser.java:294)
At Org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression ( aspectjexpressionpointcut.java:207)
At Org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch (Aspectjexpressionpointcut.java : 193)
At Org.springframework.aop.aspectj.AspectJExpressionPointcut.getMethodMatcher (Aspectjexpressionpointcut.java : 176)
At Org.springframework.aop.aspectj.AbstractAspectJAdvice.buildSafePointcut (abstractaspectjadvice.java:187)
At Org.springframework.aop.aspectj.aspectjpointcutadvisor.<init> (aspectjpointcutadvisor.java:51)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57)
At Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45)
At Java.lang.reflect.Constructor.newInstance (constructor.java:526)
At Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:147)
... More

Exception in thread "main" Org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Userdao ' defined in class path resource [Applicationcontext.xml]: Beanpostprocessor before instantiation of Bean failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Org.springframework.aop.aspectj.aspectjpointcutadvisor#0 ': Bean instantiation via constructor failed; Nested exception is org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; Nested exception is java.lang.IllegalArgumentException:Pointcut are not well-formed:expecting ' (' at character position 0
Mypt
^

At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:478)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:305)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:230)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:301)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:196)
At Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:772)
At Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:834)
At Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:537)
At Org.springframework.context.support.classpathxmlapplicationcontext.<init> ( classpathxmlapplicationcontext.java:139)
At Org.springframework.context.support.classpathxmlapplicationcontext.<init> ( CLASSPATHXMLAPPLICATIONCONTEXT.JAVA:83)
At Spring.aop.a.demo.main (Demo.java:8)
caused by:org.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' Org.springframework.aop.aspectj.aspectjpointcutadvisor#0 ': Bean instantiation via constructor failed; Nested exception is org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; Nested exception is java.lang.IllegalArgumentException:Pointcut are not well-formed:expecting ' (' at character position 0
Mypt
^

At Org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor (Constructorresolver.java : 275)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor ( abstractautowirecapablebeanfactory.java:1143)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance ( abstractautowirecapablebeanfactory.java:1046)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:510)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:482)
At Org.springframework.beans.factory.support.abstractbeanfactory$1.getobject (abstractbeanfactory.java:305)
At Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:230)
At Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:301)
At Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:201)
At Org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans ( beanfactoryadvisorretrievalhelper.java:92)
At Org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors ( ABSTRACTADVISORAUTOPROXYCREATOR.JAVA:101)
At Org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip ( aspectjawareadvisorautoproxycreator.java:103)
At Org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation ( abstractautoproxycreator.java:243)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation (abstractautowirecapablebeanfactory.java:988)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation ( abstractautowirecapablebeanfactory.java:959)
At Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:472)
... Ten more
caused By:org.springframework.beans.BeanInstantiationException:Failed to instantiate [ Org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; Nested exception is java.lang.IllegalArgumentException:Pointcut are not well-formed:expecting ' (' at character position 0
Mypt
^

At Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:163)
At Org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate ( simpleinstantiationstrategy.java:122)
At Org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor (Constructorresolver.java : 267)
... More
caused by:java.lang.IllegalArgumentException:Pointcut is not well-formed:expecting ' (' at character position 0
Mypt
^

At Org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression (pointcutparser.java:316)
At Org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression (pointcutparser.java:294)
At Org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression ( aspectjexpressionpointcut.java:207)
At Org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch (Aspectjexpressionpointcut.java : 193)
At Org.springframework.aop.aspectj.AspectJExpressionPointcut.getMethodMatcher (Aspectjexpressionpointcut.java : 176)
At Org.springframework.aop.aspectj.AbstractAspectJAdvice.buildSafePointcut (abstractaspectjadvice.java:187)
At Org.springframework.aop.aspectj.aspectjpointcutadvisor.<init> (aspectjpointcutadvisor.java:51)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
At Sun.reflect.NativeConstructorAccessorImpl.newInstance (nativeconstructoraccessorimpl.java:57)
At Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (delegatingconstructoraccessorimpl.java:45)
At Java.lang.reflect.Constructor.newInstance (constructor.java:526)
At Org.springframework.beans.BeanUtils.instantiateClass (beanutils.java:147)
... More

<!--methods in the method slice class--
<aop:before method= "Before" pointcut-ref= "Mypt"/> Method pointcut-ref not written to

Pointcut isn't well-formed:expecting ' (' at character position 0 Mypt

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.