Re: Hibernate connection inspite of jdbc?
yes its pointing the correct folder. Still facing this issue. I think there is problem with hibernate open sesssion which is not mentioned anywhere in program? Session hibSes = ses.attachment(); n mostly it throws error in this statement cache.loadCache(null, 1); it should go to loadcache function of CacheHibernatePersonStore class but it never hits the function. it automatically throws error.. please tell me what is the statement about cache.loadcache()??? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3679.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
Hi Ravi, Do you have IGNITE_HOME environment variable? If so, please make sure it points to the correct folder and that it's the same for all participating processes. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3622.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
yes .. its the same issue -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3618.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
Ravi, Have you tried to launch CacheHibernateStoreExample that is delivered as a part of Ignite bundles and can be located in 'examples\src\main\java-lgpl\..' directory? Try to check everything directly from IDE (like IntellijIdea, Eclipse). Start additional server nodes from IDE as well. -- Denis -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3607.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
i tried adding hibernate jars and its related jars also.. but it stil shows the same error...? any other way to do it through hibernate? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3603.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
Ravi, Ignite is not using Hibernate in this case. It's up to you how to implement the cache store and which version of Hibernate to use within this implementation to access the database. However, the store will not be functional unless you add your version of Hibernate JARs to the classpath. On server nodes you can simply put them into 'libs' folder and they will be picked up by the nodes started with 'ignite.sh' script. You should make sure that all nodes in topology (clients and servers) have only one version of Hibernate. Currently it looks like you have some discrepancies. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3522.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
How would i know which version ignite hibernate is using. as per your example hibernate 3 jar is used so what will be the matching ignite hibernate version of jar??? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3511.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
i resolved that.. now what is java.lang.VerifyError [14:13:29,374][ERROR][exchange-worker-#49%null%][GridDhtPartitionsExchangeFuture] Failed to reinitialize local partitions (preloading will be stopped): GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, minorTopVer=1], nodeId=443dfb42, evt=DISCOVERY_CUSTOM_EVT] java.lang.VerifyError: class net.sf.cglib.core.DebuggingClassWriter overrides final method visit.(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3510.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
Ravi, According to the error below java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session; the Hibernate version that is used on one of the nodes is different from the version used on a node that initiated cache loading (started example). Make sure that Hibernate version is the same on all the nodes. There can be a case that some other external library imported different version from Maven. -- Denis On 3/14/2016 2:30 PM, Ravi Puri wrote: NOW I AM GETTING THIS ERROR ? [17:12:19,118][ERROR][ignite-#7%pub-null%][GridJobWorker] Failed to execute job due to unexpected runtime exception [jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, dep=GridDeployment [ts=1457955739081, depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@32a6faa9, clsLdrId=bddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, userVer=0, loc=true, sampleClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, sesId=addeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, startTime=1457955739081, endTime=9223372036854775807, taskNodeId=25626d3f-89d5-4482-a7ae-73faa09b8eac, clsLdr=sun.misc.Launcher$AppClassLoader@32a6faa9, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=25626d3f-89d5-4482-a7ae-73faa09b8eac, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=null, startTime=1457955739101, endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]], jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac]] java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session; at org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.onSessionStart(CacheHibernateStoreSessionListener.java:178) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.sessionInit0(GridCacheStoreManagerAdapter.java:818) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:479) at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter.localLoadCache(GridDhtCacheAdapter.java:515) at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localLoadCache(IgniteCacheProxy.java:387) at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5716) at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5663) at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1789) at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509) at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6397) at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503) at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:456) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) [17:12:19,281][ERROR][ignite-#7%pub-null%][GridTaskWorker] Failed to obtain remote job result policy for result from ComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=C2 [], sib=GridJobSiblingImpl [sesId=addeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, nodeId=25626d3f-89d5-4482-a7ae-73faa09b8eac, isJobDone=false], jobCtx=GridJobContextImpl [jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, timeoutObj=null, attrs={}], node=TcpDiscoveryNode [id=25626d3f-89d5-4482-a7ae-73faa09b8eac, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 172.17.122.126], sockAddrs=[01HW611909.India.TCS.com/172.17.122.126:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500, /172.17.122.126:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1457955729111, loc=true, ver=1.5.0#20151202-sha1:062d440c, isClient=false], ex=class o.a.i.compute.ComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, dep=GridDeployment [ts=1457955739081, depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@32a6faa9, clsLdrId=bddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, userVer=0, loc=true, sampleClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, pendingUndep
Re: Hibernate connection inspite of jdbc?
NOW I AM GETTING THIS ERROR ? [17:12:19,118][ERROR][ignite-#7%pub-null%][GridJobWorker] Failed to execute job due to unexpected runtime exception [jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, dep=GridDeployment [ts=1457955739081, depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@32a6faa9, clsLdrId=bddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, userVer=0, loc=true, sampleClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, sesId=addeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, startTime=1457955739081, endTime=9223372036854775807, taskNodeId=25626d3f-89d5-4482-a7ae-73faa09b8eac, clsLdr=sun.misc.Launcher$AppClassLoader@32a6faa9, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=25626d3f-89d5-4482-a7ae-73faa09b8eac, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=null, startTime=1457955739101, endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]], jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac]] java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session; at org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.onSessionStart(CacheHibernateStoreSessionListener.java:178) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.sessionInit0(GridCacheStoreManagerAdapter.java:818) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:479) at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter.localLoadCache(GridDhtCacheAdapter.java:515) at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localLoadCache(IgniteCacheProxy.java:387) at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5716) at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5663) at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1789) at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509) at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6397) at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503) at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:456) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) [17:12:19,281][ERROR][ignite-#7%pub-null%][GridTaskWorker] Failed to obtain remote job result policy for result from ComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=C2 [], sib=GridJobSiblingImpl [sesId=addeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, nodeId=25626d3f-89d5-4482-a7ae-73faa09b8eac, isJobDone=false], jobCtx=GridJobContextImpl [jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, timeoutObj=null, attrs={}], node=TcpDiscoveryNode [id=25626d3f-89d5-4482-a7ae-73faa09b8eac, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 172.17.122.126], sockAddrs=[01HW611909.India.TCS.com/172.17.122.126:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500, /172.17.122.126:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1457955729111, loc=true, ver=1.5.0#20151202-sha1:062d440c, isClient=false], ex=class o.a.i.compute.ComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=dddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, dep=GridDeployment [ts=1457955739081, depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@32a6faa9, clsLdrId=bddeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, userVer=0, loc=true, sampleClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, sesId=addeee47351-25626d3f-89d5-4482-a7ae-73faa09b8eac, startTime=1457955739081, endTime=9223372036854775807, taskNodeId=25626d3f-89d5-4482-a7ae-73faa09b8eac, clsLdr=sun.misc.Launcher$AppClassLoader@32a6faa9, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=25626d3f-89d5-4482-a7ae-73faa09b8eac, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=
Re: Hibernate connection inspite of jdbc?
now i got this error [16:34:55,477][ERROR][ignite-#7%pub-null%][GridJobWorker] Failed to execute job due to unexpected runtime exception [jobId=d21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, dep=GridDeployment [ts=1457953495448, depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@7413a356, clsLdrId=b21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, userVer=0, loc=true, sampleClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, sesId=a21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, startTime=1457953495448, endTime=9223372036854775807, taskNodeId=c022f034-e4a4-4d2a-9b98-6f7824de393b, clsLdr=sun.misc.Launcher$AppClassLoader@7413a356, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=c022f034-e4a4-4d2a-9b98-6f7824de393b, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=null, startTime=1457953495459, endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]], jobId=d21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b]] java.lang.NoSuchMethodError: org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session; at org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.onSessionStart(CacheHibernateStoreSessionListener.java:178) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.sessionInit0(GridCacheStoreManagerAdapter.java:818) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:479) at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter.localLoadCache(GridDhtCacheAdapter.java:515) at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localLoadCache(IgniteCacheProxy.java:387) at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5716) at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5663) at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1789) at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509) at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6397) at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503) at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:456) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) [16:34:55,482][ERROR][ignite-#7%pub-null%][GridTaskWorker] Failed to obtain remote job result policy for result from ComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=C2 [], sib=GridJobSiblingImpl [sesId=a21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, jobId=d21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, nodeId=c022f034-e4a4-4d2a-9b98-6f7824de393b, isJobDone=false], jobCtx=GridJobContextImpl [jobId=d21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, timeoutObj=null, attrs={}], node=TcpDiscoveryNode [id=c022f034-e4a4-4d2a-9b98-6f7824de393b, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 172.17.122.126], sockAddrs=[01HW611909.India.TCS.com/172.17.122.126:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500, /172.17.122.126:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1457953485337, loc=true, ver=1.5.0#20151202-sha1:062d440c, isClient=false], ex=class o.a.i.compute.ComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=d21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, dep=GridDeployment [ts=1457953495448, depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@7413a356, clsLdrId=b21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, userVer=0, loc=true, sampleClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure, sesId=a21bcc47351-c022f034-e4a4-4d2a-9b98-6f7824de393b, startTime=1457953495448, endTime=9223372036854775807, taskNodeId=c022f034-e4a4-4d2a-9b98-6f7824de393b, clsLdr=sun.misc.Launcher$AppClassLoader@7413a356, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=c022f034-e4a4-4d2a-9b98-6f7824de393b, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=n
Re: Hibernate connection inspite of jdbc?
Just added mySql configuration to that configuration.Still its not working -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3481.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
Hi, It looks like your Hibernate configuration file is broken (most likely has invalid XML). Did you modify the one provided in the example? -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3460.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
can U tell me what will be probable error in this part as it throws after returning listner succesfully? code: * cacheCfg.setCacheStoreSessionListenerFactories(new Factory() { @Override public CacheStoreSessionListener create() { CacheHibernateStoreSessionListener lsnr = new CacheHibernateStoreSessionListener(); System.out.println("inside CacheHibernateStoreSessionListener "); lsnr.setHibernateConfigurationPath("hibernate.cfg.xml"); System.out.println("after config CacheHibernateStoreSessionListener"); return lsnr; } }); System.out.println("After listner") cacheCfg.setReadThrough(true); cacheCfg.setWriteThrough(true);* output with error: *inside CacheHibernateStoreSessionListener after config CacheHibernateStoreSessionListener* [12:41:39,033][ERROR][exchange-worker-#49%null%][GridDhtPartitionsExchangeFuture] Failed to reinitialize local partitions (preloading will be stopped): GridDhtPartitionExchangeId [topVer=AffinityTopologyVersion [topVer=1, minorTopVer=1], nodeId=3152067f, evt=DISCOVERY_CUSTOM_EVT] org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1494) at org.hibernate.cfg.Configuration.configure(Configuration.java:1428) at org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.start(CacheHibernateStoreSessionListener.java:155) at org.apache.ignite.internal.processors.cache.GridCacheUtils.startStoreSessionListeners(GridCacheUtils.java:1728) at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.start0(GridCacheStoreManagerAdapter.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:1034) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1630) at org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCachesStart(GridCacheProcessor.java:1545) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.startCaches(GridDhtPartitionsExchangeFuture.java:944) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:511) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1297) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.lang.Thread.run(Unknown Source) Caused by: org.dom4j.DocumentException: www.hibernate.org Nested exception: www.hibernate.org at org.dom4j.io.SAXReader.read(SAXReader.java:484) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1484) ... 14 more [12:41:39,036][ERROR][exchange-worker-#49%null%][GridCachePartitionExchangeManager] Runtime error caught during grid runnable execution: GridWorker [name=partition-exchanger, gridName=null, finished=false, isCancelled=false, hashCode=1755656759, interrupted=false, runner=exchange-worker-#49%null%] java.lang.NullPointerException at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onExchangeDone(GridCacheProcessor.java:1705) at org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.onDone(GridDhtPartitionsExchangeFuture.java:1098) 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(GridDhtPartitionsExchangeFuture.java:861) at org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:1297) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.lang.Thread.run(Unknown Source) -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3449.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: Hibernate connection inspite of jdbc?
Here you can find similar example based on Hibernate: https://github.com/apache/ignite/tree/master/examples/src/main/java-lgpl/org/apache/ignite/examples/datagrid/store/hibernate CacheStoreSession can be used to store context between several operations within one transaction (it can be JDBC connection, Hibernate session, etc.). If there is no transaction or if the cache is ATOMIC, session will always include only one operation. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412p3424.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.