Loading data into cache timing issue?

2016-09-27 Thread Ravi Puri
How to manage time issue when loading data using loadCache() method. It takes
10 mins to load 170 number of data's.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Loading-data-into-cache-timing-issue-tp7965.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-09-09 Thread Ravi Puri
yes i saw streamer and tried with maven dependencies by adding pom.xml but i
convert in java project and run the same. still the same error ? 

i tried every possible way to face this error. I think there is bug in
method of loadCache() while integrating with multiple java classes and there
is no alternative method for this if loadCache() method fails.

or else if u have any other options please inform me .



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7634.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-09-07 Thread Ravi Puri
hello, 
can u provide with other method to load data into cache or nay other way ?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7600.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-08-26 Thread Ravi Puri
All classpaths have same jars. Any other options to cache data apart from
loadCache() method??



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7346.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-08-26 Thread Ravi Puri
I wont be able to use maven and neither uplaod a project.

But I found the class error using debugger. 

It was found in cache.loadCache(null,1) . During this process it throws
error. Is there any other way to load cache data using  IgniteCache Object. 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7340.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-08-17 Thread Ravi Puri
is it necessary to provide project? Error can be resolved without that also
ryt?? 

-jars version matched . still error not resolved
-dependencies send to u and i changed it from beta version to normal 1.5
finl version jars. still error not resolved

what will be other reasons for this error as this is major problem i am
facing from last 3 to 4 days for my project ?? 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7143.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-08-16 Thread Ravi Puri
No i'm not using maven . I am adding this jars to project and using it..
Everything was working fine but this error doesnt allow me to go forward..?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7125.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-08-16 Thread Ravi Puri
 

THIS IS MY JAR LIST IN DEPENDENCIES which i reduced and matched as per ur
suggestions . Still the same error , now what to do ?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7102.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-08-15 Thread Ravi Puri
 
 
 
 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7087.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: LOOK THORUGH THIS ERROR

2016-08-12 Thread Ravi Puri
Still the same error as i matched ignite-core 1.5 ver with ignite-hibernate
1.5... but still it is not resolved.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7017.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


LOOK THORUGH THIS ERROR

2016-08-11 Thread Ravi Puri
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/LOOK-THORUGH-THIS-ERROR-tp6977.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Clear the cached data?

2016-08-11 Thread Ravi Puri
I want to clear all the data cached in server and client nodes. So how to do
it as i have to do it another class.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Clear-the-cached-data-tp6946.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Address bind error

2016-08-09 Thread Ravi Puri
I got the below error as i am running tomcat server at localhost and also the
ignite-config.xml at same host. is this the problem due to this? or is it
something error not related to i mentioned above??




WARNING: FAILED ServerConnector@e11eade{HTTP/1.1}{0.0.0.0:8080}:
java.net.BindException: Address already in use: bind
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at 
org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
at
org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at
org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.apache.ignite.internal.processors.rest.protocols.http.jetty.GridJettyRestProtocol.startJetty(GridJettyRestProtocol.java:220)
at
org.apache.ignite.internal.processors.rest.protocols.http.jetty.GridJettyRestProtocol.start(GridJettyRestProtocol.java:177)
at
org.apache.ignite.internal.processors.rest.GridRestProcessor.startProtocol(GridRestProcessor.java:861)
at
org.apache.ignite.internal.processors.rest.GridRestProcessor.startHttpProtocol(GridRestProcessor.java:832)
at
org.apache.ignite.internal.processors.rest.GridRestProcessor.start(GridRestProcessor.java:447)
at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1518)



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


Just a basic query generally?

2016-05-09 Thread Ravi Puri
how many years experince needed to use the ignite smoothly and what should be
d basic things should be cleared like springs or java to learn ignite easily
?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Just-a-basic-query-generally-tp4852.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: how to fetch data when its loaded using cache.loadCache(null,100_00)?

2016-04-28 Thread Ravi Puri
i am getting this error while fetching

cache.get(1); at client side

Exception in thread "main" org.hibernate.LazyInitializationException: could
not initialize proxy - no Session
at
org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:186)
at
org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:545)
at
org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:124)
at
org.hibernate.collection.internal.PersistentMap.toString(PersistentMap.java:270)
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/how-to-fetch-data-when-its-loaded-using-cache-loadCache-null-100-00-tp4654p4655.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


how to fetch data when its loaded using cache.loadCache(null,100_00)?

2016-04-28 Thread Ravi Puri
i loaded my data into cache from database 

id  fname   Lname
  1 ravi   puri 
  2 ravi   load
  3 ravi   nikita



configuration usign cache.loadCache(null,10).

but i want to access data from cache. so how can i do it?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/how-to-fetch-data-when-its-loaded-using-cache-loadCache-null-100-00-tp4654.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Automatic persistence ?

2016-04-26 Thread Ravi Puri
yea i tried but i generated schema from schema import and i want run
cache.loadCache after loading the configuration which is generated
automatically.

how can i do it. 



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


asm.writer error

2016-04-26 Thread Ravi Puri
error at cache.loadCache(null,100_00);
please provide the reason as i tried with asm-all 4.2 jar and even with
spring.jar and also asm-2.2.3 jar & asm-1.5.3 jar


java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.(Z)V
at
net.sf.cglib.core.DebuggingClassWriter.(DebuggingClassWriter.java:47)
at
net.sf.cglib.core.DefaultGeneratorStrategy.getClassWriter(DefaultGeneratorStrategy.java:30)
at
net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:24)
at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)
at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)
at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)
at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)
at
org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)
at
org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)
at
org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)
at
org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)
at
org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)
at
org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)
at
org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)
at
org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)
at
org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)
at
org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at
org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at
org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.start(CacheHibernateStoreSessionListener.java:151)
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)
[15:32:52,204][ERROR][exchange-worker-#49%null%][GridCachePartitionExchangeManager]
Runtime error caught during grid runnable execution: GridWorker
[name=partition-exchanger, gridName=null, finished=false, isCancelled=false,
hashCode=1289862143, 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 client side unable to use excute transaction?

2016-04-22 Thread Ravi Puri
server side
--
at server side i loaded my data with person and also configured with my
database..

cache.loadCache(null,100_000);
cache.size();// It returns length of cache.

client side
--
public static void main (String args[])
{
Ignition.setClientMode(true);
Ignite ignite=Ignition.start("ignite-example.xml");


IgniteCache cache =
ignite.getOrCreateCache("CacheName");
System.out.println(cache.size());// it also succesfully returns 
same
length 

executeTransaction(cache);// but her it shows error
}
private static void executeTransaction(IgniteCache 
cache) {
try (Transaction tx = Ignition.ignite().transactions().txStart()) {
Person val = cache.get(2);// here it show error.

 System.out.println("Read value: " + val);


 tx.commit();
}  
}

the error is:


Exception in thread "main" org.hibernate.LazyInitializationException: could
not initialize proxy - no Session
at
org.hibernate.collection.internal.AbstractPersistentCollection.withTemporarySessionIfNeeded(AbstractPersistentCollection.java:186)
at
org.hibernate.collection.internal.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:545)
at
org.hibernate.collection.internal.AbstractPersistentCollection.read(AbstractPersistentCollection.java:124)
at
org.hibernate.collection.internal.PersistentMap.toString(PersistentMap.java:270)
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at com.tcs.utility.vo.DeviceVO.toString(DeviceVO.java:139)
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at com.tcs.vo.SessionManagementVO.toString(SessionManagementVO.java:171)
at java.lang.String.valueOf(Unknown Source)
at java.lang.StringBuilder.append(Unknown Source)
at com.demo.ClientSide.executeTransaction(ClientSide.java:29)
at com.demo.ClientSide.main(ClientSide.java:23)




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/At-client-side-unable-to-use-excute-transaction-tp4447.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Automatic persistence ?

2016-04-21 Thread Ravi Puri
i generated all the related pojo and xml classess. please let me knw how to
test that thing?



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


can we make generic class for cachehibernatepojostore?

2016-04-20 Thread Ravi Puri
i have a query 

i have one class which loads cacheconfiguration class(CacheConfig) with its
cachehibernatepojostore(specific to class) passed in factory builder which i
passed as T.


public class CacheConfig {

private static final long serialVersionUID = 1L;
private static final String HIBERNATE_CFG = "hibernate.cfg.xml";

@SuppressWarnings({ "unchecked", "rawtypes" })
public static CacheConfiguration loadConfig(String
CacheName,
 Class  T) {
CacheConfiguration cacheCfg = new
CacheConfiguration<>(p_strCacheName
);

// Set atomicity as transaction, since we are showing 
transactions in
// example.
cacheCfg.setAtomicityMode(TRANSACTIONAL);

// Configure JDBC store.
cacheCfg.setCacheStoreFactory(FactoryBuilder.factoryOf(T));

// Configure hibernate session listener.
cacheCfg.setCacheStoreSessionListenerFactories(new
Factory() {
/**
 * 
 */
private static final long serialVersionUID = 1L;

@Override
public CacheStoreSessionListener create() {
CacheHibernateStoreSessionListener lsnr = new
CacheHibernateStoreSessionListener();


lsnr.setHibernateConfigurationPath(HIBERNATE_CFG);

return lsnr;
}
});

cacheCfg.setReadThrough(true);
cacheCfg.setWriteThrough(true);

System.out.println("ended configuration loadConfig");

return cacheCfg;
}

}


so form main i can access
CacheConfig objCacheConfig = new CacheConfig();
IgniteCache cache= objCacheConfig 
.loadConfig("CacheName",
CacheHibernatePersonStore .class);
cache.loadCache(null, 100_00);


IT LOAD ALL DATA RELATED TO CacheHibernatePersonStore extends
CacheStoreAdapter
means in short it load all the data to server side



now m using client side and has different ignite.xml 

now i want to access the data to this client side in different package of
eclipse which was loaded in server side with different config.(as m able to
connect server and client is connected )
but when m trying to fetch it shows
error:
Failed to create an instance of CacheHibernatePersonStore class


how can i able to load it??




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/can-we-make-generic-class-for-cachehibernatepojostore-tp4355.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: do you support json based cache?

2016-04-15 Thread Ravi Puri
nopes. It will complicate my json.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/do-you-support-json-based-cache-tp4160p4224.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


do you support json based cache?

2016-04-14 Thread Ravi Puri
I want to know do you support json based data to be cached and implemnented?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/do-you-support-json-based-cache-tp4160.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


how to connect hibernate database to fetch and put data in ocnfiguration.xml

2016-04-14 Thread Ravi Puri
i want to connect my sql hibernate database in your ignite.xml and once the
configuration is loaded it should be automatically connected to database.

is there any option so that i can fetch the data from database (which is
already defined in configuration ignite.xml ) and retrieve it at client
side.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/how-to-connect-hibernate-database-to-fetch-and-put-data-in-ocnfiguration-xml-tp4159.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


link cache to object class?

2016-04-13 Thread Ravi Puri
how can i link the cache created in configuration to the object class so that
i can decide which cache is for which class?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/link-cache-to-object-class-tp4119.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


how to check whether server and client connected?

2016-04-13 Thread Ravi Puri
where to configure the client and server to interact. 
 
Ignition.setClientMode(true);

this has been set but how to access local and remote nodes and how to start
caching the data remotely available?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/how-to-check-whether-server-and-client-connected-tp4117.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: hibernate open session error while running with tomcat server

2016-04-11 Thread Ravi Puri
yea it was fixed when i used to run the project as an individual but when i
try to integrate with other project it throws an error . as i use all the
jars to refr the othr project but stil it throws an error.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/hibernate-open-session-error-while-running-with-tomcat-server-tp4050p4093.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


hibernate open session error while running with tomcat server

2016-04-11 Thread Ravi Puri
this is the error throws while executing with 

 long start = System.currentTimeMillis();
System.out.println("Entering into loadCache
ApacheIgniteCacheConfiguration");
// Start loading cache from persistent store on all caching nodes.
  cache.loadCache(null,100_000);// here throws the error

  System.out.println("after cache loadcache");
long end = System.currentTimeMillis();

System.out.println(">>> Loaded " + cache.size() + " keys with
backups in " + (end - start) + "ms.");
System.out.println("Exiting from loadCache
ApacheIgniteCacheConfiguration");



error:


java.lang.NoSuchMethodError:
org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;

org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionListener.onSessionStart(CacheHibernateStoreSessionListener.java:178)

org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.sessionInit0(GridCacheStoreManagerAdapter.java:818)

org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:479)

org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter.localLoadCache(GridDhtCacheAdapter.java:515)

org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localLoadCache(IgniteCacheProxy.java:387)

org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5716)

org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5663)

org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1789)

org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509)

org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6397)

org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503)

org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:456)

org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/hibernate-open-session-error-while-running-with-tomcat-server-tp4050.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


hibernate named query with ignite

2016-03-30 Thread Ravi Puri
Can i fetch the data from database using NamedQuery feature of hibernate ?



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/hibernate-named-query-with-ignite-tp3770.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Hibernate loadcache error?

2016-03-29 Thread Ravi Puri
thanks I rectified the error. 

antlr.jar was missing. :)

 



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


Re: Hibernate loadcache error?

2016-03-28 Thread Ravi Puri
Already tried everything.I didnt think u understnd it.

Do me a favour can u provide the working prjct related to hibernate
integrated with ignite at ravikumarpur...@gmail.com .

NOTE: PLEASE DO NOT SEND THE below LINK . PROVIDE ME THE WORKING THING as it
does not work with dynamic web project as java application


https://github.com/apache/ignite/tree/master/examples/src/main/java-lgpl/org/apache/ignite/examples/datagrid/store/hibernate




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


Error in cache.loadCache(null,ENTRY_COUNT);

2016-03-28 Thread Ravi Puri
Error at cache.loadCache(null,100_000)


Caused by: class org.apache.ignite.compute.ComputeUserUndeclaredException:
Failed to execute job due to unexpected runtime exception
[jobId=a2275acb351-93f69876-63cd-4130-b8b6-b82956f489f1,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl
[taskName=org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure,
dep=GridDeployment [ts=1459158883086, depMode=SHARED,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3,
clsLdrId=82275acb351-93f69876-63cd-4130-b8b6-b82956f489f1, 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=72275acb351-93f69876-63cd-4130-b8b6-b82956f489f1,
startTime=1459158883076, endTime=9223372036854775807,
taskNodeId=93f69876-63cd-4130-b8b6-b82956f489f1,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3, closed=false, cpSpi=null,
failSpi=null, loadSpi=null, usage=1, fullSup=false,
subjId=93f69876-63cd-4130-b8b6-b82956f489f1, mapFut=IgniteFuture
[orig=GridFutureAdapter [resFlag=0, res=null, startTime=1459158883097,
endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]],
jobId=a2275acb351-93f69876-63cd-4130-b8b6-b82956f489f1]]
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
[15:24:43,122][ERROR][ignite-#7%pub-null%][GridJobWorker] Runtime error
caught during grid runnable execution: GridJobWorker
[createTime=1459158883097, startTime=1459158883107,
finishTime=1459158883107, taskNode=TcpDiscoveryNode
[id=93f69876-63cd-4130-b8b6-b82956f489f1, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1,
172.17.122.216], sockAddrs=[01HW611909.India.TCS.com/172.17.122.216:47500,
/0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500, /172.17.122.216:47500],
discPort=47500, order=1, intOrder=1, lastExchangeTime=1459158872853,
loc=true, ver=1.5.0#20151202-sha1:062d440c, isClient=false], internal=false,
marsh=o.a.i.marshaller.optimized.OptimizedMarshaller@1680cf6a,
ses=GridJobSessionImpl [ses=GridTaskSessionImpl
[taskName=o.a.i.i.processors.cache.GridCacheAdapter$LoadCacheClosure,
dep=GridDeployment [ts=1459158883086, depMode=SHARED,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3,
clsLdrId=82275acb351-93f69876-63cd-4130-b8b6-b82956f489f1, 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=72275acb351-93f69876-63cd-4130-b8b6-b82956f489f1,
startTime=1459158883076, endTime=9223372036854775807,
taskNodeId=93f69876-63cd-4130-b8b6-b82956f489f1,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3, closed=false, cpSpi=null,
failSpi=null, loadSpi=null, usage=1, fullSup=false,
subjId=93f69876-63cd-4130-b8b6-b82956f489f1, mapFut=IgniteFuture
[orig=GridFutureAdapter [resFlag=0, res=null, startTime=1459158883097,
endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]],
jobId=a2275acb351-93f69876-63cd-4130-b8b6-b82956f489f1],
jobCtx=GridJobContextImpl
[jobId=a2275acb351-93f69876-63cd-4130-b8b6-b82956f489f1, timeoutObj=null,
attrs={}], dep=GridDeployment [ts=1459158883086, depMode=SHARED,
clsLdr=sun.misc.Launcher$AppClassLoader@35489ea3,
clsLdrId=82275acb351-93f69876-63cd-4130-b8b6-b82956f489f1, userVer=0,
loc=

Re: Hibernate loadcache error?

2016-03-27 Thread Ravi Puri

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-loadcache-error-tp3534p3697.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Hibernate loadcache error?

2016-03-25 Thread Ravi Puri
still its not working . i am facing the same issue again and again.



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


Re: Hibernate connection inspite of jdbc?

2016-03-25 Thread Ravi Puri
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?

2016-03-22 Thread Ravi Puri
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?

2016-03-21 Thread Ravi Puri
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 loadcache error?

2016-03-21 Thread Ravi Puri
how to enable ignite hibernate module? 



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


Hibernate loadcache error?

2016-03-16 Thread Ravi Puri
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,1);


[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@35489

Re: Hibernate connection inspite of jdbc?

2016-03-15 Thread Ravi Puri
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?

2016-03-15 Thread Ravi Puri
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?

2016-03-14 Thread Ravi Puri
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?

2016-03-14 Thread Ravi Puri
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?

2016-03-13 Thread Ravi Puri
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?

2016-03-10 Thread Ravi Puri
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.


Hibernate connection inspite of jdbc?

2016-03-08 Thread Ravi Puri
Given below load method of cachejdbcpersonstore. this is done using
preparedstatement n resultset. I want to implement the same using hibernate
n hql query

how to do this ?

and what is CacheStoreSession  ? where to use the same if i want to
implement using hibernate by replacing this Connection conn =
ses.attachment();???
 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Hibernate-connection-inspite-of-jdbc-tp3412.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


storekeepbinary error?

2016-02-29 Thread Ravi Puri
 

how to resolve above error?



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


Re: update the sql database after a particular limit?

2016-02-29 Thread Ravi Puri
Suppose i have a employee data and its login time . I want to fetch the data
from database and store it in cache and everytime i login if its changes in
database then i want to reflect back in cache too. As i want my code to work
consistently with cache data rather than database
??

please suggest me ways how to configure and and some code changes in get and
put operation



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/update-the-sql-database-after-a-particular-limit-tp3250p3279.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


update the sql database after a particular limit?

2016-02-29 Thread Ravi Puri
How to update the sql database using cache after a particular time interval??



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/update-the-sql-database-after-a-particular-limit-tp3250.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Linking sessions and nodes ?

2016-02-25 Thread Ravi Puri
I want to run separate nodes for separate session.. eg. difrnt node for login
n another node fr logout . How can i do this via configuration or some code
chnges in ignite??



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Linking-sessions-and-nodes-tp3199.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: binding exception?

2016-02-16 Thread Ravi Puri
 System.setProperty("org.eclipse.jetty.util.log.class",
"org.eclipse.jetty.util.log.StdErrLog");
 
 
System.setProperty("org.eclipse.jetty.util.log.StdErrLog", "ERROR");

it helped me thanx..



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


Re: binding exception?

2016-02-15 Thread Ravi Puri
how to set either in configuration or in code?



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


Re: binding exception?

2016-02-15 Thread Ravi Puri

the line of code is 

 Cachemanager obj=(CacheManager) cachingProvider.getCacheManager(uri,null);


and whole error is 





[18:41:55]__   
[18:41:55]   /  _/ ___/ |/ /  _/_  __/ __/ 
[18:41:55]  _/ // (7 7// /  / / / _/   
[18:41:55] /___/\___/_/|_/___/ /_/ /___/  
[18:41:55] 
[18:41:55] ver. 1.5.0-b1#20151202-sha1:062d440c
[18:41:55] 2015 Copyright(C) Apache Software Foundation
[18:41:55] 
[18:41:55] Ignite documentation: http://ignite.apache.org
[18:41:55] 
[18:41:55] Quiet mode.
[18:41:55]   ^-- Logging to file
'C:\Users\836144\Downloads\apache-ignite-fabric-1.4.1-SNAPSHOT-bin\apache-ignite-fabric-1.4.1-SNAPSHOT-bin\work\log\ignite-00e674c7.log'
[18:41:55]   ^-- To see **FULL** console log here add -DIGNITE_QUIET=false
or "-v" to ignite.{sh|bat}
[18:41:55] 
[18:41:55] OS: Windows 7 6.1 amd64
[18:41:55] VM information: Java(TM) SE Runtime Environment 1.7.0_03-b05
Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 22.1-b02
[18:41:55] Initial heap size is 62MB (should be no less than 512MB, use
-Xms512m -Xmx512m).
[18:41:56] Configured plugins:
[18:41:56]   ^-- None
[18:41:56] 
[18:41:57] Security status [authentication=off, tls/ssl=off]
Feb 15, 2016 6:41:58 PM org.eclipse.jetty.util.log.Log initialized
INFO: Logging initialized @57662ms
Feb 15, 2016 6:41:58 PM org.eclipse.jetty.server.Server doStart
INFO: jetty-9.2.11.v20150529
Feb 15, 2016 6:41:58 PM org.eclipse.jetty.util.component.AbstractLifeCycle
setFailed
WARNING: FAILED ServerConnector@4711dafb{HTTP/1.1}{0.0.0.0:8080}:
java.net.BindException: Address already in use: bind
java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.Net.bind(Unknown Source)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at 
org.eclipse.jetty.server.ServerConnector.open(ServerConnector.java:321)
at
org.eclipse.jetty.server.AbstractNetworkConnector.doStart(AbstractNetworkConnector.java:80)
at
org.eclipse.jetty.server.ServerConnector.doStart(ServerConnector.java:236)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.server.Server.doStart(Server.java:366)
at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at
org.apache.ignite.internal.processors.rest.protocols.http.jetty.GridJettyRestProtocol.startJetty(GridJettyRestProtocol.java:220)
at
org.apache.ignite.internal.processors.rest.protocols.http.jetty.GridJettyRestProtocol.start(GridJettyRestProtocol.java:177)
at
org.apache.ignite.internal.processors.rest.GridRestProcessor.startProtocol(GridRestProcessor.java:861)
at
org.apache.ignite.internal.processors.rest.GridRestProcessor.startHttpProtocol(GridRestProcessor.java:832)
at
org.apache.ignite.internal.processors.rest.GridRestProcessor.start(GridRestProcessor.java:447)
at
org.apache.ignite.internal.IgniteKernal.startProcessor(IgniteKernal.java:1518)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:891)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:1618)
at
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1485)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:965)
at
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:892)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:784)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:725)
at org.apache.ignite.cache.CacheManager.(CacheManager.java:115)
at
org.apache.ignite.cache.CachingProvider.getCacheManager(CachingProvider.java:111)
at
org.apache.ignite.cache.CachingProvider.getCacheManager(CachingProvider.java:157)
at
com.tcs.cache.provider.IgniteCacheProvider.(IgniteCacheProvider.java:71)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
com.tcs.cache.manager.CacheManager.SetCacheProvider(CacheManager.java:82)
at com.tcs.cache.manager.CacheManager.getInstance(CacheManager.java:46)
at com.tcs.security.service.LoginService.login(LoginService.java:42)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.tcs.service.pojo.POJOServiceFactory.invokeService(POJOServiceFac