ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From debasish pradhan <debasis0...@gmail.com>
Subject Persistent data store error
Date Mon, 22 May 2017 12:00:56 GMT
Hi ,

I am new to apache ignite. I was trying to connect Timesten DB to fetch
data , but its failing . I downloaded the project from web console . As per
instruction I started the server node . After that I am trying to run
loadcache . but its failing with following error.

cache load code:
=========

*try* (Ignite ignite = Ignition.*start*("TestDB1-client.xml")) {

System.*out*.println(">>> Loading caches...");

System.*out*.println(">>> Loading cache:...EmployeeCache");

//ignite.cache("EmployeeCache").loadCache(null);

ignite.cache("EmployeeCache").loadCache(*null*,
Employee.*class*.getName(), "select
* from DG.Employee");


configuration:jdbc driver :

    public static class DataSources {
        public static final TimesTenDataSource INSTANCE_dataStore =
createdataStore();
        private static TimesTenDataSource createdataStore() {
         TimesTenDataSource dataStore = new TimesTenDataSource();
            dataStore.setUrl("jdbc:timesten:client:TTC_Server=
localhost;TCP_PORT=53397;TTC_Server_DSN=TESTDSN;UID=test;
PWD=test;TTC_Timeout=180");
            dataStore.setUser("test");
            dataStore.setPassword("test");
            return dataStore;
        }
    }


TestDB1-client.xml-->

<bean id="dataSource" class="com.timesten.jdbc.TimesTenDataSource">
<property name="url" value="jdbc:timesten:client:
TTC_Server=localhost;TCP_PORT=53397;TTC_Server_DSN=TestDSN;
UID=test;PWD=test;TTC_Timeout=180" />
<property name="username" value="kodiak" />
<property name="password" value="kodiak" />
</bean>

[17:04:12,860][SEVERE][main][GridJobWorker] Failed to execute job
[jobId=1a08fef2c51-8b249f71-34cd-4ec7-8056-c32a3e61034b,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl
[taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheJobV2,
dep=LocalDeployment [super=GridDeployment [ts=1495452846874,
depMode=SHARED, clsLdr=sun.misc.Launcher$AppClassLoader@4e0e2f2a,
clsLdrId=6608fef2c51-8b249f71-34cd-4ec7-8056-c32a3e61034b, userVer=0,
loc=true, sampleClsName=java.lang.String, pendingUndeploy=false,
undeployed=false, usage=0]], taskClsName=o.a.i.i.processors.cache.
GridCacheAdapter$LoadCacheJobV2,
sesId=0a08fef2c51-8b249f71-34cd-4ec7-8056-c32a3e61034b,
startTime=1495452852829, endTime=9223372036854775807,
taskNodeId=8b249f71-34cd-4ec7-8056-c32a3e61034b, clsLdr=sun.misc.Launcher$
AppClassLoader@4e0e2f2a, closed=false, cpSpi=null, failSpi=null,
loadSpi=null, usage=1, fullSup=false, internal=true,
subjId=8b249f71-34cd-4ec7-8056-c32a3e61034b, mapFut=IgniteFuture
[orig=GridFutureAdapter [resFlag=0, res=null, startTime=1495452852839,
endTime=0, ignoreInterrupts=false, state=INIT]]],
jobId=1a08fef2c51-8b249f71-34cd-4ec7-8056-c32a3e61034b]]

class *org.apache.ignite.IgniteException*: *java.lang.NullPointerException*

at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.
execute(*GridClosureProcessor.java:2059*)

at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(
*GridJobWorker.java:560*)

at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(
*IgniteUtils.java:6620*)

at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(
*GridJobWorker.java:554*)

at org.apache.ignite.internal.processors.job.GridJobWorker.body(
*GridJobWorker.java:483*)

at org.apache.ignite.internal.util.worker.GridWorker.run(
*GridWorker.java:110*)

at org.apache.ignite.internal.processors.job.GridJobProcessor.
processJobExecuteRequest(*GridJobProcessor.java:1114*)

at org.apache.ignite.internal.processors.task.GridTaskWorker.sendRequest(
*GridTaskWorker.java:1383*)

at org.apache.ignite.internal.processors.task.GridTaskWorker.
processMappedJobs(*GridTaskWorker.java:645*)

at org.apache.ignite.internal.processors.task.GridTaskWorker.body(
*GridTaskWorker.java:537*)

at org.apache.ignite.internal.util.worker.GridWorker.run(
*GridWorker.java:110*)

at org.apache.ignite.internal.processors.task.GridTaskProcessor.startTask(
*GridTaskProcessor.java:679*)

at org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(
*GridTaskProcessor.java:403*)

at org.apache.ignite.internal.processors.closure.GridClosureProcessor.
callAsync(*GridClosureProcessor.java:418*)

at org.apache.ignite.internal.processors.closure.GridClosureProcessor.
callAsync(*GridClosureProcessor.java:391*)

at org.apache.ignite.internal.processors.cache.GridCacheAdapter.
globalLoadCacheAsync(*GridCacheAdapter.java:3718*)

at org.apache.ignite.internal.processors.cache.GridCacheAdapter.
globalLoadCache(*GridCacheAdapter.java:3657*)

at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.loadCache(
*IgniteCacheProxy.java:390*)

at load.LoadCaches.main(*LoadCaches.java:28*)

Mime
View raw message