org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rice' defined in class path resource [org/kuali/rice/config/RiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

Kuali JIRA | Mohammed Kousheh | 7 years ago
  1. 0

    Hi, I am getting the following error when trying to deploy Stand Alone Rice 0.9.3 on our research box that has Enterprise Suse with IBM Java1.5 (64bit). It is working on my machine (widows+tomcat5.5 and Sun Java1.6) Please Help 2009-06-18 11:07:09,394 [main] FATAL org.kuali.rice.standalone.StandaloneInitializeListener - Kuali Rice Standalone startup failed! org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rice' defined in class path resource [org/kuali/rice/config/RiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError Caused by: java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:218) at javax.crypto.KeyGenerator.a(Unknown Source) at javax.crypto.KeyGenerator.<init>(Unknown Source) at javax.crypto.KeyGenerator.getInstance(Unknown Source) at org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl.unwrapEncodedKey(DemonstrationGradeEncryptionServiceImpl.java:131) at org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl.setSecretKey(DemonstrationGradeEncryptionServiceImpl.java:156) at org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl.<init>(DemonstrationGradeEncryptionServiceImpl.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:522) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1073) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.kuali.rice.resourceloader.SpringResourceLoader.start(SpringResourceLoader.java:64) at org.kuali.rice.lifecycle.BaseCompositeLifecycle.start(BaseCompositeLifecycle.java:33) at org.kuali.rice.lifecycle.BaseCompositeLifecycle.start(BaseCompositeLifecycle.java:33) at org.kuali.rice.config.RiceConfigurer.start(RiceConfigurer.java:91) at org.kuali.rice.config.RiceConfigurer.afterPropertiesSet(RiceConfigurer.java:81) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:239) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:766) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:562) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:357) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at org.kuali.rice.standalone.StandaloneInitializeListener.contextInitialized(StandaloneInitializeListener.java:123) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.b.<clinit>(Unknown Source) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:196) ... 76 more Caused by: java.security.PrivilegedActionException: java.security.InvalidKeyException: Public key presented not for certificate signature at java.security.AccessController.doPrivileged(AccessController.java:250) ... 79 more Caused by: java.security.InvalidKeyException: Public key presented not for certificate signature at org.bouncycastle.jce.provider.X509CertificateObject.checkSignature(Unknown Source) at org.bouncycastle.jce.provider.X509CertificateObject.verify(Unknown Source) at javax.crypto.b.a(Unknown Source) at javax.crypto.b.access$500(Unknown Source) at javax.crypto.b$0.run(Unknown Source) at java.security.AccessController.doPrivileged(AccessController.java:246) ... 79 more 2009-06-18 11:07:09,397 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/rice-0.9.3-server] - Exception sending context initialized event to listener instance of class org.kuali.rice.standalone.StandaloneInitializeListener java.lang.RuntimeException: Startup failed. Exiting. at org.kuali.rice.standalone.StandaloneInitializeListener.contextInitialized(StandaloneInitializeListener.java:134) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rice' defined in class path resource [org/kuali/rice/config/RiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1148) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:239) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:766) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:562) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:357) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at org.kuali.rice.standalone.StandaloneInitializeListener.contextInitialized(StandaloneInitializeListener.java:123) ... 24 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1073) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.kuali.rice.resourceloader.SpringResourceLoader.start(SpringResourceLoader.java:64) at org.kuali.rice.lifecycle.BaseCompositeLifecycle.start(BaseCompositeLifecycle.java:33) at org.kuali.rice.lifecycle.BaseCompositeLifecycle.start(BaseCompositeLifecycle.java:33) at org.kuali.rice.config.RiceConfigurer.start(RiceConfigurer.java:91) at org.kuali.rice.config.RiceConfigurer.afterPropertiesSet(RiceConfigurer.java:81) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) ... 37 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261) ... 56 more Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) ... 61 more Caused by: java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:218) at javax.crypto.KeyGenerator.a(Unknown Source) at javax.crypto.KeyGenerator.<init>(Unknown Source)

    Kuali JIRA | 7 years ago | Mohammed Kousheh
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rice' defined in class path resource [org/kuali/rice/config/RiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
  2. 0

    Hi, I am getting the following error when trying to deploy Stand Alone Rice 0.9.3 on our research box that has Enterprise Suse with IBM Java1.5 (64bit). It is working on my machine (widows+tomcat5.5 and Sun Java1.6) Please Help 2009-06-18 11:07:09,394 [main] FATAL org.kuali.rice.standalone.StandaloneInitializeListener - Kuali Rice Standalone startup failed! org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rice' defined in class path resource [org/kuali/rice/config/RiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError Caused by: java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:218) at javax.crypto.KeyGenerator.a(Unknown Source) at javax.crypto.KeyGenerator.<init>(Unknown Source) at javax.crypto.KeyGenerator.getInstance(Unknown Source) at org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl.unwrapEncodedKey(DemonstrationGradeEncryptionServiceImpl.java:131) at org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl.setSecretKey(DemonstrationGradeEncryptionServiceImpl.java:156) at org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl.<init>(DemonstrationGradeEncryptionServiceImpl.java:55) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:522) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1073) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.kuali.rice.resourceloader.SpringResourceLoader.start(SpringResourceLoader.java:64) at org.kuali.rice.lifecycle.BaseCompositeLifecycle.start(BaseCompositeLifecycle.java:33) at org.kuali.rice.lifecycle.BaseCompositeLifecycle.start(BaseCompositeLifecycle.java:33) at org.kuali.rice.config.RiceConfigurer.start(RiceConfigurer.java:91) at org.kuali.rice.config.RiceConfigurer.afterPropertiesSet(RiceConfigurer.java:81) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:239) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:766) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:562) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:357) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at org.kuali.rice.standalone.StandaloneInitializeListener.contextInitialized(StandaloneInitializeListener.java:123) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: java.lang.SecurityException: Cannot set up certs for trusted CAs at javax.crypto.b.<clinit>(Unknown Source) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:196) ... 76 more Caused by: java.security.PrivilegedActionException: java.security.InvalidKeyException: Public key presented not for certificate signature at java.security.AccessController.doPrivileged(AccessController.java:250) ... 79 more Caused by: java.security.InvalidKeyException: Public key presented not for certificate signature at org.bouncycastle.jce.provider.X509CertificateObject.checkSignature(Unknown Source) at org.bouncycastle.jce.provider.X509CertificateObject.verify(Unknown Source) at javax.crypto.b.a(Unknown Source) at javax.crypto.b.access$500(Unknown Source) at javax.crypto.b$0.run(Unknown Source) at java.security.AccessController.doPrivileged(AccessController.java:246) ... 79 more 2009-06-18 11:07:09,397 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/rice-0.9.3-server] - Exception sending context initialized event to listener instance of class org.kuali.rice.standalone.StandaloneInitializeListener java.lang.RuntimeException: Startup failed. Exiting. at org.kuali.rice.standalone.StandaloneInitializeListener.contextInitialized(StandaloneInitializeListener.java:134) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:831) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:720) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:448) at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) at org.apache.catalina.startup.Catalina.start(Catalina.java:552) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rice' defined in class path resource [org/kuali/rice/config/RiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1148) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:239) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:766) at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:562) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:357) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at org.kuali.rice.standalone.StandaloneInitializeListener.contextInitialized(StandaloneInitializeListener.java:123) ... 24 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1073) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:835) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:279) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:360) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75) at org.kuali.rice.resourceloader.SpringResourceLoader.start(SpringResourceLoader.java:64) at org.kuali.rice.lifecycle.BaseCompositeLifecycle.start(BaseCompositeLifecycle.java:33) at org.kuali.rice.lifecycle.BaseCompositeLifecycle.start(BaseCompositeLifecycle.java:33) at org.kuali.rice.config.RiceConfigurer.start(RiceConfigurer.java:91) at org.kuali.rice.config.RiceConfigurer.afterPropertiesSet(RiceConfigurer.java:81) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1175) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1145) ... 37 more Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261) ... 56 more Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:100) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) ... 61 more Caused by: java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:218) at javax.crypto.KeyGenerator.a(Unknown Source) at javax.crypto.KeyGenerator.<init>(Unknown Source)

    Kuali JIRA | 7 years ago | Mohammed Kousheh
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rice' defined in class path resource [org/kuali/rice/config/RiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
  3. 0

    How to use DeferredResultProcessingInterceptor in spring

    Stack Overflow | 3 years ago | Rahul
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.handler.MappedInterceptor#1': Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    View Forum Topic

    calstatela.edu | 8 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.filterChains': Cannot resolve reference to bean 'org.springframework.security.web.DefaultSecurityFilterChain#0' while setting bean property 'sourceList' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.DefaultSecurityFilterChain#0': Cannot create inner bean '(inner bean)' of type [org.springframework.security.web.authentication.logout.LogoutFilter] while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#4': Cannot resolve reference to bean 'org.springframework.security.web.authentication.rememberme.PersistentTokenBasedRememberMeServices#0' while setting constructor argument with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.web.authentication.rememberme.PersistentTokenBasedRememberMeServices#0': Cannot create inner bean '(inner bean)' while setting bean property 'userDetailsService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#6': Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Factory method [org.springframework.security.core.userdetails.UserDetailsService org.springframework.security.config.http.UserDetailsServiceFactoryBean.cachingUserDetailsService(java.lang.String)] threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private fpslpc.model.core.dao.UserDao fpslpc.security.UserDetailsServiceImpl.userDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [fpslpc.model.core.dao.UserDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  6. 0

    Brians Java Blog: Spring Web Services Tutorial

    blogspot.com | 5 months ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AccountDetailsService' defined in ServletContext resource [/WEB-INF/config/spring-config.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/apache/ws/commons/schema/resolver/URIResolver

  1. Luka 2 times, last 2 months ago
  2. Piz 14 times, last 4 months ago
  3. Vijayanand Kalyanaraman 1 times, last 7 months ago
12 unregistered visitors
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.BeanCreationException

    Error creating bean with name 'rice' defined in class path resource [org/kuali/rice/config/RiceSpringBeans.xml]: Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postDataLoadEncryptionService' defined in class path resource [KNSSpringBeans.xml]: Cannot resolve reference to bean 'encryptionService' while setting bean property 'encryptionService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encryptionService' defined in class path resource [KNSSpringBeans.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.kuali.rice.core.service.impl.DemonstrationGradeEncryptionServiceImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError

    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean()
  2. Spring Beans
    DefaultListableBeanFactory.getBeansOfType
    1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1148)
    2. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)
    3. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
    4. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:144)
    5. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
    6. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    7. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:239)
    7 frames
  3. Spring Context
    ClassPathXmlApplicationContext.<init>
    1. org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:766)
    2. org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:562)
    3. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:357)
    4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:91)
    5. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:75)
    6. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
    6 frames
  4. org.kuali.rice
    StandaloneInitializeListener.contextInitialized
    1. org.kuali.rice.standalone.StandaloneInitializeListener.contextInitialized(StandaloneInitializeListener.java:123)
    1 frame