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 java.lang.reflect.MalformedParameterizedTypeException and below exception when scheduling jobs

Spring JIRA | Bindu Nagesh | 3 years ago
  1. 0

    Hi, We need to upgrade Spring to 3.2.4RELEASE in our project where we use Quartz 1.8.3 version on Websphere AS 8 version. We use org.springframework.scheduling.commonj.WorkManagerTaskExecutor for Thread Management for scheduling jobs. But on Spring Upgrade we get the below exception when starting the Scheduler application: 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 java.lang.reflect.MalformedParameterizedTypeException and below exception when scheduling jobs 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 org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254) 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 My bean definition xml containing the WorkManagerTaskExecutor definition looks as below: <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:task="http://www.springframework.org/schema/task" xmlns:context="http://www.springframework.org/schema/context" xmlns:jee="http://www.springframework.org/schema/jee" xsi:schemaLocation="http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.2.xsd http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.2.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd"> <bean id="workManagerTaskExecutor" class="org.springframework.scheduling.commonj.WorkManagerTaskExecutor"> <property name="workManagerName" value="wm/workManagerRef"/> <property name="resourceRef" value="true"/> </bean> Appreciate a response. Thanks, Bindu

    Spring JIRA | 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 java.lang.reflect.MalformedParameterizedTypeException and below exception when scheduling jobs
  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
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    NullPointerException when running for the first time the stable version

    GitHub | 1 month ago | anthony-o
    org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [ctx]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ctx' defined in URL [jar:file:/CMR/inspectit-cmr.jar!/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 'org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0': Cannot resolve reference to bean 'localPropertiesBean' while setting bean property 'properties'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'localPropertiesBean' defined in class path resource [rocks/inspectit/server/property/PropertyManager.class]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [protected synchronized java.util.Properties rocks.inspectit.server.property.PropertyManager.getProperties()] threw exception; nested exception is java.lang.NullPointerException
  6. 0

    Problem in installing InspectIT

    GitHub | 5 months ago | xiaomutoun
    org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory key [ctx]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ctx' defined in URL [jar:file:/E:/APM%20Tool%20installer/inspectit-cmr.windows.x64/CMR/inspectit-cmr.jar!/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 'info.novatec.inspectit.cmr.jetty.JettyWebApplicationContextInitializer#0' defined in class path resource [spring/spring-context-jetty.xml]: Cannot resolve reference to bean 'servletContext' while setting bean property 'jettyContext'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'servletContext' defined in class path resource [spring/spring-context-jetty.xml]: Cannot resolve reference to bean 'httpServer' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'httpServer' defined in class path resource [spring/spring-context-jetty.xml]: Invocation of init method failed; nested exception is java.net.BindException: Address already in use: JVM_Bind

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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 java.lang.reflect.MalformedParameterizedTypeException and below exception when scheduling jobs

      at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor()
    2. Spring Beans
      ConstructorResolver.autowireConstructor
      1. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:254)
      1 frame