ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Puri <ravikumarpur...@gmail.com>
Subject Hibernate loadcache error?
Date Wed, 16 Mar 2016 07:50:47 GMT
i am unable to get rid of this error. tried with different jars and changes
in hibernate way to cache the data. Suggest some ways.

after this line of code it throws error.....
 cache.loadCache(null,10000);
    

[13:30:21,642][ERROR][ignite-#7%pub-null%][GridJobWorker] Failed to execute
job due to unexpected runtime exception
[jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl
[taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
dep=GridDeployment [ts=1458115221612, depMode=SHARED,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3,
clsLdrId=41f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b, 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=31f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
startTime=1458115221612, endTime=9223372036854775807,
taskNodeId=3f432c93-f420-4b1d-80b2-fd39610a481b,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3, closed=false, cpSpi=null,
failSpi=null, loadSpi=null, usage=1, fullSup=false,
subjId=3f432c93-f420-4b1d-80b2-fd39610a481b, mapFut=IgniteFuture
[orig=GridFutureAdapter [resFlag=0, res=null, startTime=1458115221632,
endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]],
jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b]]
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)
[13:30:21,648][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=31f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
nodeId=3f432c93-f420-4b1d-80b2-fd39610a481b, isJobDone=false],
jobCtx=GridJobContextImpl
[jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b, timeoutObj=null,
attrs={}], node=TcpDiscoveryNode [id=3f432c93-f420-4b1d-80b2-fd39610a481b,
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=1458115211249,
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=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl
[taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
dep=GridDeployment [ts=1458115221612, depMode=SHARED,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3,
clsLdrId=41f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b, 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=31f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
startTime=1458115221612, endTime=9223372036854775807,
taskNodeId=3f432c93-f420-4b1d-80b2-fd39610a481b,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3, closed=false, cpSpi=null,
failSpi=null, loadSpi=null, usage=1, fullSup=false,
subjId=3f432c93-f420-4b1d-80b2-fd39610a481b, mapFut=IgniteFuture
[orig=GridFutureAdapter [resFlag=0, res=null, startTime=1458115221632,
endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]],
jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b]], hasRes=true,
isCancelled=false, isOccupied=true]
class org.apache.ignite.IgniteException: Remote job threw user exception
(override or implement ComputeTask.result(..) method if you would like to
have automatic failover for this exception).
	at
org.apache.ignite.compute.ComputeTaskAdapter.result(ComputeTaskAdapter.java:101)
	at
org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:905)
	at
org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:898)
	at
org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6429)
	at
org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:898)
	at
org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:794)
	at
org.apache.ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:995)
	at
org.apache.ignite.internal.processors.job.GridJobWorker.finishJob(GridJobWorker.java:774)
	at
org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:561)
	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)
Caused by: class org.apache.ignite.compute.ComputeUserUndeclaredException:
Failed to execute job due to unexpected runtime exception
[jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl
[taskName=org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure,
dep=GridDeployment [ts=1458115221612, depMode=SHARED,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3,
clsLdrId=41f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b, userVer=0,
loc=true,
sampleClsName=org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure,
pendingUndeploy=false, undeployed=false, usage=2],
taskClsName=org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure,
sesId=31f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
startTime=1458115221612, endTime=9223372036854775807,
taskNodeId=3f432c93-f420-4b1d-80b2-fd39610a481b,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3, closed=false, cpSpi=null,
failSpi=null, loadSpi=null, usage=1, fullSup=false,
subjId=3f432c93-f420-4b1d-80b2-fd39610a481b, mapFut=IgniteFuture
[orig=GridFutureAdapter [resFlag=0, res=null, startTime=1458115221632,
endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]],
jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b]]
	at
org.apache.ignite.internal.processors.job.GridJobWorker.handleThrowable(GridJobWorker.java:607)
	at
org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:551)
	... 5 more
Caused by: 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)
	... 5 more
Exception in thread "main" 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)
[13:30:21,650][ERROR][ignite-#7%pub-null%][GridJobWorker] Runtime error
caught during grid runnable execution: GridJobWorker
[createTime=1458115221632, startTime=1458115221632,
finishTime=1458115221642, taskNode=TcpDiscoveryNode
[id=3f432c93-f420-4b1d-80b2-fd39610a481b, 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=1458115211249,
loc=true, ver=1.5.0#20151202-sha1:062d440c, isClient=false], internal=false,
marsh=o.a.i.marshaller.optimized.OptimizedMarshaller@25d1f9f4,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl
[taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
dep=GridDeployment [ts=1458115221612, depMode=SHARED,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3,
clsLdrId=41f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b, userVer=0,
loc=true,
sampleClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
pendingUndeploy=false, undeployed=false, usage=0],
taskClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
sesId=31f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b,
startTime=1458115221612, endTime=9223372036854775807,
taskNodeId=3f432c93-f420-4b1d-80b2-fd39610a481b,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3, closed=false, cpSpi=null,
failSpi=null, loadSpi=null, usage=1, fullSup=false,
subjId=3f432c93-f420-4b1d-80b2-fd39610a481b, mapFut=IgniteFuture
[orig=GridFutureAdapter [resFlag=0, res=null, startTime=1458115221632,
endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]],
jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b],
jobCtx=GridJobContextImpl
[jobId=61f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b, timeoutObj=null,
attrs={}], dep=GridDeployment [ts=1458115221612, depMode=SHARED,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3,
clsLdrId=41f607e7351-3f432c93-f420-4b1d-80b2-fd39610a481b, userVer=0,
loc=true,
sampleClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
pendingUndeploy=false, undeployed=false, usage=0], finishing=true,
masterLeaveGuard=false, timedOut=false, sysCancelled=false,
sysStopping=false, isStarted=true, job=C2 [], held=0]
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)
Exception in thread "ignite-#7%pub-null%" 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)




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Hibernate-loadcache-error-tp3534.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message