Sergey Kozlov created IGNITE-2790: ------------------------------------- Summary: LGPL CacheHibernateStoreExample fails if it runs w/o IDEA Key: IGNITE-2790 URL: https://issues.apache.org/jira/browse/IGNITE-2790 Project: Ignite Issue Type: Bug Components: general Affects Versions: 1.5.0.final Reporter: Sergey Kozlov
1. Build and package examples via maven: {noformat} c:\Work>cd examples c:\Work\examples>mvn clean package -Plgpl {noformat} 2. Copy example jar in {{libs}} directory 3. Run CachePutGetExample to make sure that it works {noformat} c:\Work>c:\java\jdk1.7.0_80\bin\java -cp c:\Work\libs\ *;C:\Work\libs\ignite-indexing\*;C:\Work\libs\ignite-s pring\* org.apache.ignite.examples.datagrid.CachePutGetExample ... [11:04:06] Topology snapshot [ver=1, servers=1, clients=0, C >>> Cache put-get example started. >>> Stored values in cache. Got [key=0, val=0] Got [key=1, val=1] Got [key=2, val=2] Got [key=3, val=3] Got [key=4, val=4] Got [key=5, val=5] Got [key=6, val=6] Got [key=7, val=7] Got [key=8, val=8] Got [key=9, val=9] Got [key=10, val=10] Got [key=11, val=11] Got [key=12, val=12] Got [key=13, val=13] Got [key=14, val=14] Got [key=15, val=15] Got [key=16, val=16] Got [key=17, val=17] Got [key=18, val=18] Got [key=19, val=19] >>> Starting putAll-getAll example. >>> Bulk-stored values in cache. Got entry [key=0, val=bulk-0] Got entry [key=1, val=bulk-1] Got entry [key=2, val=bulk-2] Got entry [key=3, val=bulk-3] Got entry [key=4, val=bulk-4] Got entry [key=5, val=bulk-5] Got entry [key=6, val=bulk-6] Got entry [key=7, val=bulk-7] Got entry [key=8, val=bulk-8] Got entry [key=9, val=bulk-9] Got entry [key=10, val=bulk-10] Got entry [key=11, val=bulk-11] Got entry [key=12, val=bulk-12] Got entry [key=13, val=bulk-13] Got entry [key=14, val=bulk-14] Got entry [key=15, val=bulk-15] Got entry [key=17, val=bulk-17] Got entry [key=16, val=bulk-16] Got entry [key=19, val=bulk-19] Got entry [key=18, val=bulk-18] [11:04:06] Ignite node stopped OK [uptime=00:00:00:254] {noformat} 4. Copy directory {{libs/optional/ignite-hibernate}} in {{libs/}} 5. Run CacheHibernateStoreExample. It fails with ClassNotFoundException: {noformat} c:\Work>c:\java\jdk1.7.0_80\bin\java -cp c:\Work\libs\ *;C:\Work\libs\ignite-indexing\*;C:\Work\libs\ignite-s pring\*;C:\Work\libs\ignite-hibernate\* org.apache.ignite.examples.datagrid.store.hiber nate.CacheHibernateStoreExample [11:06:38] __________ ________________ [11:06:38] / _/ ___/ |/ / _/_ __/ __/ [11:06:38] _/ // (7 7 // / / / / _/ [11:06:38] /___/\___/_/|_/___/ /_/ /___/ [11:06:38] ... [11:06:51] Ignite node started OK (id=16d64392) [11:06:51] Topology snapshot [ver=1, servers=1, clients=0, CPUs=8, heap=3.5GB] >>> Cache store example started. [11:06:51,926][SEVERE][exchange-worker-#49%null%][GridDhtPartitionsExchangeFuture] Failed to reinitialize local partitio ns (preloading will be stopped): GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, minorTopVer=1], n odeId=16d64392, evt=DISCOVERY_CUSTOM_EVT] java.lang.NoClassDefFoundError: org/hibernate/annotations/common/reflection/ReflectionManager at org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.start(CacheHibernateStoreSessionLi stener.java:161) at org.apache.ignite.internal.processors.cache.GridCacheUtils.startStoreSessionListeners(GridCacheUtils.java:171 2) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.start0(GridCacheStoreManagerAd apter.java:213) at org.apache.ignite.internal.processors.cache.store.CacheOsStoreManager.start0(CacheOsStoreManager.java:64) at org.apache.ignite.internal.processors.cache.GridCacheManagerAdapter.start(GridCacheManagerAdapter.java:50) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.startCache(GridCacheProcessor.java:1042) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1639 ) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCachesStart(GridCacheProcessor.java:155 4) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.startCa ches(GridDhtPartitionsExchangeFuture.java:960) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(Gr idDhtPartitionsExchangeFuture.java:523) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePa rtitionExchangeManager.java:1297) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: org.hibernate.annotations.common.reflection.ReflectionManager at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 13 more [11:06:52,014][SEVERE][exchange-worker-#49%null%][GridCachePartitionExchangeManager] Runtime error caught during grid ru nnable execution: GridWorker [name=partition-exchanger, gridName=null, finished=false, isCancelled=false, hashCode=18010 29688, interrupted=false, runner=exchange-worker-#49%null%] java.lang.NullPointerException at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onExchangeDone(GridCacheProcessor.java:1714) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone( GridDhtPartitionsExchangeFuture.java:1113) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone( GridDhtPartitionsExchangeFuture.java:87) at org.apache.ignite.internal.util.future.GridFutureAdapter.onDone(GridFutureAdapter.java:334) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(Gr idDhtPartitionsExchangeFuture.java:877) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePa rtitionExchangeManager.java:1297) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.lang.Thread.run(Thread.java:745) {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)