Error The @annotation pointcut expression is a supported at Java 5 compliance level or above exception resolution

Source: Internet
Author: User

1. Abnormal information

Severity: Exception Sending context initialized event toListener Instance of class orG.springframework.web.context.contextloaderlistenerorg.springframework.beans.factory.beancreationexception: Error Creating Bean withname' Httpconnection ' definedinch file[F:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\timetable\WEB-INF\classes\com\ Benben\timetable\common\httpconnection.class]: Initialization ofBean failed; Nested exception isJava.lang.IllegalArgumentException:Error  the@annotation pointcut Expressi on  isOnly supported atJava5Compliance levelor above     atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:527) atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:456) atorg.springframework.beans.factory.support.abstractbeanfactory$1.GetObject (Abstractbeanfactory.java:294) atOrg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( Defaultsingletonbeanregistry.java:225) atOrg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (Abstractbeanfactory.java:291) atOrg.springframework.beans.factory.support.AbstractBeanFactory.getBean (Abstractbeanfactory.java:193) atOrg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( Defaultlistablebeanfactory.java:585) atOrg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( Abstractapplicationcontext.java:913) atOrg.springframework.context.support.AbstractApplicationContext.refresh (Abstractapplicationcontext.java:464) atOrg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (Contextloader.java:385) atOrg.springframework.web.context.ContextLoader.initWebApplicationContext (Contextloader.java:284) atOrg.springframework.web.context.ContextLoaderListener.contextInitialized (Contextloaderlistener.java:111) atOrg.apache.catalina.core.StandardContext.listenerStart (Standardcontext.java:5016) atOrg.apache.catalina.core.StandardContext.startInternal (Standardcontext.java:5524) atOrg.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java: Max) atOrg.apache.catalina.core.containerbase$startchild.call (Containerbase.java: the the) atOrg.apache.catalina.core.containerbase$startchild.call (Containerbase.java: the $) atJava.util.concurrent.FutureTask.Run(Unknown Source) atJava.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source) atJava.util.concurrent.threadpoolexecutor$worker.Run(Unknown Source) atJava.lang.Thread.Run(Unknown Source) Caused by: java.lang.IllegalArgumentException:Error  the@annotation pointcut Expression isOnly supported atJava5Compliance levelor above     atOrg.aspectj.weaver.tools.PointcutParser.parsePointcutExpression (Pointcutparser.java:317) atOrg.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression ( Aspectjexpressionpointcut.java:207) atOrg.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression ( Aspectjexpressionpointcut.java:193) atOrg.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch (Aspectjexpressionpointcut.java:182) atOrg.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter (Aspectjexpressionpointcut.java:163) atOrg.springframework.aop.support.AopUtils.canApply (Aoputils.java:209) atOrg.springframework.aop.support.AopUtils.canApply (Aoputils.java:263) atOrg.springframework.aop.support.AopUtils.findAdvisorsThatCanApply (Aoputils.java:295) atOrg.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply ( Abstractadvisorautoproxycreator.java:117) atOrg.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors ( Abstractadvisorautoproxycreator.java: the) atOrg.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean ( Abstractadvisorautoproxycreator.java: the) atOrg.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary ( Abstractautoproxycreator.java:359) atOrg.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization ( Abstractautoproxycreator.java:322) atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization (Abstractautowirecapablebeanfactory.java:407) atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( Abstractautowirecapablebeanfactory.java:1461) atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:519)    ... -More May the, - 3: in: -PM Org.apache.catalina.core.StandardContext listenerstart Severity: Exception Sending context initialized event toListener Instance of classCom.benben.timetable.device.component.listener.SocketListenerorg.springframework.beans.factory.BeanCreationException : Error Creating Bean withname' Httpconnection ' definedinch file[F:\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\timetable\WEB-INF\classes\com\ Benben\timetable\common\httpconnection.class]: Initialization ofBean failed; Nested exception isJava.lang.IllegalArgumentException:Error  the@annotation pointcut Expressi on  isOnly supported atJava5Compliance levelor above     atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:527) atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( Abstractautowirecapablebeanfactory.java:456) atorg.springframework.beans.factory.support.abstractbeanfactory$1.GetObject (Abstractbeanfactory.java:294) atOrg.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( Defaultsingletonbeanregistry.java:225) atOrg.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (Abstractbeanfactory.java:291) atOrg.springframework.beans.factory.support.AbstractBeanFactory.getBean (Abstractbeanfactory.java:193) atOrg.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( Defaultlistablebeanfactory.java:585) atOrg.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( Abstractapplicationcontext.java:913) atOrg.springframework.context.support.AbstractApplicationContext.refresh (Abstractapplicationcontext.java:464) atOrg.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (Contextloader.java:385) atOrg.springframework.web.context.ContextLoader.initWebApplicationContext (Contextloader.java:284) atOrg.springframework.web.context.ContextLoaderListener.contextInitialized (Contextloaderlistener.java:111) atOrg.apache.catalina.core.StandardContext.listenerStart (Standardcontext.java:5016) atOrg.apache.catalina.core.StandardContext.startInternal (Standardcontext.java:5524) atOrg.apache.catalina.util.LifecycleBase.start (Lifecyclebase.java: Max) atOrg.apache.catalina.core.containerbase$startchild.call (Containerbase.java: the the) atOrg.apache.catalina.core.containerbase$startchild.call (Containerbase.java: the $) atJava.util.concurrent.FutureTask.Run(Unknown Source) atJava.util.concurrent.ThreadPoolExecutor.runWorker (Unknown Source) atJava.util.concurrent.threadpoolexecutor$worker.Run(Unknown Source) atJava.lang.Thread.Run(Unknown Source) Caused by: java.lang.IllegalArgumentException:Error  the@annotation pointcut Expression isOnly supported atJava5Compliance levelor above     atOrg.aspectj.weaver.tools.PointcutParser.parsePointcutExpression (Pointcutparser.java:317) atOrg.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression ( Aspectjexpressionpointcut.java:207) atOrg.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression ( Aspectjexpressionpointcut.java:193) atOrg.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch (Aspectjexpressionpointcut.java:182) atOrg.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter (Aspectjexpressionpointcut.java:163) atOrg.springframework.aop.support.AopUtils.canApply (Aoputils.java:209) atOrg.springframework.aop.support.AopUtils.canApply (Aoputils.java:263) atOrg.springframework.aop.support.AopUtils.findAdvisorsThatCanApply (Aoputils.java:295) atOrg.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply ( Abstractadvisorautoproxycreator.java:117) atOrg.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors ( Abstractadvisorautoproxycreator.java: the) atOrg.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean ( Abstractadvisorautoproxycreator.java: the) atOrg.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary ( Abstractautoproxycreator.java:359) atOrg.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization ( Abstractautoproxycreator.java:322) atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization (Abstractautowirecapablebeanfactory.java:407) atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( Abstractautowirecapablebeanfactory.java:1461) atOrg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( Abstractautowirecapablebeanfactory.java:519)    ... -More

2. Solve
Degree Niang after, said is org.aspect bag of problem. My bag is 1.6.2 version. Issue resolved after upgrading to version 1.7.3

  <org.aspectj.version>1.6.2</org.aspectj.version>

Into:

  <org.aspectj.version>1.7.3</org.aspectj.version>

Error The @annotation pointcut expression is a supported at Java 5 compliance level or above exception resolution

Related Article

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.