Announcement Announcement Module
Collapse
No announcement yet.
Error creating bean with name 'jobRepository' - EnumSetConverter : null Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error creating bean with name 'jobRepository' - EnumSetConverter : null

    Can someone give me pointers on what could be the potentail issue herer?

    ERROR support.CommandLineJobRunner - Job Terminated in error: Error creating bean with name 'jobLauncher' defined in class path resource [batch-job-launcher-context.xml]: Cannot resolve reference to bean 'jobRepository' while setting bean property 'jobRepository'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jobRepository' defined in class path resource [batch-job-launcher-context.xml]: Invocation of init method failed; nested exception is com.thoughtworks.xstream.XStream$InitializationExc eption: Could not instatiate converter : com.thoughtworks.xstream.converters.enums.EnumSetC onverter : null - ||
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jobLauncher' defined in class path resource [batch-job-launcher-context.xml]: Cannot resolve reference to bean 'jobRepository' while setting bean property 'jobRepository'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jobRepository' defined in class path resource [batch-job-launcher-context.xml]: Invocation of init method failed; nested exception is com.thoughtworks.xstream.XStream$InitializationExc eption: Could not instatiate converter : com.thoughtworks.xstream.converters.enums.EnumSetC onverter : null
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:275)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:104)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1245)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1010)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:472)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Access Controller.java:224)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:206)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:429)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:728)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:380)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:139)
    at org.springframework.context.support.ClassPathXmlAp plicationContext.<init>(ClassPathXmlApplicationCon text.java:93)
    at com.jpmorgan.tss.pnet.batch.launch.SelfStagingInte grationRunner.getContext(SelfStagingIntegrationRun ner.java:57)
    at com.jpmorgan.tss.pnet.batch.launch.PnetCommandLine JobRunner.getContext(PnetCommandLineJobRunner.java :307)
    at com.jpmorgan.tss.pnet.batch.launch.PnetCommandLine JobRunner.start(PnetCommandLineJobRunner.java:170)
    at com.jpmorgan.tss.pnet.batch.launch.PnetCommandLine JobRunner.main(PnetCommandLineJobRunner.java:510)
    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'jobRepository' defined in class path resource [batch-job-launcher-context.xml]: Invocation of init method failed; nested exception is com.thoughtworks.xstream.XStream$InitializationExc eption: Could not instatiate converter : com.thoughtworks.xstream.converters.enums.EnumSetC onverter : null
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1338)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:473)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Access Controller.java:224)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:380)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 64)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:206)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:261 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:185)
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:164)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:269)
    ... 21 more
    Caused by: com.thoughtworks.xstream.XStream$InitializationExc eption: Could not instatiate converter : com.thoughtworks.xstream.converters.enums.EnumSetC onverter : null
    at com.thoughtworks.xstream.XStream.dynamicallyRegist erConverter(XStream.java:389)
    at com.thoughtworks.xstream.XStream.setupConverters(X Stream.java:372)
    at com.thoughtworks.xstream.XStream.<init>(XStream.ja va:196)
    at com.thoughtworks.xstream.XStream.<init>(XStream.ja va:181)
    at com.thoughtworks.xstream.XStream.<init>(XStream.ja va:169)
    at org.springframework.batch.core.repository.dao.XStr eamExecutionContextStringSerializer.init(XStreamEx ecutionContextStringSerializer.java:68)
    at org.springframework.batch.core.repository.dao.XStr eamExecutionContextStringSerializer.afterPropertie sSet(XStreamExecutionContextStringSerializer.java: 60)
    at org.springframework.batch.core.repository.dao.Jdbc ExecutionContextDao.afterPropertiesSet(JdbcExecuti onContextDao.java:154)
    at org.springframework.batch.core.repository.support. JobRepositoryFactoryBean.createExecutionContextDao (JobRepositoryFactoryBean.java:176)
    at org.springframework.batch.core.repository.support. AbstractJobRepositoryFactoryBean.getTarget(Abstrac tJobRepositoryFactoryBean.java:139)
    at org.springframework.batch.core.repository.support. AbstractJobRepositoryFactoryBean.initializeProxy(A bstractJobRepositoryFactoryBean.java:129)
    at org.springframework.batch.core.repository.support. AbstractJobRepositoryFactoryBean.afterPropertiesSe t(AbstractJobRepositoryFactoryBean.java:135)
    at org.springframework.batch.core.repository.support. JobRepositoryFactoryBean.afterPropertiesSet(JobRep ositoryFactoryBean.java:130)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1369)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1335)
    ... 31 more
    Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:44)
    at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:39)
    at java.lang.reflect.Constructor.newInstance(Construc tor.java:516)
    at com.thoughtworks.xstream.XStream.dynamicallyRegist erConverter(XStream.java:386)
    ... 45 more
    Caused by: java.lang.RuntimeException: Could not access java.util.EnumSet.elementType field
    at com.thoughtworks.xstream.core.util.Fields.find(Fie lds.java:18)
    at com.thoughtworks.xstream.converters.enums.EnumSetC onverter.<init>(EnumSetConverter.java:31)
    ... 50 more
Working...
X