java.lang.IllegalStateException: Required parameter names not available when parsing pointcut pointcutWithArgs in type org.springframework.aop.aspectj.annotation.NamedPointcutWithArgs

Spring JIRA | Mike Brosnan | 8 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Unit tests fail when building spring 2.5.6 from source. [junit] Running org.springframework.aop.aspectj.annotation.ArgumentBindingTests [junit] Testsuite: org.springframework.aop.aspectj.annotation.ArgumentBindingTests [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 0.337 sec [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 0.337 sec [junit] ------------- Standard Output --------------- [junit] Invoked with transaction @org.springframework.transaction.annotation.Transactional(noRollbackFor=[], rollbackFor=[], readOnly=false, noRollbackForClassName=[], rollbackForClassName=[], isolation=DEFAULT, propagation=REQUIRED, timeout=-1) [junit] ------------- ---------------- --------------- [junit] [junit] Testcase: testBindingInPointcutUsedByAdvice took 0.185 sec [junit] Caused an ERROR [junit] Required parameter names not available when parsing pointcut pointcutWithArgs in type org.springframework.aop.aspectj.annotation.NamedPointcutWithArgs [junit] java.lang.IllegalStateException: Required parameter names not available when parsing pointcut pointcutWithArgs in type org.springframework.aop.aspectj.annotation.NamedPointcutWithArgs [junit] at org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate.getDeclaredPointcuts(Java15ReflectionBasedReferenceTypeDelegate.java:312) [junit] at org.aspectj.weaver.ReferenceType.getDeclaredPointcuts(ReferenceType.java:587) [junit] at org.aspectj.weaver.ResolvedType$7.get(ResolvedType.java:524) [junit] at org.aspectj.weaver.Iterators$3$1.hasNext(Iterators.java:125) [junit] at org.aspectj.weaver.Iterators$3.hasNext(Iterators.java:141) [junit] at org.aspectj.weaver.ResolvedType.findPointcut(ResolvedType.java:534) [junit] at org.aspectj.weaver.patterns.ReferencePointcut.resolveBindings(ReferencePointcut.java:152) [junit] at org.aspectj.weaver.patterns.Pointcut.resolve(Pointcut.java:196) [junit] at org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression(PointcutParser.java:332) [junit] at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:310) [junit] at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:206) [junit] at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193) [junit] at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:174) [junit] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:195) [junit] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:250) [junit] at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:284) [junit] at org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAdvisorsFromAspectInstanceFactory(AspectJProxyFactory.java:120) [junit] at org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAspect(AspectJProxyFactory.java:109) [junit] at org.springframework.aop.aspectj.annotation.ArgumentBindingTests.testBindingInPointcutUsedByAdvice(Unknown Source) [junit] [junit] Testcase: testAnnotationArgumentNameBinding took 0.123 sec [junit] Testcase: testParameterNameDiscoverWithReferencePointcut took 0.001 sec BUILD FAILED /vobs_opensrc/spring/build_base.xml:1514: Tests failed Total time: 9 minutes 21 seconds

    Spring JIRA | 8 years ago | Mike Brosnan
    java.lang.IllegalStateException: Required parameter names not available when parsing pointcut pointcutWithArgs in type org.springframework.aop.aspectj.annotation.NamedPointcutWithArgs
  2. 0

    Unit tests fail when building spring 2.5.6 from source. [junit] Running org.springframework.aop.aspectj.annotation.ArgumentBindingTests [junit] Testsuite: org.springframework.aop.aspectj.annotation.ArgumentBindingTests [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 0.337 sec [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 0.337 sec [junit] ------------- Standard Output --------------- [junit] Invoked with transaction @org.springframework.transaction.annotation.Transactional(noRollbackFor=[], rollbackFor=[], readOnly=false, noRollbackForClassName=[], rollbackForClassName=[], isolation=DEFAULT, propagation=REQUIRED, timeout=-1) [junit] ------------- ---------------- --------------- [junit] [junit] Testcase: testBindingInPointcutUsedByAdvice took 0.185 sec [junit] Caused an ERROR [junit] Required parameter names not available when parsing pointcut pointcutWithArgs in type org.springframework.aop.aspectj.annotation.NamedPointcutWithArgs [junit] java.lang.IllegalStateException: Required parameter names not available when parsing pointcut pointcutWithArgs in type org.springframework.aop.aspectj.annotation.NamedPointcutWithArgs [junit] at org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate.getDeclaredPointcuts(Java15ReflectionBasedReferenceTypeDelegate.java:312) [junit] at org.aspectj.weaver.ReferenceType.getDeclaredPointcuts(ReferenceType.java:587) [junit] at org.aspectj.weaver.ResolvedType$7.get(ResolvedType.java:524) [junit] at org.aspectj.weaver.Iterators$3$1.hasNext(Iterators.java:125) [junit] at org.aspectj.weaver.Iterators$3.hasNext(Iterators.java:141) [junit] at org.aspectj.weaver.ResolvedType.findPointcut(ResolvedType.java:534) [junit] at org.aspectj.weaver.patterns.ReferencePointcut.resolveBindings(ReferencePointcut.java:152) [junit] at org.aspectj.weaver.patterns.Pointcut.resolve(Pointcut.java:196) [junit] at org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression(PointcutParser.java:332) [junit] at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:310) [junit] at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:206) [junit] at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193) [junit] at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:174) [junit] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:195) [junit] at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:250) [junit] at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:284) [junit] at org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAdvisorsFromAspectInstanceFactory(AspectJProxyFactory.java:120) [junit] at org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAspect(AspectJProxyFactory.java:109) [junit] at org.springframework.aop.aspectj.annotation.ArgumentBindingTests.testBindingInPointcutUsedByAdvice(Unknown Source) [junit] [junit] Testcase: testAnnotationArgumentNameBinding took 0.123 sec [junit] Testcase: testParameterNameDiscoverWithReferencePointcut took 0.001 sec BUILD FAILED /vobs_opensrc/spring/build_base.xml:1514: Tests failed Total time: 9 minutes 21 seconds

    Spring JIRA | 8 years ago | Mike Brosnan
    java.lang.IllegalStateException: Required parameter names not available when parsing pointcut pointcutWithArgs in type org.springframework.aop.aspectj.annotation.NamedPointcutWithArgs
  3. 0

    Correct AspectJ Pointcut Expression

    Stack Overflow | 4 years ago | Mokko Field
    java.lang.IllegalStateException: Failed to load ApplicationContext
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Java15ReflectionBasedReferenceTypeDelegate

    beet | 8 years ago | pragneshpanchal
    java.lang.IllegalStateException: Attempted to create Java 1.5 reflection based delegate but org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDe legate was not found on classpath

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Required parameter names not available when parsing pointcut pointcutWithArgs in type org.springframework.aop.aspectj.annotation.NamedPointcutWithArgs

      at org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate.getDeclaredPointcuts()
    2. AspectJ weaver
      PointcutParser.parsePointcutExpression
      1. org.aspectj.weaver.reflect.Java15ReflectionBasedReferenceTypeDelegate.getDeclaredPointcuts(Java15ReflectionBasedReferenceTypeDelegate.java:312)
      2. org.aspectj.weaver.ReferenceType.getDeclaredPointcuts(ReferenceType.java:587)
      3. org.aspectj.weaver.ResolvedType$7.get(ResolvedType.java:524)
      4. org.aspectj.weaver.Iterators$3$1.hasNext(Iterators.java:125)
      5. org.aspectj.weaver.Iterators$3.hasNext(Iterators.java:141)
      6. org.aspectj.weaver.ResolvedType.findPointcut(ResolvedType.java:534)
      7. org.aspectj.weaver.patterns.ReferencePointcut.resolveBindings(ReferencePointcut.java:152)
      8. org.aspectj.weaver.patterns.Pointcut.resolve(Pointcut.java:196)
      9. org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression(PointcutParser.java:332)
      10. org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:310)
      10 frames
    3. Spring AOP
      ArgumentBindingTests.testBindingInPointcutUsedByAdvice
      1. org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:206)
      2. org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193)
      3. org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:174)
      4. org.springframework.aop.support.AopUtils.canApply(AopUtils.java:195)
      5. org.springframework.aop.support.AopUtils.canApply(AopUtils.java:250)
      6. org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:284)
      7. org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAdvisorsFromAspectInstanceFactory(AspectJProxyFactory.java:120)
      8. org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAspect(AspectJProxyFactory.java:109)
      9. org.springframework.aop.aspectj.annotation.ArgumentBindingTests.testBindingInPointcutUsedByAdvice(Unknown Source)
      9 frames