ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhengqingzheng <zhengqingzh...@huawei.com>
Subject jar file update issue in ignite server side
Date Thu, 21 Apr 2016 01:52:58 GMT
Hi there,
In order to load data from database, I have defined several java classes and make a jar file
stored inside the libs folder.
When I try to load one table and find there is property inside one class file that I need
to remove. So I make a new jar file and replace the old one on the server side.
But I still get exception information like: Failed to find property in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase,
prop=MAX_VALUE_SIZE].
I guess this is because the old jar file is not replaced by the new one at running time. Am
I right?
If so, it is inconvenient for developers to make changes during the developing process. Is
there anyway to flash the old jar file and make the changes take effect immediately?
Exception info shows message like this:
[09:29:17,792][SEVERE][pub-#41%null%][GridJobWorker] Failed to execute job [jobId=ebe2f663451-bca27e02-84a7-421b-bcd4-9f9f34e58409,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
dep=LocalDeployment [super=GridDeployment [ts=1461202136714, depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93,
clsLdrId=a8e2f663451-bca27e02-84a7-421b-bcd4-9f9f34e58409, userVer=0, loc=true, sampleClsName=java.lang.String,
pendingUndeploy=false, undeployed=false, usage=0]], taskClsName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
sesId=dbe2f663451-bca27e02-84a7-421b-bcd4-9f9f34e58409, startTime=1461202157703, endTime=9223372036854775807,
taskNodeId=bca27e02-84a7-421b-bcd4-9f9f34e58409, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93,
closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=bca27e02-84a7-421b-bcd4-9f9f34e58409,
mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=null, startTime=1461202157735,
endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]], jobId=ebe2f663451-bca27e02-84a7-421b-bcd4-9f9f34e58409]]
class org.apache.ignite.IgniteException: javax.cache.CacheException: Failed to find property
in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase, prop=MAX_VALUE_SIZE]
   at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1792)
   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(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
Caused by: javax.cache.integration.CacheLoaderException: javax.cache.CacheException: Failed
to find property in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase,
prop=MAX_VALUE_SIZE]
   at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:510)
   at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter.localLoadCache(GridDhtCacheAdapter.java:514)
   at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localLoadCache(IgniteCacheProxy.java:388)
   at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5769)
   at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5716)
   at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1789)
   ... 8 more
Caused by: javax.cache.CacheException: Failed to find property in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase,
prop=MAX_VALUE_SIZE]
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore$PojoPropertiesCache.<init>(CacheJdbcPojoStore.java:466)
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore$PojoPropertiesCache.<init>(CacheJdbcPojoStore.java:407)
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore.prepareBuilders(CacheJdbcPojoStore.java:323)
   at org.apache.ignite.cache.store.jdbc.CacheAbstractJdbcStore.getOrCreateCacheMappings(CacheAbstractJdbcStore.java:740)
   at org.apache.ignite.cache.store.jdbc.CacheAbstractJdbcStore.loadCache(CacheAbstractJdbcStore.java:786)
   at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:484)
   ... 13 more
[09:29:17,828][SEVERE][main][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=dbe2f663451-bca27e02-84a7-421b-bcd4-9f9f34e58409, jobId=ebe2f663451-bca27e02-84a7-421b-bcd4-9f9f34e58409,
nodeId=bca27e02-84a7-421b-bcd4-9f9f34e58409, isJobDone=false], jobCtx=GridJobContextImpl [jobId=ebe2f663451-bca27e02-84a7-421b-bcd4-9f9f34e58409,
timeoutObj=null, attrs={}], node=TcpDiscoveryNode [id=bca27e02-84a7-421b-bcd4-9f9f34e58409,
addrs=[0:0:0:0:0:0:0:1, 10.135.66.169, 127.0.0.1], sockAddrs=[NKGY2Z002066461.china.huawei.com/10.135.66.169:0,
/0:0:0:0:0:0:0:1:0, /10.135.66.169:0, /127.0.0.1:0], discPort=0, order=37, intOrder=0, lastExchangeTime=1461202137398,
loc=true, ver=1.5.0#19700101-sha1:00000000, isClient=true], ex=class o.a.i.IgniteException:
javax.cache.CacheException: Failed to find property in POJO class [class=o.a.i.examples.model.IgniteMetaDataBase,
prop=MAX_VALUE_SIZE], 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:909)
   at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:902)
   at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6429)
   at org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:902)
   at org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:798)
   at org.apache.ignite.internal.processors.task.GridTaskWorker.processDelayedResponses(GridTaskWorker.java:656)
   at org.apache.ignite.internal.processors.task.GridTaskWorker.body(GridTaskWorker.java:507)
   at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
   at org.apache.ignite.internal.processors.task.GridTaskProcessor.startTask(GridTaskProcessor.java:678)
   at org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(GridTaskProcessor.java:403)
   at org.apache.ignite.internal.processors.closure.GridClosureProcessor.callAsync(GridClosureProcessor.java:406)
   at org.apache.ignite.internal.processors.closure.GridClosureProcessor.callAsync(GridClosureProcessor.java:379)
   at org.apache.ignite.internal.processors.cache.GridCacheAdapter.globalLoadCacheAsync(GridCacheAdapter.java:3618)
   at org.apache.ignite.internal.processors.cache.GridCacheAdapter.globalLoadCache(GridCacheAdapter.java:3599)
   at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.loadCache(IgniteCacheProxy.java:366)
   at org.apache.ignite.examples.datagrid.store.auto.CacheAutoStoreExample.main(CacheAutoStoreExample.java:219)
Caused by: class org.apache.ignite.IgniteException: javax.cache.CacheException: Failed to
find property in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase, prop=MAX_VALUE_SIZE]
   at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1792)
   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(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
Caused by: javax.cache.integration.CacheLoaderException: javax.cache.CacheException: Failed
to find property in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase,
prop=MAX_VALUE_SIZE]
   at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:510)
   at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter.localLoadCache(GridDhtCacheAdapter.java:514)
   at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localLoadCache(IgniteCacheProxy.java:388)
   at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5769)
   at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5716)
   at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1789)
   ... 8 more
Caused by: javax.cache.CacheException: Failed to find property in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase,
prop=MAX_VALUE_SIZE]
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore$PojoPropertiesCache.<init>(CacheJdbcPojoStore.java:466)
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore$PojoPropertiesCache.<init>(CacheJdbcPojoStore.java:407)
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore.prepareBuilders(CacheJdbcPojoStore.java:323)
   at org.apache.ignite.cache.store.jdbc.CacheAbstractJdbcStore.getOrCreateCacheMappings(CacheAbstractJdbcStore.java:740)
   at org.apache.ignite.cache.store.jdbc.CacheAbstractJdbcStore.loadCache(CacheAbstractJdbcStore.java:786)
   at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:484)
   ... 13 more
[09:29:17] Ignite node stopped OK [uptime=00:00:00:470]
Exception in thread "main" javax.cache.integration.CacheLoaderException: javax.cache.CacheException:
Failed to find property in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase,
prop=MAX_VALUE_SIZE]
   at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:510)
   at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter.localLoadCache(GridDhtCacheAdapter.java:514)
   at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localLoadCache(IgniteCacheProxy.java:388)
   at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5769)
   at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5716)
   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(ThreadPoolExecutor.java:1142)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
   at java.lang.Thread.run(Thread.java:745)
Caused by: javax.cache.CacheException: Failed to find property in POJO class [class=org.apache.ignite.examples.model.IgniteMetaDataBase,
prop=MAX_VALUE_SIZE]
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore$PojoPropertiesCache.<init>(CacheJdbcPojoStore.java:466)
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore$PojoPropertiesCache.<init>(CacheJdbcPojoStore.java:407)
   at org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore.prepareBuilders(CacheJdbcPojoStore.java:323)
   at org.apache.ignite.cache.store.jdbc.CacheAbstractJdbcStore.getOrCreateCacheMappings(CacheAbstractJdbcStore.java:740)
   at org.apache.ignite.cache.store.jdbc.CacheAbstractJdbcStore.loadCache(CacheAbstractJdbcStore.java:786)
   at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:484)
   ... 13 more

[logo]郑清正Kevin Zheng| Research Engineer
华为软件技术有限公司Huawei Software Technologies Co.,Ltd. | 电信软件技术规划部Technology
Planning Dept,CS
(Phone) 025-56620168 | (Mobile)17072565656 | (Fax) 025-56623561
南京市软件大道101号华为基地N4-3F-A190S 邮编:210012|HUAWEI Area N4-3F-A190S,
Software Ave., Yuhuatai District,Nanjing 210012, P.R.China
[cid:image002.png@01CF9D2E.4FBF0950]

Mime
View raw message