You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Yakov Zhdanov (JIRA)" <ji...@apache.org> on 2015/12/15 15:12:46 UTC

[jira] [Updated] (IGNITE-2168) Examples should destroy created caches: SpringBeanExample fails after CacheBinaryAutoStoreExample

     [ https://issues.apache.org/jira/browse/IGNITE-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yakov Zhdanov updated IGNITE-2168:
----------------------------------
    Summary: Examples should destroy created caches: SpringBeanExample fails after CacheBinaryAutoStoreExample  (was: SpringBeanExample fails after CacheBinaryAutoStoreExample)

> Examples should destroy created caches: SpringBeanExample fails after CacheBinaryAutoStoreExample
> -------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-2168
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2168
>             Project: Ignite
>          Issue Type: Bug
>          Components: general
>    Affects Versions: 1.5
>            Reporter: Sergey Kozlov
>            Assignee: Yakov Zhdanov
>             Fix For: 1.6
>
>
> 1. Start remote node with examples/config/example-ignite.xml
> 2. Run DbH2ServerStartup
> 3. Run CacheBinaryAutoStoreExample ()
> 4. Run SpringBeanExample and get the following exception: 
> {noformat}
> >>> Spring bean example started.
> log4j:WARN No appenders could be found for logger (org.springframework.core.env.StandardEnvironment).
> log4j:WARN Please initialize the log4j system properly.
> log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
> [14:22:00]    __________  ________________ 
> [14:22:00]   /  _/ ___/ |/ /  _/_  __/ __/ 
> [14:22:00]  _/ // (7 7    // /  / / / _/   
> [14:22:00] /___/\___/_/|_/___/ /_/ /___/  
> [14:22:00] 
> [14:22:00] ver. 1.5.0-b2#20151215-sha1:0c550aaa
> [14:22:00] 2015 Copyright(C) Apache Software Foundation
> [14:22:00] 
> [14:22:00] Ignite documentation: http://ignite.apache.org
> [14:22:00] 
> [14:22:00] Quiet mode.
> [14:22:00]   ^-- Logging to file 'C:\Work\apache-ignite-fabric-1.5.0-b2-bin\work\log\ignite-0b6a932b.log'
> [14:22:00]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false or "-v" to ignite.{sh|bat}
> [14:22:00] 
> [14:22:00] OS: Windows 7 6.1 amd64
> [14:22:00] VM information: Java(TM) SE Runtime Environment 1.7.0_80-b15 Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 24.80-b11
> [14:22:00] Initial heap size is 254MB (should be no less than 512MB, use -Xms512m -Xmx512m).
> [14:22:01] Configured plugins:
> [14:22:01]   ^-- None
> [14:22:01] 
> [14:22:02] Security status [authentication=off, tls/ssl=off]
> [14:22:03,911][ERROR][main][IgniteKernal] Got exception while starting (will rollback startup routine).
> class org.apache.ignite.IgniteException: Failed to load bean in application context [beanName=h2-example-db, igniteConfig=org.springframework.context.support.ClassPathXmlApplicationContext@7a64f150: startup date [Tue Dec 15 14:21:59 MSK 2015]; root of context hierarchy]
> 	at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:168)
> 	at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:96)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1243)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:774)
> 	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:945)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1659)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1518)
> 	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:974)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:534)
> 	at org.apache.ignite.IgniteSpring.start(IgniteSpring.java:66)
> 	at org.apache.ignite.IgniteSpringBean.afterPropertiesSet(IgniteSpringBean.java:128)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1627)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1564)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:725)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
> 	at org.apache.ignite.examples.misc.springbean.SpringBeanExample.main(SpringBeanExample.java:57)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> Caused by: class org.apache.ignite.IgniteCheckedException: Spring bean with provided name doesn't exist , beanName=h2-example-db]
> 	at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadBeanFromAppContext(IgniteSpringHelperImpl.java:220)
> 	at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:163)
> 	... 29 more
> [14:22:03] Ignite node stopped OK [uptime=00:00:03:696]
> Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySpringBean' defined in class path resource [org/apache/ignite/examples/misc/springbean/spring-bean.xml]: Invocation of init method failed; nested exception is class org.apache.ignite.IgniteCheckedException: Failed to load bean in application context [beanName=h2-example-db, igniteConfig=org.springframework.context.support.ClassPathXmlApplicationContext@7a64f150: startup date [Tue Dec 15 14:21:59 MSK 2015]; root of context hierarchy]
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1568)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:302)
> 	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:229)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:298)
> 	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
> 	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:725)
> 	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
> 	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
> 	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
> 	at org.apache.ignite.examples.misc.springbean.SpringBeanExample.main(SpringBeanExample.java:57)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> Caused by: class org.apache.ignite.IgniteCheckedException: Failed to load bean in application context [beanName=h2-example-db, igniteConfig=org.springframework.context.support.ClassPathXmlApplicationContext@7a64f150: startup date [Tue Dec 15 14:21:59 MSK 2015]; root of context hierarchy]
> 	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:975)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1659)
> 	at org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1518)
> 	at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:974)
> 	at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:534)
> 	at org.apache.ignite.IgniteSpring.start(IgniteSpring.java:66)
> 	at org.apache.ignite.IgniteSpringBean.afterPropertiesSet(IgniteSpringBean.java:128)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1627)
> 	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1564)
> 	... 17 more
> Caused by: class org.apache.ignite.IgniteException: Failed to load bean in application context [beanName=h2-example-db, igniteConfig=org.springframework.context.support.ClassPathXmlApplicationContext@7a64f150: startup date [Tue Dec 15 14:21:59 MSK 2015]; root of context hierarchy]
> 	at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:168)
> 	at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:96)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.createCache(GridCacheProcessor.java:1243)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onKernalStart(GridCacheProcessor.java:774)
> 	at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:945)
> 	... 25 more
> Caused by: class org.apache.ignite.IgniteCheckedException: Spring bean with provided name doesn't exist , beanName=h2-example-db]
> 	at org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadBeanFromAppContext(IgniteSpringHelperImpl.java:220)
> 	at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory.create(CacheJdbcPojoStoreFactory.java:163)
> 	... 29 more
> Process finished with exit code 1
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)