org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [SchedulerContext]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SchedulerContext' defined in URL /beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobManagerDelegate' defined in class path resource [SchedulerContext.xml]: Cannot resolve reference to bean 'schedulerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactoryBean' defined in class path resource [SchedulerContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor': no matching editors or conversion strategy found

Terracotta Project Issue Tracker | Bindu Nagesh | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Earlier we used Spring version 2.5.6 . Now due to security vulnerabilities when we need to upgrade to Spring 3.4.2 RELEASE, I get error while trying to get Job Bean as below: RemoteExcepti E CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "getJobNames". Exception data: com.ibm.ejs.container.CreateFailureException: ; nested exception is: org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [SchedulerContext]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SchedulerContext' defined in URL /beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobManagerDelegate' defined in class path resource [SchedulerContext.xml]: Cannot resolve reference to bean 'schedulerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactoryBean' defined in class path resource [SchedulerContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor': no matching editors or conversion strategy found at com.ibm.ejs.container.StatelessBeanO.initialize(StatelessBeanO.java:369) Our bean xml snippet looks as below: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <bean id="workManagerTaskExecutor" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor"> <property name="workManagerName" value="wm/workManagerRef"/> <property name="resourceRef" value="true"/> </bean>

    Terracotta Project Issue Tracker | 3 years ago | Bindu Nagesh
    org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [SchedulerContext]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SchedulerContext' defined in URL /beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobManagerDelegate' defined in class path resource [SchedulerContext.xml]: Cannot resolve reference to bean 'schedulerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactoryBean' defined in class path resource [SchedulerContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor': no matching editors or conversion strategy found
  2. 0

    Earlier we used Spring version 2.5.6 . Now due to security vulnerabilities when we need to upgrade to Spring 3.4.2 RELEASE, I get error while trying to get Job Bean as below: RemoteExcepti E CNTR0019E: EJB threw an unexpected (non-declared) exception during invocation of method "getJobNames". Exception data: com.ibm.ejs.container.CreateFailureException: ; nested exception is: org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [SchedulerContext]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SchedulerContext' defined in URL /beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobManagerDelegate' defined in class path resource [SchedulerContext.xml]: Cannot resolve reference to bean 'schedulerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactoryBean' defined in class path resource [SchedulerContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor': no matching editors or conversion strategy found at com.ibm.ejs.container.StatelessBeanO.initialize(StatelessBeanO.java:369) Our bean xml snippet looks as below: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> <bean id="workManagerTaskExecutor" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor"> <property name="workManagerName" value="wm/workManagerRef"/> <property name="resourceRef" value="true"/> </bean>

    Terracotta Project Issue Tracker | 3 years ago | Bindu Nagesh
    org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [SchedulerContext]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SchedulerContext' defined in URL /beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobManagerDelegate' defined in class path resource [SchedulerContext.xml]: Cannot resolve reference to bean 'schedulerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactoryBean' defined in class path resource [SchedulerContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor': no matching editors or conversion strategy found

    Root Cause Analysis

    1. org.springframework.beans.factory.access.BootstrapException

      Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [SchedulerContext]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SchedulerContext' defined in URL /beanRefContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobManagerDelegate' defined in class path resource [SchedulerContext.xml]: Cannot resolve reference to bean 'schedulerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'schedulerFactoryBean' defined in class path resource [SchedulerContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [org.springframework.scheduling.commonj.WorkManagerTaskExecutor] to required type [java.util.concurrent.Executor] for property 'taskExecutor': no matching editors or conversion strategy found

      at com.ibm.ejs.container.StatelessBeanO.initialize()
    2. com.ibm.ejs
      StatelessBeanO.initialize
      1. com.ibm.ejs.container.StatelessBeanO.initialize(StatelessBeanO.java:369)
      1 frame