Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D99BB200C3D for ; Tue, 14 Mar 2017 15:46:49 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D85C0160B7C; Tue, 14 Mar 2017 14:46:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 07F6F160B89 for ; Tue, 14 Mar 2017 15:46:48 +0100 (CET) Received: (qmail 84247 invoked by uid 500); 14 Mar 2017 14:46:48 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 84238 invoked by uid 99); 14 Mar 2017 14:46:48 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Mar 2017 14:46:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C908718231E for ; Tue, 14 Mar 2017 14:46:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.651 X-Spam-Level: X-Spam-Status: No, score=0.651 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_NEUTRAL=0.652] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id xt4FG1Ssi_Me for ; Tue, 14 Mar 2017 14:46:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 16CE461C63 for ; Tue, 14 Mar 2017 14:46:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0AE31E0BC8 for ; Tue, 14 Mar 2017 14:46:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 5A5E9243CA for ; Tue, 14 Mar 2017 14:46:42 +0000 (UTC) Date: Tue, 14 Mar 2017 14:46:42 +0000 (UTC) From: "Sergey Kozlov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (IGNITE-2790) LGPL CacheHibernateStoreExample fails if it runs w/o IDEA MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 14 Mar 2017 14:46:50 -0000 [ https://issues.apache.org/jira/browse/IGNITE-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Kozlov resolved IGNITE-2790. ----------------------------------- Resolution: Not A Bug > 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.15#6346)