com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: Error creating bean with name 'evaluationManager' defined in class path resource [x]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.MethodInvocationException: Property 'proxyInterfaces' threw exception; nested exception is java.lang.ClassNotFoundException: com.atlassian.confluence.extra.evaluation.EvaluationManager]

Atlassian JIRA | Jens Schumacher | 1 decade ago
  1. 0

    The error below is thrown when you try to load a plugin containing a component wrapped into a spring transaction proxy via the web-ui. The classloader used to load the TransactionProxyFactoryBean doesn't know about the EvaluationManager which will be loaded via the plugin classloader. Therefore the exception will be thrown. 2006-11-14 12:40:58,602 ERROR [com.atlassian.plugin.DefaultPluginManager] addPlugin There was an error loading the descriptor 'Transactionised Evaluation Service' of plugin 'com.atlassian.confluence.extra.evaluation'. Disabling. com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: Error creating bean with name 'evaluationManager' defined in class path resource [x]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.MethodInvocationException: Property 'proxyInterfaces' threw exception; nested exception is java.lang.ClassNotFoundException: com.atlassian.confluence.extra.evaluation.EvaluationManager] at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:106) at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:32) at com.atlassian.confluence.plugin.descriptor.SpringComponentModuleDescriptor.enabled(SpringComponentModuleDescriptor.java:117) at com.atlassian.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:274) at com.atlassian.plugin.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:137) at com.atlassian.plugin.DefaultPluginManager.installPlugin(DefaultPluginManager.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy3.installPlugin(Unknown Source)

    Atlassian JIRA | 1 decade ago | Jens Schumacher
    com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: Error creating bean with name 'evaluationManager' defined in class path resource [x]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.MethodInvocationException: Property 'proxyInterfaces' threw exception; nested exception is java.lang.ClassNotFoundException: com.atlassian.confluence.extra.evaluation.EvaluationManager]
  2. 0

    The error below is thrown when you try to load a plugin containing a component wrapped into a spring transaction proxy via the web-ui. The classloader used to load the TransactionProxyFactoryBean doesn't know about the EvaluationManager which will be loaded via the plugin classloader. Therefore the exception will be thrown. 2006-11-14 12:40:58,602 ERROR [com.atlassian.plugin.DefaultPluginManager] addPlugin There was an error loading the descriptor 'Transactionised Evaluation Service' of plugin 'com.atlassian.confluence.extra.evaluation'. Disabling. com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: Error creating bean with name 'evaluationManager' defined in class path resource [x]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.MethodInvocationException: Property 'proxyInterfaces' threw exception; nested exception is java.lang.ClassNotFoundException: com.atlassian.confluence.extra.evaluation.EvaluationManager] at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:106) at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:32) at com.atlassian.confluence.plugin.descriptor.SpringComponentModuleDescriptor.enabled(SpringComponentModuleDescriptor.java:117) at com.atlassian.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:274) at com.atlassian.plugin.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:137) at com.atlassian.plugin.DefaultPluginManager.installPlugin(DefaultPluginManager.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174) at $Proxy3.installPlugin(Unknown Source)

    Atlassian JIRA | 1 decade ago | Jens Schumacher
    com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: Error creating bean with name 'evaluationManager' defined in class path resource [x]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.MethodInvocationException: Property 'proxyInterfaces' threw exception; nested exception is java.lang.ClassNotFoundException: com.atlassian.confluence.extra.evaluation.EvaluationManager]
  3. 0

    [PLUG-280] ContainerManager.getComponent() does not have access to plugin's component? - Ecosystem JIRA

    atlassian.net | 1 year ago
    com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: No bean named 'approvalAccessor' is defined
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I have a working confluence plugin which I want to migrate to plugins v2 on 2.10.1. I already went through [this tutorial|http://confluence.atlassian.com/display/DOC/Converting%2Ba%2BPlugin%2Bto%2BPlugin%2BFramework%2B2]. On my code, I lookup some my own components (which are define in {{atlassian-plugin.xml}} as {{component}}s) but I cannot longer look them up using {{ContainerManager.getComponent()}} The component is defined as: {noformat} <component name="Approval Accessor" class="com.comalatech.confluence.workflow.DefaultApprovalAccessor" key="approvalAccessor"/> {noformat} But when I do {code} protected ApprovalAccessor getApprovalAccessor() { if (approvalAccessor == null) { approvalAccessor = (ApprovalAccessor) ContainerManager.getComponent("approvalAccessor"); } return approvalAccessor; } {code} I get: {noformat} 2009-02-07 10:38:33,760 ERROR [http-22101-1] [confluence.workflow.helpers.WorkflowHelper] include error -- referer: http://tepoztlan:22101/dashboard.action | url: /display/LIPSUM/Home | userName: roberto | action: viewpage | page: 65539 com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: No bean named 'approvalAccessor' is defined at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:79) at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:32) ... Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'approvalAccessor' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360) at com.atlassian.confluence.setup.ConfluenceListableBeanFactory.getBeanDefinition(ConfluenceListableBeanFactory.java:44) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:914) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:241) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:227) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:75) {noformat} As I said, the plugin works on plugins v1. Am I missing something? Searched for other context or way of instantiating local plugin's components?

    Ecosystem JIRA | 8 years ago | Roberto Dominguez
    com.atlassian.spring.container.ComponentNotFoundException: Failed to find component: No bean named 'approvalAccessor' is defined

    1 unregistered visitors

    Root Cause Analysis

    1. com.atlassian.spring.container.ComponentNotFoundException

      Failed to find component: Error creating bean with name 'evaluationManager' defined in class path resource [x]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.MethodInvocationException: Property 'proxyInterfaces' threw exception; nested exception is java.lang.ClassNotFoundException: com.atlassian.confluence.extra.evaluation.EvaluationManager]

      at com.atlassian.spring.container.SpringContainerContext.getComponent()
    2. com.atlassian.spring
      ContainerManager.getComponent
      1. com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:106)
      2. com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:32)
      2 frames
    3. com.atlassian.confluence
      SpringComponentModuleDescriptor.enabled
      1. com.atlassian.confluence.plugin.descriptor.SpringComponentModuleDescriptor.enabled(SpringComponentModuleDescriptor.java:117)
      1 frame
    4. com.atlassian.plugin
      DefaultPluginManager.installPlugin
      1. com.atlassian.plugin.DefaultPluginManager.addPlugin(DefaultPluginManager.java:274)
      2. com.atlassian.plugin.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:137)
      3. com.atlassian.plugin.DefaultPluginManager.installPlugin(DefaultPluginManager.java:101)
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:284)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:155)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:122)
      3 frames
    7. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
      1 frame
    8. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)
      2 frames
    9. Unknown
      $Proxy3.installPlugin
      1. $Proxy3.installPlugin(Unknown Source)
      1 frame