Caused by java lang illegalargumentexception error at 0 formal unbound in pointcut

Hi Guys ,

Error Blog 

Hi Guys ,

This blog is about the error    java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut

Problem Statement

unable to start a spring boot application on using annotation based aspect .

Error Details 

error Log

ERROR DETAILS 

Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut 
at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:319) ~[aspectjweaver-1.9.5.jar:na]
at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:227) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.aspectj.AspectJExpressionPointcut.obtainPointcutExpression(AspectJExpressionPointcut.java:198) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:177) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:226) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:289) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:321) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:126) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:95) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:76) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:347) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:299) ~[spring-aop-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:431) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1800) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:595) ~[spring-beans-5.2.4.RELEASE.jar:5.2.4.RELEASE]
… 25 common frames omitted

Error Code 

Please check the aspect class

package com.example.aop;
import org.aspectj.lang.JoinPoint;import org.aspectj.lang.annotation.Aspect;import org.aspectj.lang.annotation.Before;import org.slf4j.LoggerFactory;import org.springframework.beans.factory.annotation.Configurable;import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.slf4j.Logger;import org.springframework.stereotype.Component;
@Component@Aspectpublic class MyAspect {

    private static final Logger LOGGER = LoggerFactory.getLogger(MyAspect.class);

    @Before("execution(* com.example.aop.DemoController.test() )")
    public void check(JoinPoint joinPoint){
        System.out.println("hello"+joinPoint);
        LOGGER.info("hello"+joinPoint);
    }


    @Before("@annotation(CustomAn)")
    public void annotaion(JoinPoint joinPoint,CustomAn  customAn){
        System.out.println("hello custom1"+joinPoint);

        LOGGER.info("hello custom1"+joinPoint);
        LOGGER.info("CustomAn"+customAn);

    }

}

Solution

remove additional parameters in your aspect class . Refer to the highlighted code .

Code Changes 

the aspect class method should not have an additional parameter .

package com.example.aop;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import org.slf4j.Logger;
import org.springframework.stereotype.Component;

@Component@Aspectpublic class MyAspect {

    private static final Logger LOGGER = LoggerFactory.getLogger(MyAspect.class);

    @Before("execution(* com.example.aop.DemoController.test() )")
    public void check(JoinPoint joinPoint){
        System.out.println("hello"+joinPoint);
        LOGGER.info("hello"+joinPoint);
    }


    @Before("@annotation(CustomAn)")
    public void annotaion(JoinPoint joinPoint){
        System.out.println("hello custom1"+joinPoint);

        LOGGER.info("hello custom1"+joinPoint);

    }

}

OUTPUT

2020-03-25 22:31:22.076 DEBUG 18068 — [http-nio-8095-Acceptor] o.apache.tomcat.util.threads.LimitLatch  : Counting up[http-nio-8095-Acceptor] latch=0
2020-03-25 22:31:22.092  INFO 18068 — [main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8095 (http) with context path »
2020-03-25 22:31:22.107  INFO 18068 — [main] com.example.aop.DemoApplication          : Started DemoApplication in 8.303 seconds (JVM running for 9.424)

Thanks for reading . Let me know your thoughts in the comments below    .

#java #spring #spring-boot #aspectj #spring-aop

Вопрос:

Я занимаюсь проектом springboot, который включает в себя логин и учетные записи. Я пытаюсь выполнить @Pointcut все вызовы методов контроллера и проверить информацию для входа, а @Before также вырезать точки, чтобы убедиться, что сеанс существует. Отсюда и код:

 @Aspect
@Component
public class AuthAspect {
    Logger logger = LoggerFactory.getLogger(AuthAspect.class);

    @Pointcut("execution(* show.xianwu.game.frisbeescorer.controller.*.*(..))")
    public void validateLogin(JoinPoint joinPoint) {
        // check the login information
    }

    @Before("validateLogin()")
    public void validateSession(JoinPoint joinPoint) {
        // check the session
    }
}
 

Однако это дает org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'projectingArgumentResolverBeanPostProcessor' defined in class path resource [org/springframework/data/web/config/ProjectingArgumentResolverRegistrar.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut свои результаты .

Удаление validateSession() и @Before делает @Pointcut работу. Как я могу это исправить?

Комментарии:

1. Удалите JoinPoint из своего @Pointcut аннотированного метода.

2. @Power_tile, пожалуйста, будьте настолько вежливы, чтобы оставлять отзывы о комментариях и ответах, которые другие пользователи потратили на написание для вас здесь. В идеале примите адекватный ответ по вашему собственному выбору. Спасибо.

Ответ №1:

Проблема в том, что вы определяете JoinPoint параметр в точечном разрезе. Это относится только к методу рекомендаций, использующему точечный разрез, а не к самому точечному разрезу. Вы все равно не используете его там, потому что точечный разрез никогда не выполняется, метод-это просто пустышка, которую нужно украсить @Poinctut аннотацией. Итак, чего ты хочешь, так это:

 @Pointcut("execution(* show.xianwu.game.frisbeescorer.controller.*.*(..))")
public void validateLogin() {
    // check the login information
}
 

Кроме того (и не имеет отношения к вашей проблеме), .*.* это довольно специфично и соответствует только методу в классе, который точно находится в пакете show.xianwu.game.frisbeescorer.controller . Если вы также хотите включить классы в подпакеты, .. в данном случае вместо этого используйте синтаксис show.xianwu.game.frisbeescorer.controller..* .

Ответ №2:

Поскольку вы работаете над проектом на основе Springboot, я рекомендую вам использовать функции безопасности Spring или другие системы авторизации и аутентификации, такие как Shiro.

Если вы все равно не хотите использовать ни один из них, вы можете использовать @ModelAttributes в суперклассе для вызова метода до вызова любого метода контроллера.

 @Controller
public class ExampleController extends BaseController {...}
 
 public class BaseController {
    @ModelAttribute
    public void invokeBefore(HttpServletRequest request,
                        HttpServletResponse response) {
         // Check the auth info (e.g., Authorization header) of the request.
    }
}
 

Кроме того, по моему опыту, это плохая практика для непосредственного использования @Pointcut в приложении SpringBoot. Вместо этого используйте настроенную аннотацию Spring.

Комментарии:

1. Проверки подлинности и т. Д. Не относятся к контроллеру, они должны либо находиться в фильтре, который будет выполняться задолго до чего-либо еще, либо применяться через AOP. Это слишком легко ломается. Единственное, что хорошо, — это использовать Spring Security, которая является проверенной и проверенной платформой, не пытайтесь внедрить свое собственное решение для обеспечения безопасности.

2. Правда. В этом я согласен с мсье Дейном. Как правило, если позволяет время, я предпочитаю иметь отдельное приложение шлюза, где я могу выполнять аутентификацию и авторизацию в фильтрах. Даже если мне придется поместить все в одно приложение Springboot, я бы использовал Shiro для фильтрации запросов до того, как какой-либо запрос попадет на контроллеры.

3. Это не отвечает на вопрос ОП.

Содержание

  1. JAMon API Discussion
  2. Forums
  3. ::0 formal unbound in pointcut
  4. IllegalArgumentException « Exception « Spring Q&A
  5. 1. Why is Java giving me an IllegalArgumentException? stackoverflow.com
  6. 4. java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut stackoverflow.com
  7. 5. Cache Abstraction IllegalArgumentException when debug symbols off forum.springsource.org
  8. 6. java.lang.IllegalArgumentException forum.springsource.org
  9. 7. DateTimeFormat — IllegalArgumentException forum.springsource.org
  10. 8. Errrorrr :java.lang.IllegalArgumentException: Cannot parse date value «-1» for «Expir forum.springsource.org
  11. 9. IllegalArgumentException in CustomizableTraceInterceptor forum.springsource.org
  12. 10. IllegalArgumentException on Tomcat startup forum.springsource.org
  13. 11. Understanding an IllegalArgumentException forum.springsource.org
  14. 13. Spring -Weblogic java.lang.IllegalArgumentException forum.springsource.org
  15. 14. IllegalArgumentException when referencing another pointcut forum.springsource.org
  16. 15. Why IllegalArgumentException thrown by InitializingBeans? forum.springsource.org
  17. 16. JUnit test gets IllegalArgumentException forum.springsource.org
  18. 17. java.lang.IllegalArgumentException: No matching editors or conversion forum.springsource.org
  19. 18. IllegalArgumentException during aspect method invoke forum.springsource.org
  20. 19. causes IllegalArgumentException on Resin only forum.springsource.org
  21. 20. IllegalArgumentException occurred calling getter method forum.springsource.org
  22. 21. java.lang.IllegalArgumentException: Location pattern must not be null forum.springsource.org
  23. 22. java.lang.IllegalArgumentException forum.springsource.org
  24. 23. + => Cglib IllegalArgumentException forum.springsource.org
  25. 24. RMI Problem, java.lang.IllegalArgumentException forum.springsource.org
  26. 25. java.lang.IllegalArgumentException forum.springsource.org
  27. 26. TransactionProxy + Validator: IllegalArgumentException forum.springsource.org
  28. 27. [XT Ajax] IllegalArgumentException: setAttribute: Non-serializable attribut forum.springsource.org
  29. 28. java.lang.IllegalArgumentException: Removing a detached instance forum.springsource.org
  30. 29. $Proxy IllegalArgumentException forum.springsource.org
  31. 30. ‘IllegalArgumentException: SOAPElement expected’ with XmlBeans forum.springsource.org
  32. 31. java.lang.IllegalArgumentException: Superclass has no null constructors but no argume forum.springsource.org
  33. 32. IllegalArgumentException occurred calling getter forum.springsource.org
  34. 33. java.lang.IllegalArgumentException: Location pattern must not be null forum.springsource.org
  35. 34. java.lang.IllegalArgumentException: forum.springsource.org
  36. 35. java.lang.IllegalArgumentException: ‘items’ must not be null forum.springsource.org
  37. 37. IllegalArgumentException: name binding only allowed in target, this, and args pcds forum.springsource.org
  38. 38. Validation — Compare 2 Dates — IllegalArgumentException forum.springsource.org
  39. 39. IllegalArgumentException when creating FixedLengthTokenizer forum.springsource.org
  40. 40. Urgent Help Needed: java.lang.IllegalArgumentException: Cannot locate BeanDefinitionD forum.springsource.org
  41. 41. IllegalArgumentException trying to run PetClinicClientServer forum.springsource.org
  42. 42. IllegalArgumentException at WebSphereUowTransactionManager forum.springsource.org
  43. 44. java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] forum.springsource.org
  44. 45. IllegalArgumentException: ServletContext must not be null forum.springsource.org
  45. 46. Side effect of loglevel: java.lang.IllegalArgumentException: step execution is expect forum.springsource.org
  46. 47. HELP: java.lang.IllegalArgumentException does not support command class forum.springsource.org
  47. 49. Aspect code not working — IllegalArgumentException forum.springsource.org
  48. 50. @RequestMapping java.lang.IllegalArgumentException forum.springsource.org
  49. 51. java.lang.IllegalArgumentException: Cannot subclass final class class $Proxy112 forum.springsource.org
  50. 52. Error: IllegalArgumentException: Original must not be null forum.springsource.org
  51. 53. IllegalArgumentException: Cannot convert value of type [java.lang.String] to required forum.springsource.org
  52. 54. IllegalArgumentException at FilterInvocationDefinitionSource forum.springsource.org
  53. 55. IllegalArgumentException: class is not an enhanced class forum.springsource.org
  54. 56. IllegalArgumentException: error wildcard type pattern not allowed, must use type name forum.springsource.org
  55. 57. IllegalArgumentException: Method must not be null forum.springsource.org
  56. 58. IllegalArgumentException with ApplicationContextAware + Proxy forum.springsource.org

JAMon API Discussion

Forums

::0 formal unbound in pointcut

I am currntly fighting to get Jamon working with my project and after the problem with the missing aspectjrt in TOMCAT/lib has been solved, now I get the following exception at the tomcat start:

here is the relevant section from my web.beans.xml (spring-aop-3.0.xsd used):

The ProcessServiceImpl is provided in another Jar but that shouldn’t be a problem I suppose.

The aspectjrt (and also aspectjweaver) version is 1.6.12. The Jamon version is the 2.81.

Thanks for any input.

Try to make your file as similar to this one that i used for testing. For example don’t pass any arguments to the jamonaspect, and use beanid instead of the pointcut expression (pick one bean to monitor). If that works then add back the pointcut expression. Let me know how that works.

thanks for the quick response. It doesn’t work neither via beanId resolution. I have added now the aop-config to the original beans.xml where my service is provided, however, without effect. I get the same exception.

Here is the whole stack trace:

did you remove the properties you are passing to jamonAspect.

Yes — I commented these three lines

On Tue, Apr 19, 2016 at 10:14 AM, Steve Souza stevesouza@users.sf.net
wrote:

did you remove the properties you are passing to jamonAspect.

Sent from sourceforge.net because you indicated interest in

To unsubscribe from further messages, please visit

Please post your full spring xml. In my tests in maven I used 4.0.2.RELEASE

Note the stacktrace says there is something wrong in the constructor argument.

I have limited time today to look at this so anything you can do try and post the info in this forum would be helpful.

Источник

IllegalArgumentException « Exception « Spring Q&A

1. Why is Java giving me an IllegalArgumentException? stackoverflow.com

I’m using dwr and spring and I get this error: I found nothing helpful on Google, do you know why I’m getting this error? i am getting .

4. java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut stackoverflow.com

Thinker.java

package springdemo2; public interface Thinker

package springdemo2; public class Volunteer .

5. Cache Abstraction IllegalArgumentException when debug symbols off forum.springsource.org

Cache Abstraction IllegalArgumentException when debug symbols off I have been working with Spring Cache Abstraction in 3.1.0.M1. I’m using the @Cacheable annotation on a target method like so: @Cacheable(value=»books», key=»#name») public .

6. java.lang.IllegalArgumentException forum.springsource.org

java.lang.IllegalArgumentException:Cannot convert java.lang.String to java.sql.Date Hi i am getting above exception when inserting the values in the database, the detailed exception is, UserVO Constructor. Apr 26, 2011 1:54:36 PM org.apache.catalina.core.StandardWrapperValve invoke .

7. DateTimeFormat — IllegalArgumentException forum.springsource.org

DateTimeFormat — IllegalArgumentException In my domain class I have: Code: @NotNull @DateTimeFormat(iso=ISO.DATE) @Type(type=»org.jadira.usertype.dateandtime.joda.PersistentLocalDate») private LocalDate visit_date; If I enter a correctly formatted date eg. 01/01/2010 all is ok. And if I .

8. Errrorrr :java.lang.IllegalArgumentException: Cannot parse date value «-1» for «Expir forum.springsource.org

Dec 1st, 2011, 05:56 AM #1 adarshgp.nie View Profile View Forum Posts Private Message Member Join Date Nov 2011 Posts 31 Errrorrr :java.lang.IllegalArgumentException: Cannot parse date value «-1» for «Expir I .

9. IllegalArgumentException in CustomizableTraceInterceptor forum.springsource.org

IllegalArgumentException in CustomizableTraceInterceptor Just want to point out a problem with the org.springframework.aop.interceptor.CustomizableTr aceInterceptor We used it the following way: Code:

10. IllegalArgumentException on Tomcat startup forum.springsource.org

IllegalArgumentException on Tomcat startup Hello, When adding an acl voter to my decisionVoters in the accessDecisionManager, I always get a Code: java.lang.IllegalArgumentException: AccessDecisionManager does not support secure object class: class net.sf.acegisecurity.intercept.web.FilterInvocation .

11. Understanding an IllegalArgumentException forum.springsource.org

Understanding an IllegalArgumentException I have a view that ties several tables together. The H3 XML mapping: Code: forum.springsource.org

IllegalArgumentException during system shutdown Hello, We have a Interceptor that does performance logging. It simply logs a record before and after a method call. It works fine everwhere with one exception. .

13. Spring -Weblogic java.lang.IllegalArgumentException forum.springsource.org

Spring -Weblogic java.lang.IllegalArgumentException Hi, I’m trying to set defaultdestination for jmsTemplate and is giving me Failed to convert property value of type [weblogic.jms.client.JMSConnectionFactory] to required type [javax.jms.Destination] for property ‘defaultDestination’ Can .

14. IllegalArgumentException when referencing another pointcut forum.springsource.org

Aug 30th, 2006, 09:40 AM #1 bemmi View Profile View Forum Posts Private Message Junior Member Join Date Aug 2006 Posts 8 IllegalArgumentException when referencing another pointcut I get an IllegalArgumentException .

15. Why IllegalArgumentException thrown by InitializingBeans? forum.springsource.org

Why IllegalArgumentException thrown by InitializingBeans? I am curious why many of the Spring classes that implement the InitializingBean interface throw exceptions of type IllegalArgumentException rather than some Spring-specific InitializationException. I realize .

16. JUnit test gets IllegalArgumentException forum.springsource.org

JUnit test gets IllegalArgumentException I am attempting to write JUnit test case for an application that is currently implemented as a servlet. The JUnit test case extends AbstractDependencyInjectionSpringContextTests overriding getConfigLocations(). I .

17. java.lang.IllegalArgumentException: No matching editors or conversion forum.springsource.org

java.lang.IllegalArgumentException: No matching editors or conversion Hi Im getting this error when trying to load up my page, anyone know what i might doing wrong? regards Prinsinn org.springframework.beans.factory.BeanCreationExce ption: Error creating .

18. IllegalArgumentException during aspect method invoke forum.springsource.org

IllegalArgumentException during aspect method invoke Using: Spring 2.0.1 JDK: 1.5 update 9 I’m stuck with an aspect problem which i doesn’t seem to work for me. Any help would be appreciated. .

19. causes IllegalArgumentException on Resin only forum.springsource.org

causes IllegalArgumentException on Resin only Hi I have in my applicationContext.xml. Only on Resin, I am getting the following error: org.springframework.beans.factory.BeanDefinitionSt oreException: Unexpected exception parsing XML document from ServletContext .

20. IllegalArgumentException occurred calling getter method forum.springsource.org

Jan 19th, 2007, 04:26 PM #1 mail2bansi View Profile View Forum Posts Private Message Senior Member Join Date May 2006 Posts 142 IllegalArgumentException occurred calling getter method Hibernate version: 3.1.2 Mapping .

21. java.lang.IllegalArgumentException: Location pattern must not be null forum.springsource.org

Feb 8th, 2007, 08:07 AM #1 garethwebber View Profile View Forum Posts Private Message Junior Member Join Date Feb 2007 Posts 7 java.lang.IllegalArgumentException: Location pattern must not be null Hi, I .

22. java.lang.IllegalArgumentException forum.springsource.org

Feb 12th, 2007, 02:45 PM #1 tan1981 View Profile View Forum Posts Private Message Junior Member Join Date Feb 2007 Posts 5 java.lang.IllegalArgumentException Hi, I am trying to create a Form .

23. + => Cglib IllegalArgumentException forum.springsource.org

24. RMI Problem, java.lang.IllegalArgumentException forum.springsource.org

RMI Problem, java.lang.IllegalArgumentException Hey, has anyone an idea what this error msg means? Code: Exception in thread «main» org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘remoteInfoBeanRMI’ defined in class path resource [a.xml]: .

25. java.lang.IllegalArgumentException forum.springsource.org

Jun 16th, 2007, 04:28 PM #1 thomas2004 View Profile View Forum Posts Private Message Senior Member Join Date Jun 2007 Posts 159 java.lang.IllegalArgumentException My entity vo looks as follow: Code: package .

26. TransactionProxy + Validator: IllegalArgumentException forum.springsource.org

TransactionProxy + Validator: IllegalArgumentException Hi everyone, I just refactored all Hibernate Daos to run through the openSessionInViewInterceptor to enable lazy-loading now everywhere. It all works fine except of the password change .

27. [XT Ajax] IllegalArgumentException: setAttribute: Non-serializable attribut forum.springsource.org

[XT Ajax] IllegalArgumentException: setAttribute: Non-serializable attribut Hi, Getting an exception due to non-serializable attribute. Come from where the errors are stored in the Session here (from DefaultValidationHandler.java): private void putNewErrors(AjaxSubmitEvent event, .

28. java.lang.IllegalArgumentException: Removing a detached instance forum.springsource.org

Aug 23rd, 2007, 10:15 PM #1 tirzaman View Profile View Forum Posts Private Message Junior Member Join Date Aug 2007 Posts 18 java.lang.IllegalArgumentException: Removing a detached instance Environment Spring 2, .

29. $Proxy IllegalArgumentException forum.springsource.org

$Proxy IllegalArgumentException I’m trying to inject a LocalSessionFactoryBean into another bean via dependency injection, and I am getting: Code: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘APSHibernateTemplateWrapper’ defined in ServletContext resource [/WEB-INF/hibernate-config.xml]: .

30. ‘IllegalArgumentException: SOAPElement expected’ with XmlBeans forum.springsource.org

‘IllegalArgumentException: SOAPElement expected’ with XmlBeans Hi, I use XmlBeans (2.3.0) as a (un)marshaller in Spring Web Services. A request is properly processed, but returned response causes: Code: 2007-09-23 17:41:41,015 DEBUG [org.myname.webservice.ChangeUserPasswordMarshallingEndpoint] .

31. java.lang.IllegalArgumentException: Superclass has no null constructors but no argume forum.springsource.org

java.lang.IllegalArgumentException: Superclass has no null constructors but no argume I am using Spring 2.0 with Hibernate 3.0/JPA. I am getting following error when creating a POJO class. java.lang.IllegalArgumentException: Superclass has no .

32. IllegalArgumentException occurred calling getter forum.springsource.org

Oct 5th, 2007, 03:40 PM #1 bscribner View Profile View Forum Posts Private Message Junior Member Join Date Oct 2007 Posts 2 IllegalArgumentException occurred calling getter Hi I’m currently having a .

33. java.lang.IllegalArgumentException: Location pattern must not be null forum.springsource.org

Oct 23rd, 2007, 07:40 AM #1 naveentsnts View Profile View Forum Posts Private Message Junior Member Join Date Jun 2007 Posts 5 java.lang.IllegalArgumentException: Location pattern must not be null Hello All, .

34. java.lang.IllegalArgumentException: forum.springsource.org

java.lang.IllegalArgumentException: Hi , I am trying to execute a stored procedure from Ibatis sql map and getting this exception » java.lang.IllegalArgumentException». Code : JAVA Map map = new HashMap(); map.put(«Single_Sign_on»,»SR22473″); BMSAuthorizationTOList .

35. java.lang.IllegalArgumentException: ‘items’ must not be null forum.springsource.org

java.lang.IllegalArgumentException: ‘items’ must not be null Getting the following error when trying to submit a form with a forum.springsource.org

Mar 11th, 2008, 06:59 AM #1 sandrine View Profile View Forum Posts Private Message Member Join Date Feb 2008 Posts 41 java.lang.IllegalArgumentException when exit code is NOOP Hi, I have a .

37. IllegalArgumentException: name binding only allowed in target, this, and args pcds forum.springsource.org

Mar 21st, 2008, 12:58 PM #1 Helena View Profile View Forum Posts Private Message Member Spring Team Join Date Dec 2007 Posts 90 IllegalArgumentException: name binding only allowed in target, this, .

38. Validation — Compare 2 Dates — IllegalArgumentException forum.springsource.org

Validation — Compare 2 Dates — IllegalArgumentException Hi, i what to compare two dates. @RegExp(applyIf=»teilStundungVon HAS TEXT and teilStundungBis HAS TEXT and teilStundungVon => teilStundungBis»,value=»^\d<2>\.\d<2>\.\d<4>$ «, message=»Datumseingabe nicht korrekt») private Date .

39. IllegalArgumentException when creating FixedLengthTokenizer forum.springsource.org

IllegalArgumentException when creating FixedLengthTokenizer I have a FixedLengthTokenizer for a FlatFileItemReader like so: Code:

40. Urgent Help Needed: java.lang.IllegalArgumentException: Cannot locate BeanDefinitionD forum.springsource.org

I am trying to implement an object that needs to be globalSession scoped (Portlet). When I add the following bean definition to my context I receive the following error: java.lang.IllegalArgumentException: Cannot .

41. IllegalArgumentException trying to run PetClinicClientServer forum.springsource.org

Jun 10th, 2008, 08:50 AM #1 dexter View Profile View Forum Posts Private Message Junior Member Join Date Jun 2008 Posts 3 IllegalArgumentException trying to run PetClinicClientServer Hi, I’m trying to .

42. IllegalArgumentException at WebSphereUowTransactionManager forum.springsource.org

Hi I am using Spring 2.5.5 and WAS v6.1 . I describe following configuration, Code: forum.springsource.org

java.lang.IllegalArgumentException: ExecutionId must not be null I upgraded to Spring Batch 1.1.0 and ran a test that throws a runtime exception in my item writer. I can’t see why this would .

44. java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] forum.springsource.org

java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] HI, I face the problem when try to use the fixed length flat file parser. THe error is Code: Caused by: java.lang.IllegalArgumentException: Cannot convert .

45. IllegalArgumentException: ServletContext must not be null forum.springsource.org

IllegalArgumentException: ServletContext must not be null I’m getting the following error if i use the spring form tag. Please help. I’m stuck with this forever error. Nested Exception is java.lang.IllegalArgumentException: ServletContext .

46. Side effect of loglevel: java.lang.IllegalArgumentException: step execution is expect forum.springsource.org

Side effect of loglevel: java.lang.IllegalArgumentException: step execution is expect Dear forum I experience an exceptional behavior with spring-batch-1.1.2-RELEASE. It’s hard for me to explain/understand the situation so i attached an eclipse .

47. HELP: java.lang.IllegalArgumentException does not support command class forum.springsource.org

HELP: java.lang.IllegalArgumentException does not support command class Hi,everyone: i’m studying spring controller and get the exception when i try to validate a SimpleFormController with XML based validator. the springweb-servlet.xml : forum.springsource.org

java.lang.IllegalArgumentException: bundle context should be set before refreshing th Hi, When I start my Web / OSGI project using Spring DM servlet on my OSGI server, I receive the following error .

49. Aspect code not working — IllegalArgumentException forum.springsource.org

Hi All, I am new to AOP so apologies if this is trivial — but have done a search and tried a few things out and unfortunately no success. I’m getting .

50. @RequestMapping java.lang.IllegalArgumentException forum.springsource.org

@RequestMapping java.lang.IllegalArgumentException When i try to replace a parameter of type Model(or ModelMap etc) with a scala class that simply extends the ModelMap class, an «java.lang.IllegalArgumentException: argument type mismatch» that is .

51. java.lang.IllegalArgumentException: Cannot subclass final class class $Proxy112 forum.springsource.org

java.lang.IllegalArgumentException: Cannot subclass final class class $Proxy112 When i am traying to use both the AOP logging and transaction (TransactionProxyFactoryBean) while deploing i am getting error an ‘forecastProcess’ while setting bean .

52. Error: IllegalArgumentException: Original must not be null forum.springsource.org

Error: IllegalArgumentException: Original must not be null Hi! My name is Bruno I am brasilian and I’ll try put my question here. (My english is not so good) Well, I am .

53. IllegalArgumentException: Cannot convert value of type [java.lang.String] to required forum.springsource.org

IllegalArgumentException: Cannot convert value of type [java.lang.String] to required I have a Date data type in form and when I try to input this dateChanged is of data type Date which .

54. IllegalArgumentException at FilterInvocationDefinitionSource forum.springsource.org

IllegalArgumentException at FilterInvocationDefinitionSource I am trying to figure out Spring filters. The first filter I added is httpSessionIntegrationFilter. Below is my entry the spring-config.xml file. I am getting an IllegalArgumentException when .

55. IllegalArgumentException: class is not an enhanced class forum.springsource.org

I`m trying to test Spring 3.0RC1 with jsf 1.2. I`m testing Glassfish v3 with OSGI and Equinox. When i deploing my webapp, Spring tries to create scoped proxy of one of .

56. IllegalArgumentException: error wildcard type pattern not allowed, must use type name forum.springsource.org

Please review the following code: Code: package com.simple.aspect.system; @Aspect public class SystemArchitectureAspect < @Pointcut(«witin(com.simple.web..*)») public void inWebLayer() <>@Pointcut(«within(com.simple.aspect..*)») public void inAspectLayer() <> @Pointcut(«execution(* com.simple..*.*(..)) && !inAspectLayer()») public void allOperations() <> .

57. IllegalArgumentException: Method must not be null forum.springsource.org

Feb 4th, 2010, 01:55 PM #1 Barbidure View Profile View Forum Posts Private Message Junior Member Join Date Nov 2009 Posts 6 IllegalArgumentException: Method must not be null Hello, I try .

58. IllegalArgumentException with ApplicationContextAware + Proxy forum.springsource.org

IllegalArgumentException with ApplicationContextAware + Proxy Hi All, I get an exception when implementing ApplicationContextAware when proxies are used. Without ApplicationContextAware it works. Without proxy it works too. It has been reproduced .

Источник

I am trying to run @Pointcut with @After but got the below error.

 java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut 

at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:316)

at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:207)

at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:193)

at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:182)

at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:163)

at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:209)

at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:263)

at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:295)

at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)

at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)

at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)

at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)

at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1461)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)

… 9 more

Thinker.java

package springdemo2;

public interface Thinker {
    void thinkOfSomething(String thoughts); 
}

Volunteer.java

package springdemo2;

public class Volunteer implements Thinker{
    private String thoughts;

    @Override
    public void thinkOfSomething(String thoughts) {
        this.thoughts=thoughts;
    }

    public String getThoughts(){
        return thoughts;
    }
}

MindReader.java

package springdemo2;

public interface MindReader {
    void interceptThoughts(String thoughts);

    String getThoughts();
}

Magician.java

package springdemo2;

import org.aspectj.lang.annotation.Aspect; 
import org.aspectj.lang.annotation.Before; 
import org.aspectj.lang.annotation.Pointcut;

@Aspect 
public class Magician implements MindReader {

    private String thoughts;

    @Pointcut("execution(* springdemo2."
            + "Thinker.thinkOfSomething(String)) and args(thoughts)")
    public void thinking(String thoughts){
    }

    @Override
    @Before("thinking(thoughts)")
    public void interceptThoughts(String thoughts) {
        this.thoughts=thoughts;
        System.out.println("Advice method intercepted Thoughts..."+thoughts);
    }

    @Override
    public String getThoughts() {
        return thoughts;
    }
}

XML(Spring)

I have included <aop:aspectj-autoproxy/> in my XML file.

I got following Error Message

 java.lang.IllegalArgumentException: error at ::0 formal unbound in
 pointcut


dev, Java


11/02/201311/02/2013

2 Minutes

I’m currently studying for my Spring 3 certification and I came along this annoying AOP error:

Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bank' defined in file [C:core-spring-3.2.1.RELEASEworkspaceSpring-certtargetclassesbemycompanypw999aopBank.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut 
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
	at be.mycompany.pw999.aop.Main.main(Main.java:12)
Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut 
	at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:302)
	at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:195)
	at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:181)
	at org.springframework.aop.aspectj.AspectJExpressionPointcut.getClassFilter(AspectJExpressionPointcut.java:162)
	at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:200)
	at org.springframework.aop.support.AopUtils.canApply(AopUtils.java:254)
	at org.springframework.aop.support.AopUtils.findAdvisorsThatCanApply(AopUtils.java:286)
	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findAdvisorsThatCanApply(AbstractAdvisorAutoProxyCreator.java:117)
	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:87)
	at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:68)
	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.wrapIfNecessary(AbstractAutoProxyCreator.java:359)
	at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:322)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:407)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1426)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
	... 11 more

My JoinPoint is:

	public Gold buyGold(double amount) {
		return new Gold(amount / 1300.0);
	}

and my Aspect looks like this:

	@AfterReturning(value="execution(* be.mycompany.pw999..Bank+.buyGold(..))", returning="gld")
	public void logGoldOutput(Joinpoint jp, Gold gld) {
		System.out.println("Gold returned: " + gld.amount);
	}

Believe it or not, the error lies in a single character: it’s org.aspectj.lang.JoinPoint and not org.aopalliance.intercept.Joinpoint .

Published
11/02/201311/02/2013

  • Summary

  • Files

  • Reviews

  • Support

  • Mailing Lists

  • Tickets ▾

    • Bugs
    • Support Requests
    • Patches
    • Feature Requests
  • News

  • Discussion

  • jamonapi

  • Donate

  • Code

Menu

::0 formal unbound in pointcut


Created:

2016-04-19

Updated:

2016-04-20

  • Ernad Besirevic

    Hi,

    I am currntly fighting to get Jamon working with my project and after the problem with the missing aspectjrt in TOMCAT/lib has been solved, now I get the following exception at the tomcat start:

    Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
            at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:301) ~[aspectjweaver-1.6.12.jar:1.6.12]
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:208) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:194) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:183) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
            at org.springframework.aop.aspectj.AspectJExpressionPointcut.getMethodMatcher(AspectJExpressionPointcut.java:169) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
            at org.springframework.aop.aspectj.AbstractAspectJAdvice.buildSafePointcut(AbstractAspectJAdvice.java:187) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
            at org.springframework.aop.aspectj.AspectJPointcutAdvisor.<init>(AspectJPointcutAdvisor.java:51) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_79]
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_79]
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_79]
            at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_79]
            at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
            ... 51 common frames omitted
    

    here is the relevant section from my web.beans.xml (spring-aop-3.0.xsd used):

    <context:component-scan base-package="at.exthex.xdp.web">
            <context:include-filter type="annotation"
                                                       expression="org.aspectj.lang.annotation.Aspect"/>
    </context:component-scan>
    
    <!-- my web beans -->
    
    <aop:aspectj-autoproxy />
    
    <bean id="jamonAspect" class="com.jamonapi.aop.spring.JamonAspect">
        <property name="exceptionBufferListener" value="true" />
        <property name="useArgsWithExceptionDetails" value="true"/>
        <property name="useArgsWithMethodDetails" value="true"/>
    </bean>
    
    <aop:config>
        <aop:pointcut id="jamonMonitoringPointcut"
                      expression="execution(* org.erno.test.engine.ProcessServiceImpl.*(..))" /> 
    
        <aop:aspect id="jamonSpringAspect" ref="jamonAspect">
            <aop:around pointcut-ref="jamonMonitoringPointcut" method="monitor"/>
        </aop:aspect>
    </aop:config>
    

    The ProcessServiceImpl is provided in another Jar but that shouldn’t be a problem I suppose…

    The aspectjrt (and also aspectjweaver) version is 1.6.12. The Jamon version is the 2.81.

    Thanks for any input.

    Regards,erno

  • Steve Souza

    • Ernad Besirevic

      Hi Steve,

      thanks for the quick response. It doesn’t work neither via beanId resolution. I have added now the aop-config to the original beans.xml where my service is provided, however, without effect. I get the same exception…

      Here is the whole stack trace:

      engine-2.18-SNAPSHOT.jar!/spring/engine.beans.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:457) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.initMessageSource(AbstractApplicationContext.java:786) ~[spring-context-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:467) ~[spring-context-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) ~[spring-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) ~[spring-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) [spring-web-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) [catalina.jar:6.0.26]
              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) [catalina.jar:6.0.26]
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) [catalina.jar:6.0.26]
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) [catalina.jar:6.0.26]
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) [catalina.jar:6.0.26]
              at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:905) [catalina.jar:6.0.26]
              at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:740) [catalina.jar:6.0.26]
              at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:500) [catalina.jar:6.0.26]
              at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) [catalina.jar:6.0.26]
              at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) [catalina.jar:6.0.26]
              at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) [catalina.jar:6.0.26]
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) [catalina.jar:6.0.26]
              at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) [catalina.jar:6.0.26]
              at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) [catalina.jar:6.0.26]
              at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) [catalina.jar:6.0.26]
              at org.apache.catalina.core.StandardService.start(StandardService.java:519) [catalina.jar:6.0.26]
              at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) [catalina.jar:6.0.26]
              at org.apache.catalina.startup.Catalina.start(Catalina.java:581) [catalina.jar:6.0.26]
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_79]
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_79]
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_79]
              at java.lang.reflect.Method.invoke(Method.java:606) ~[na:1.7.0_79]
              at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) [bootstrap.jar:6.0.26]
              at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) [bootstrap.jar:6.0.26]
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot resolve reference to bean 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0' while setting bean property 'transactionAttributeSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:86) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:108) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:894) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:866) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:451) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              ... 33 common frames omitted
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:457) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              ... 50 common frames omitted
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
              at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1049) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:953) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:490) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:86) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:101) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator.findCandidateAdvisors(AnnotationAwareAspectJAutoProxyCreator.java:85) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.autoproxy.AspectJAwareAdvisorAutoProxyCreator.shouldSkip(AspectJAwareAdvisorAutoProxyCreator.java:108) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessBeforeInstantiation(AbstractAutoProxyCreator.java:276) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:894) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveBeforeInstantiation(AbstractAutowireCapableBeanFactory.java:866) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:451) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              ... 55 common frames omitted
      Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.AspectJPointcutAdvisor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              ... 71 common frames omitted
      Caused by: java.lang.IllegalArgumentException: error at ::0 formal unbound in pointcut
              at org.aspectj.weaver.tools.PointcutParser.parsePointcutExpression(PointcutParser.java:301) ~[aspectjweaver-1.6.12.jar:1.6.12]
              at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:208) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.AspectJExpressionPointcut.buildPointcutExpression(AspectJExpressionPointcut.java:194) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.AspectJExpressionPointcut.checkReadyToMatch(AspectJExpressionPointcut.java:183) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.AspectJExpressionPointcut.getMethodMatcher(AspectJExpressionPointcut.java:169) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.AbstractAspectJAdvice.buildSafePointcut(AbstractAspectJAdvice.java:187) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at org.springframework.aop.aspectj.AspectJPointcutAdvisor.<init>(AspectJPointcutAdvisor.java:51) ~[spring-aop-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.7.0_79]
              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) ~[na:1.7.0_79]
              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.7.0_79]
              at java.lang.reflect.Constructor.newInstance(Constructor.java:526) ~[na:1.7.0_79]
              at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148) ~[spring-beans-3.2.1.RELEASE.jar:3.2.1.RELEASE]
              ... 73 common frames omitted
      

       

      Last edit: Ernad Besirevic 2016-04-19

  • Steve Souza

    did you remove the properties you are passing to jamonAspect…

    <bean id="jamonAspect" class="com.jamonapi.aop.spring.JamonAspect">
        <property name="exceptionBufferListener" value="true" />
        <property name="useArgsWithExceptionDetails" value="true"/>
        <property name="useArgsWithMethodDetails" value="true"/>
    </bean>
    
    • Ernad Besirevic

      Yes — I commented these three lines

  • Steve Souza

  • Steve Souza

    Please post your full spring xml. In my tests in maven I used <spring.version>4.0.2.RELEASE</spring.version>

    Note the stacktrace says there is something wrong in the constructor argument…

    I have limited time today to look at this so anything you can do try and post the info in this forum would be helpful.

  • Steve Souza

  • Ernad Besirevic

    I am using Spring version 3.2.1 and I cannot upgrade it to the latest one unfortunately… As described already the AspectJ version is 1.6.12… The only thing I can do is to write some small application and try to reproduce the error there. Maybe it is the Spring version…

    • Steve Souza

  • Steve Souza

    That would help to try to reproduce in a small demo app. Also can you try the latest version of jamon?

    • Ernad Besirevic

      The latest jamon version is 2.81.

      • Steve Souza

  • Steve Souza

    Note spring also comes with an jamon aspect. You could try that too.

    class="org.springframework.aop.interceptor.PerformanceMonitorInterceptor">
    vs.
    "com.jamonapi.aop.spring.JamonAspect
    

Log in to post a comment.

Понравилась статья? Поделить с друзьями:
  • Catgenie error 3
  • Categoryinfo ошибка безопасности pssecurityexception fullyqualifiederrorid unauthorizedaccess
  • Categoryinfo ошибка безопасности parentcontainserrorrecordexception
  • Catch websocket error
  • Catch runtime error c