java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • 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
    via by Mike Brosnan,
  • 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
    via by Mike Brosnan,
  • Correct AspectJ Pointcut Expression
    via Stack Overflow by Mokko Field
    ,
    • 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(Java15ReflectionBasedReferenceTypeDelegate.java:312) at org.aspectj.weaver.ReferenceType.getDeclaredPointcuts(ReferenceType.java:587) at org.aspectj.weaver.ResolvedType$7.get(ResolvedType.java:524) at org.aspectj.weaver.Iterators$3$1.hasNext(Iterators.java:125) at org.aspectj.weaver.Iterators$3.hasNext(Iterators.java:141) at org.aspectj.weaver.ResolvedType.findPointcut(ResolvedType.java:534) at org.aspectj.weaver.patterns.ReferencePointcut.resolveBindings(ReferencePointcut.java:152) at org.aspectj.weaver.patterns.Pointcut.resolve(Pointcut.java:196) at org.aspectj.weaver.tools.PointcutParser.resolvePointcutExpression(PointcutParser.java:332) at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:310) at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:206) at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:193) at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:174) at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:195) at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:250) at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:284) at org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAdvisorsFromAspectInstanceFactory(AspectJProxyFactory.java:120) at org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAspect(AspectJProxyFactory.java:109) at org.springframework.aop.aspectj.annotation.ArgumentBindingTests.testBindingInPointcutUsedByAdvice(Unknown Source)
    No Bugmate found.