Re: Ignite Client Node OOM Issue

2020-11-06 Thread Ravi Makwana
Hi,

*1) What load profile do you have? *
Ans: We have 2 clusters, each having 2 nodes, one cluster is having approx
15 GB data (Replication) & second cluster is having approx 5 GB data
(Partitioned) with eviction policy.

*2) Do you use SQL queries?*
Ans: Yes, We are using.

*3) Is it possible to share your client node configuration?*
Ans: Yes, I have attached below.

Thanks,


On Fri, 6 Nov 2020 at 18:50, Vladimir Pligin  wrote:

> What load profile do you have? Do you use SQL queries? Is it possible to
> share your client node configuration?
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

http://www.springframework.org/schema/beans;
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
   xmlns:util="http://www.springframework.org/schema/util;
   xsi:schemaLocation="http://www.springframework.org/schema/beans
   
http://www.springframework.org/schema/beans/spring-beans.xsd
   http://www.springframework.org/schema/util
   
http://www.springframework.org/schema/util/spring-util.xsd;>
  











  
  

  

  
10.201.30.52:58500
  

  

  



   



  


Ignite Client Node Stopped : OOM Error

2020-11-05 Thread Ravi Makwana
Hi,

We are using Apache Ignite 2.7.0 binary and servers are using Linux OS &
app servers are using Windows OS.We are using Apache Ignite .Net APIs.

Recently we have noticed that our application is not stopped with an OOM
error.

App server has 32 GB RAM & We are specifying JVM Heap = 8 GB

I am sharing a client log and could you please suggest why the client node
is not responding & what is the possible cause and how to resolve this
issue?


Thanks & Regards,


logs.rar
Description: Binary data


Ignite Client Node OOM Issue

2020-11-04 Thread Ravi Makwana
HI,

We are using Apache Ignite 2.7.0 binary and servers are using Linux OS &
app servers are using Windows OS.We are using Apache Ignite .Net APIs.

Recently we have noticed that our application (Client Node) is stopping
with OOM error. App server has 32 GB RAM & we are specifying JVM Heap = 8
GB.

App server utilization at the OOM error was 80%  and we have still 20%
memory left, still we are facing this issue.

1) How to check memory usage for the client node?
2)  Is there any way by looking at logs we can understand, OOM might
occur?
3)  Could you please suggest, how to overcome this issue?

 I am sharing an application crash log.

Thanks & Regards,


OOM-Error.rar
Description: Binary data


Re: Ignite Client Node Stopped With Out Of Memory

2020-10-28 Thread Ravi Makwana
Hi Paval,

As we are not setting explicitly QueryBase.Pagesize for SqlQuery and
SqlFieldQuery so default will be used as 1024.

We have not found so far any example by looking the same we can try to
explicitly set the Query base.Pagesize.

Can we have any reference by checking that we can try to set the lower
value and can able to replicate the scenario?


Thanks,

On Wed, 28 Oct, 2020, 7:53 pm Ravi Makwana, 
wrote:

>
>
>
>
> On Wed, 28 Oct, 2020, 5:55 pm Pavel Tupitsyn, 
> wrote:
>
>> I found a bug in Ignite [1] which probably causes the issue on your side.
>>
>> Looks like you are running a query (is it a ScanQuery or SqlQuery?) and
>> the size of one results page exceeds 2GB.
>> Please try using a smaller value for *QueryBase.PageSize*.
>>
>> If you use the default value of 1024, your cache entries are very large.
>> What does the data look like?
>>
>> [1] https://issues.apache.org/jira/browse/IGNITE-13635
>>
>> On Wed, Oct 28, 2020 at 1:43 PM Ravi Makwana 
>> wrote:
>>
>>> Hi,
>>>
>>> Our service is running with 64 bit and we have verified the same in our
>>> app server too.
>>>
>>> Any finding from the logs?
>>>
>>> Is there any way to replicate it?
>>>
>>> Thanks,
>>>
>>>
>>> On Wed, 28 Oct 2020 at 15:47, Pavel Tupitsyn 
>>> wrote:
>>>
>>>> Looks like the app is running in 32 bit mode, which can't use more than
>>>> 2GB of memory.
>>>> JVM and memory regions pre-allocate all of it, leaving nothing for .NET
>>>> to use.
>>>>
>>>> Please check the `Platform` column in the Task Manager - does it say
>>>> `32 bit`?
>>>> If yes, then try disabling `Prefer 32 bit` in the project properties.
>>>>
>>>> On Wed, Oct 28, 2020 at 1:06 PM Ravi Makwana 
>>>> wrote:
>>>>
>>>>> Hi Pavel,
>>>>>
>>>>> Thanks for the information.
>>>>>
>>>>> We have noticed our service is taking max 2GB memory which is noticed
>>>>> in task manager and stopping app pool at same time server memory
>>>>> utilization is 80% so we have still memory spare 20%.
>>>>>
>>>>> Still we are not able to correlate the issue, I would like to share
>>>>> some more logs. Could you suggest what is happening at the moment?
>>>>>
>>>>> Thanks,
>>>>>
>>>>>


Re: Ignite Client Node Stopped With Out Of Memory

2020-10-28 Thread Ravi Makwana
On Wed, 28 Oct, 2020, 5:55 pm Pavel Tupitsyn,  wrote:

> I found a bug in Ignite [1] which probably causes the issue on your side.
>
> Looks like you are running a query (is it a ScanQuery or SqlQuery?) and
> the size of one results page exceeds 2GB.
> Please try using a smaller value for *QueryBase.PageSize*.
>
> If you use the default value of 1024, your cache entries are very large.
> What does the data look like?
>
> [1] https://issues.apache.org/jira/browse/IGNITE-13635
>
> On Wed, Oct 28, 2020 at 1:43 PM Ravi Makwana 
> wrote:
>
>> Hi,
>>
>> Our service is running with 64 bit and we have verified the same in our
>> app server too.
>>
>> Any finding from the logs?
>>
>> Is there any way to replicate it?
>>
>> Thanks,
>>
>>
>> On Wed, 28 Oct 2020 at 15:47, Pavel Tupitsyn 
>> wrote:
>>
>>> Looks like the app is running in 32 bit mode, which can't use more than
>>> 2GB of memory.
>>> JVM and memory regions pre-allocate all of it, leaving nothing for .NET
>>> to use.
>>>
>>> Please check the `Platform` column in the Task Manager - does it say `32
>>> bit`?
>>> If yes, then try disabling `Prefer 32 bit` in the project properties.
>>>
>>> On Wed, Oct 28, 2020 at 1:06 PM Ravi Makwana 
>>> wrote:
>>>
>>>> Hi Pavel,
>>>>
>>>> Thanks for the information.
>>>>
>>>> We have noticed our service is taking max 2GB memory which is noticed
>>>> in task manager and stopping app pool at same time server memory
>>>> utilization is 80% so we have still memory spare 20%.
>>>>
>>>> Still we are not able to correlate the issue, I would like to share
>>>> some more logs. Could you suggest what is happening at the moment?
>>>>
>>>> Thanks,
>>>>
>>>>


Re: Ignite Client Node Stopped With Out Of Memory

2020-10-28 Thread Ravi Makwana
Hi,

Our service is running with 64 bit and we have verified the same in our app
server too.

Any finding from the logs?

Is there any way to replicate it?

Thanks,


On Wed, 28 Oct 2020 at 15:47, Pavel Tupitsyn  wrote:

> Looks like the app is running in 32 bit mode, which can't use more than
> 2GB of memory.
> JVM and memory regions pre-allocate all of it, leaving nothing for .NET to
> use.
>
> Please check the `Platform` column in the Task Manager - does it say `32
> bit`?
> If yes, then try disabling `Prefer 32 bit` in the project properties.
>
> On Wed, Oct 28, 2020 at 1:06 PM Ravi Makwana 
> wrote:
>
>> Hi Pavel,
>>
>> Thanks for the information.
>>
>> We have noticed our service is taking max 2GB memory which is noticed in
>> task manager and stopping app pool at same time server memory utilization
>> is 80% so we have still memory spare 20%.
>>
>> Still we are not able to correlate the issue, I would like to share some
>> more logs. Could you suggest what is happening at the moment?
>>
>> Thanks,
>>
>>


Ignite Client Node Stopped With Out Of Memory

2020-10-24 Thread Ravi Makwana
Hi,

We are using Apache Ignite 2.7.0 binary and servers are using Linux OS &
app servers are using Windows OS.We are using Apache Ignite .Net APIs.

Recently we have noticed that our application is stopping due to a client
node throwing Out Of Memory error which we have seen in ignite
client node log file.

App server has 32 GB RAM & We are specifying JVM Heap = 8 GB & Data Region
Min = 1 GB & Max = 10 GB.

*Exception:*

class org.apache.ignite.IgniteException: Platform
error:System.OutOfMemoryException: Insufficient memory to continue the
execution of the program.
   at System.Runtime.InteropServices.Marshal.ReAllocHGlobal(IntPtr pv,
IntPtr cb)
   at
Apache.Ignite.Core.Impl.Memory.PlatformMemoryUtils.ReallocatePooled(Int64
memPtr, Int32 cap)
   at
Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.MemoryReallocate(Int64
memPtr, Int64 cap, Int64 unused, Void* arg)
   at
Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.InLongLongLongObjectOutLong(Int32
type, Int64 val1, Int64 val2, Int64 val3, IntPtr arg)
at
org.apache.ignite.internal.processors.platform.PlatformProcessorImpl.loggerLog(PlatformProcessorImpl.java:404)
at
org.apache.ignite.internal.processors.platform.PlatformProcessorImpl.processInStreamOutLong(PlatformProcessorImpl.java:460)
at
org.apache.ignite.internal.processors.platform.PlatformProcessorImpl.processInStreamOutLong(PlatformProcessorImpl.java:512)
at
org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.inStreamOutLong(PlatformTargetProxyImpl.java:67)
at
org.apache.ignite.internal.processors.platform.callback.PlatformCallbackUtils.inLongLongLongObjectOutLong(Native
Method)
at
org.apache.ignite.internal.processors.platform.callback.PlatformCallbackGateway.memoryReallocate(PlatformCallbackGateway.java:840)
at
org.apache.ignite.internal.processors.platform.memory.PlatformExternalMemory.reallocate(PlatformExternalMemory.java:48)
at
org.apache.ignite.internal.processors.platform.memory.PlatformOutputStreamImpl.ensureCapacity(PlatformOutputStreamImpl.java:305)
at
org.apache.ignite.internal.processors.platform.memory.PlatformOutputStreamImpl.unsafeEnsure(PlatformOutputStreamImpl.java:222)
at
org.apache.ignite.internal.binary.BinaryWriterExImpl.doWriteBinaryObject(BinaryWriterExImpl.java:962)
at
org.apache.ignite.internal.binary.BinaryClassDescriptor.write(BinaryClassDescriptor.java:744)
at
org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal0(BinaryWriterExImpl.java:223)
at
org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:164)
at
org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:151)
at
org.apache.ignite.internal.binary.BinaryWriterExImpl.writeObjectDetached(BinaryWriterExImpl.java:1506)
at
org.apache.ignite.internal.processors.platform.cache.query.PlatformQueryCursor.write(PlatformQueryCursor.java:43)
at
org.apache.ignite.internal.processors.platform.cache.query.PlatformQueryCursor.write(PlatformQueryCursor.java:28)
at
org.apache.ignite.internal.processors.platform.cache.query.PlatformAbstractQueryCursor.processOutStream(PlatformAbstractQueryCursor.java:85)
at
org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.outStream(PlatformTargetProxyImpl.java:93)

Can please suggest what is the root cause for the above issue?

Thanks & Regards,


Re: Ignite SqlFieldQuery Unicode Characters Support

2020-06-17 Thread Ravi Makwana
Hi,

We have started our ignite nodes (server & client) with mentioned jvm
parameter and it works fine.

Thanks for the quick response.

Regards,
Ravi Makwana

On Mon, 8 Jun 2020 at 18:49, Ilya Kasnacheev 
wrote:

> Hello!
>
> I have met an error like this one, and my recommendation is that on all
> nodes, client and server, you should set file.encoding to the same value
> (UTF-8 usually, however CJK multi-byte encodings should also work).
>
> Make sure all of your JVMs are launched with -Dfile.encoding=UTF-8.
> ignite.sh should do that already. Make sure you are using the same on
> Windows and Linux.
>
> Regards,
> --
> Ilya Kasnacheev
>
>
> пт, 5 июн. 2020 г. в 14:31, Ravi Makwana :
>
>> Hi,
>>
>> We are using Apache ignite version 2.7 and we have one node cluster with
>> 150 caches out of 150 We have 1 cache which contains Unicode characters
>> like Chinese language.
>>
>> Server node is running on Linux OS & Client node is running on Windows OS.
>>
>> Client side we are using sqlquery & sqlfieldquery to fetch and put &
>> data-streamer to insert data using .net ignite apis.
>>
>> In ignite cache,we have AddressFull property which contains Unicode
>> characters like Chinese language so while inserting we have inserted
>> specified data into AddressFull property which is mentioned below.
>>
>> *"北京市朝阳区安贞西里四区甲1号, 北京, 中国, 100011"*
>>
>> While fetching data from ignite cache we have observed that we are not
>> getting inserted data properly.
>>
>> We have performed below mentioned sqlquery using SqlFieldQuery.
>>
>> SELECT HotelCode,AddressFull FROM HotelOtherLanguageMasterModel WHERE
>> HotelCode = '12345'
>>
>> We got below mentioned result data for AddressFull property.
>>
>> *"北京市�阳区安贞西里四区甲1�, 北京, 中国, 100011"*
>>
>> Based on this test we have couple of questions on the same.
>>
>> 1) Is SqlFieldQuery .net api supporting Unicode characters?
>> 2) If Yes, How do we overcome this issue?
>>
>> Regards,
>> Ravi Makwana
>>
>


RE: Re:RE: Gridgain8.7.14 in kubernetes problem

2020-06-11 Thread Saxena, Ravi (CMS)
This is just a workaround.
Delete your ignite cluster and all the related PV'sand later install with 
different service name
Or you can also try to re-deploy with persistence off

Regards,
Ravi Saxena
Stay home stay safe

From: s [mailto:13581902...@163.com]
Sent: Thursday, June 11, 2020 8:13 AM
To: user@ignite.apache.org; Saxena, Ravi (CMS) 
Subject: Re:RE: Gridgain8.7.14 in kubernetes problem


Could you be more specific



These three pods, I plan to form a cluster



Or, is there a successful configuration running in kubernetes? Can you provide 
it, including config, yaml and JVM parameters? Thank you







At 2020-06-10 17:56:55, "Saxena, Ravi (CMS)" 
mailto:ravi.sax...@hpe.com>> wrote:
Delete and redeploy with different name.

Regards,
Ravi Saxena
Stay home stay safe

From: Denis Magda [mailto:dma...@apache.org]
Sent: Wednesday, June 10, 2020 10:05 AM
To: user mailto:user@ignite.apache.org>>
Subject: Re: Gridgain8.7.14 in kubernetes problem

Hi,

This user list is intended for Ignite questions. Please direct all GridGain 
related questions to their forums<https://forums.gridgain.com/home> or 
StackOverflow.

-
Denis


On Tue, Jun 9, 2020 at 6:59 PM s 
<13581902...@163.com<mailto:13581902...@163.com>> wrote:

Hello



When I used the official image of gridgain8.7.14 to deploy on kubernetes, I 
encountered the problem of slow cluster formation according to the official 
document instructions. In addition, with all the time default parameters, the 
third node cannot join the cluster. The third node reports an error as follows. 
See the attachment for more detailed logs.



Is there a similar problem? Do you need to configure special parameters?


Thank you for your attention.



class org.apache.ignite.IgniteCheckedException: Failed to start SPI: 
TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000, 
marsh=JdkMarshaller 
[clsFilter=org.apache.ignite.marshaller.MarshallerUtils$1@1e287667], 
reconCnt=10, reconDelay=2000, maxAckTimeout=60, soLinger=5, 
forceSrvMode=false, clientReconnectDisabled=false, internalLsnr=null, 
skipAddrsRandomization=false]
at 
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:299)
at 
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:961)
at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1902)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1230)
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2062)
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1733)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1147)
at 
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1065)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:951)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:850)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:720)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:689)
at org.apache.ignite.Ignition.start(Ignition.java:344)
at 
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:299)
Caused by: class org.apache.ignite.spi.IgniteSpiException: Node with the same 
ID was found in node IDs history or existing node in topology has the same ID 
(fix configuration and restart local node) [localNode=TcpDiscoveryNode 
[id=0b1c3da6-7800-4efa-b468-6fd810491590, 
consistentId=12.111.9.34,127.0.0.1:47500<http://127.0.0.1:47500>, 
addrs=ArrayList [12.111.9.34, 127.0.0.1], sockAddrs=HashSet 
[ignite-cluster-57c7f744f9-kcph2/12.111.9.34:47500<http://12.111.9.34:47500>, 
/127.0.0.1:47500<http://127.0.0.1:47500>], discPort=47500, order=0, intOrder=3, 
lastExchangeTime=1591147553777, loc=true, ver=8.7.14#20200320-sha1:419ab454, 
isClient=false], existingNode=0b1c3da6-7800-4efa-b468-6fd810491590]
at 
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.duplicateIdError(TcpDiscoverySpi.java:1997)
at 
org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:1163)
at org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:444)
at 
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:2121)
at 
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:296)
... 13 more
[01:25:53,949][SEVERE][main][IgniteKernal] Got exception while starting (will 
rollback startup routine).
class org.apache.ignite.IgniteCheckedException: Failed to start manager: 
GridManagerAdapter [enabled=true, 
name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]
at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1907)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1230)
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2062)
at 
org.a

RE: Gridgain8.7.14 in kubernetes problem

2020-06-10 Thread Saxena, Ravi (CMS)
Delete and redeploy with different name.

Regards,
Ravi Saxena
Stay home stay safe

From: Denis Magda [mailto:dma...@apache.org]
Sent: Wednesday, June 10, 2020 10:05 AM
To: user 
Subject: Re: Gridgain8.7.14 in kubernetes problem

Hi,

This user list is intended for Ignite questions. Please direct all GridGain 
related questions to their forums<https://forums.gridgain.com/home> or 
StackOverflow.

-
Denis


On Tue, Jun 9, 2020 at 6:59 PM s 
<13581902...@163.com<mailto:13581902...@163.com>> wrote:

Hello



When I used the official image of gridgain8.7.14 to deploy on kubernetes, I 
encountered the problem of slow cluster formation according to the official 
document instructions. In addition, with all the time default parameters, the 
third node cannot join the cluster. The third node reports an error as follows. 
See the attachment for more detailed logs.



Is there a similar problem? Do you need to configure special parameters?


Thank you for your attention.



class org.apache.ignite.IgniteCheckedException: Failed to start SPI: 
TcpDiscoverySpi [addrRslvr=null, sockTimeout=5000, ackTimeout=5000, 
marsh=JdkMarshaller 
[clsFilter=org.apache.ignite.marshaller.MarshallerUtils$1@1e287667], 
reconCnt=10, reconDelay=2000, maxAckTimeout=60, soLinger=5, 
forceSrvMode=false, clientReconnectDisabled=false, internalLsnr=null, 
skipAddrsRandomization=false]
at 
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:299)
at 
org.apache.ignite.internal.managers.discovery.GridDiscoveryManager.start(GridDiscoveryManager.java:961)
at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1902)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1230)
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2062)
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1733)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1147)
at 
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1065)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:951)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:850)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:720)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:689)
at org.apache.ignite.Ignition.start(Ignition.java:344)
at 
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:299)
Caused by: class org.apache.ignite.spi.IgniteSpiException: Node with the same 
ID was found in node IDs history or existing node in topology has the same ID 
(fix configuration and restart local node) [localNode=TcpDiscoveryNode 
[id=0b1c3da6-7800-4efa-b468-6fd810491590, 
consistentId=12.111.9.34,127.0.0.1:47500<http://127.0.0.1:47500>, 
addrs=ArrayList [12.111.9.34, 127.0.0.1], sockAddrs=HashSet 
[ignite-cluster-57c7f744f9-kcph2/12.111.9.34:47500<http://12.111.9.34:47500>, 
/127.0.0.1:47500<http://127.0.0.1:47500>], discPort=47500, order=0, intOrder=3, 
lastExchangeTime=1591147553777, loc=true, ver=8.7.14#20200320-sha1:419ab454, 
isClient=false], existingNode=0b1c3da6-7800-4efa-b468-6fd810491590]
at 
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.duplicateIdError(TcpDiscoverySpi.java:1997)
at 
org.apache.ignite.spi.discovery.tcp.ServerImpl.joinTopology(ServerImpl.java:1163)
at org.apache.ignite.spi.discovery.tcp.ServerImpl.spiStart(ServerImpl.java:444)
at 
org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.spiStart(TcpDiscoverySpi.java:2121)
at 
org.apache.ignite.internal.managers.GridManagerAdapter.startSpi(GridManagerAdapter.java:296)
... 13 more
[01:25:53,949][SEVERE][main][IgniteKernal] Got exception while starting (will 
rollback startup routine).
class org.apache.ignite.IgniteCheckedException: Failed to start manager: 
GridManagerAdapter [enabled=true, 
name=org.apache.ignite.internal.managers.discovery.GridDiscoveryManager]
at org.apache.ignite.internal.IgniteKernal.startManager(IgniteKernal.java:1907)
at org.apache.ignite.internal.IgniteKernal.start(IgniteKernal.java:1230)
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start0(IgnitionEx.java:2062)
at 
org.apache.ignite.internal.IgnitionEx$IgniteNamedInstance.start(IgnitionEx.java:1733)
at org.apache.ignite.internal.IgnitionEx.start0(IgnitionEx.java:1147)
at 
org.apache.ignite.internal.IgnitionEx.startConfigurations(IgnitionEx.java:1065)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:951)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:850)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:720)
at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:689)
at org.apache.ignite.Ignition.start(Ignition.java:344)
at 
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:299)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to start SPI: 
TcpDiscoverySpi [addrRslv

Ignite SqlFieldQuery Unicode Characters Support

2020-06-05 Thread Ravi Makwana
Hi,

We are using Apache ignite version 2.7 and we have one node cluster with
150 caches out of 150 We have 1 cache which contains Unicode characters
like Chinese language.

Server node is running on Linux OS & Client node is running on Windows OS.

Client side we are using sqlquery & sqlfieldquery to fetch and put &
data-streamer to insert data using .net ignite apis.

In ignite cache,we have AddressFull property which contains Unicode
characters like Chinese language so while inserting we have inserted
specified data into AddressFull property which is mentioned below.

*"北京市朝阳区安贞西里四区甲1号, 北京, 中国, 100011"*

While fetching data from ignite cache we have observed that we are not
getting inserted data properly.

We have performed below mentioned sqlquery using SqlFieldQuery.

SELECT HotelCode,AddressFull FROM HotelOtherLanguageMasterModel WHERE
HotelCode = '12345'

We got below mentioned result data for AddressFull property.

*"北京市�阳区安贞西里四区甲1�, 北京, 中国, 100011"*

Based on this test we have couple of questions on the same.

1) Is SqlFieldQuery .net api supporting Unicode characters?
2) If Yes, How do we overcome this issue?

Regards,
Ravi Makwana


Unsubscribe

2018-12-27 Thread Ravi kumar Puri
Unsubscribe


Re: Kerberos installation

2017-08-28 Thread ravi
Hi Evgenii,
  Thanks for the reply. We wanted to use ignite on top of the existing
kerberized hadoop/hive deployment with out any code change(Means used HDFS
as secondary file system and refer ignite specific config files while
accessing hdfs and not writing any java code).
  In this case can you provide the needed ignite config file which has
KerberosHadoopFileSystemFactory and its allowed properties?. We are not
finding the enough documentation.
   Please reply.

Regards
Ravi



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


Re: Loading data from Hive Table into Ignite Cache

2017-08-22 Thread ravi
Hi,
 Thanks for the reply. Using Automatic RDBMS Configuration, Does ignite web
console supports loading the data from Hive Database(No SQL DB- using Hive
Server2 Driver?).
 Can you share some links if any such a sample is available?

Regards
Ravi




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


Loading data from Hive Table into Ignite Cache

2017-08-22 Thread ravi
Hi,
  We have the OLAP application which aggregates the data on configured
interval(day/week) and loads the data into hive tables(HDFS-SNAPPY-ORC File
format). We have the reporting engine which will query the data from these
tables using Hive/Spark SQL.
   Is it possible to load the data from Hive(Once it reaches to Hive Table)
to Ignite cache in a faster manner(Hive as CacheJDBCStore or using Data
Streamer API's or some other means), so that our reporting engine can run
ignite sql and get the benefit of indexing and other ignite native benefits
and respond faster?.
  We are not in favor of using IGFS and run Hive QL using Tez+LLAP+ORC. We
wanted to run native Ignite SQL.
  So please suggest any other alternate approach
  
Regards
Ravi
  



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


Re: Running Spark SQL on Spark Thrift Server with Ignite

2017-08-12 Thread ravi
Hi Val,
  Thanks for the reply. Can you share some example or sample code snippet
for the steps you have explained?. The link you have shared doesn't explain
mapping Hive/Spar RDD to Ignite RDD context?

Regards
Ravi.P



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Running-Spark-SQL-on-Spark-Thrift-Server-with-Ignite-tp16087p16153.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Apache Tez support for Ignite

2017-08-10 Thread ravi
Hi
 Thanks for the details. I have sent the email to subscribe now and got
confirmation back. The reason i have asked the question about Tez and LLAP
is apache hive community has deprecated the MR as execution engine and
moving towards Tez and LLAP, Will Ignite have equivalent In Memory Tez/LLAP
implementation similar to In memory map reduce?.

Regards
Ravi 



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


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-08 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-17 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-16 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-13 Thread Ravi kumar Puri
no i dont have any other version of hibernate. no i was unable to resolve
at that time too. coz i didnt get any proper answer from forum. Now what to
do ?

On Sat, Aug 13, 2016 at 12:40 AM, vkulichenko  wrote:

> Is it possible that you already have another version of Hibernate in your
> application?
>
> Actually, I remember you having the same issue a while ago. Were you able
> to
> resolve it?
>
> -Val
>
>
>
> --
> View this message in context: http://apache-ignite-users.
> 70518.x6.nabble.com/LOOK-THORUGH-THIS-ERROR-tp6977p7023.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.


Re: Clear the cached data?

2016-08-11 Thread Ravi kumar Puri
I will use clear or destroy method.. but in order to invoke that methods i
need ignite object from the server or client loaded classes as i have to
implement that in other class... In order to use in another i need to
create a new instance for ignite and intialise it null. That means i didnt
get any reference from server or clientloaded classes ignite object.
Undeestand?

Suppose

Class A()
Ignite ignite=Ignition.start("ignite-cfg.xml");
Then i create a cache name with this ignite object.

Class B()
In this class i want to use above class ignite object in order to clear the
cache.

So how to use it in class B() so that watever nodes loaded and data cached
in classA() cna be cleared from the scratch??

Understood??
On 11-Aug-2016 15:38, "Alisher Alimov" <alimovalis...@gmail.com> wrote:

> All 2 methods clear cache entries, but also IgniteCache#destroy delete
> cache meta info from all nodes and theoretically IgniteCache#clear will be
> faster to clean cache
>
> With best regards
> Alisher Alimov
> alimovalis...@gmail.com
>
>
>
>
> On 11 авг. 2016 г., at 12:53, Alexey Kuznetsov <akuznet...@gridgain.com>
> wrote:
>
> Alisher, Ravi.
>
> cache.clear() could take a lot of time in case of large grid / many
> entries.
>
> Will cache.destroy() + ignite.getOrCreateCache(ccfg) - faster?
>
> On Thu, Aug 11, 2016 at 4:39 PM, Alisher Alimov <alimovalis...@gmail.com>
> wrote:
>
>> Hi!
>>
>> IgniteCache#close doesn’t clear data by contract for non local caches
>>
>> /**
>>  * Closes this cache instance.
>>  * 
>>  * For local cache equivalent to {@link #destroy()}.
>>  * For distributed caches, if called on clients, stops client cache, if 
>> called on a server node,
>>  * just closes this cache instance and does not destroy cache data.
>>  * 
>>  * After cache instance is closed another {@link IgniteCache} instance for 
>> the same
>>  * cache can be created using {@link Ignite#cache(String)} method.
>>  */
>>
>> To clear cache data you must invoke IgniteCache#clear() it’s will clear
>> cache contents
>>
>> Ignite doesn’t have method to clean data in all cache, but you can use
>>
>> Ignite#cacheNames(cacheName -> Ignite#cache(cacheName).clear())
>>
>> With best regards
>> Alisher Alimov
>> alimovalis...@gmail.com
>>
>>
>>
>>
>> On 11 авг. 2016 г., at 10:14, Alexey Kuznetsov <akuznet...@gridgain.com>
>> wrote:
>>
>> Hi, Ravi.
>>
>> You may close all caches and recreate them (from code).
>> Will this work in your case?
>>
>> On Thu, Aug 11, 2016 at 2:04 PM, Ravi Puri <ravikumarpur...@gmail.com>
>> wrote:
>>
>>> 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.705
>>> 18.x6.nabble.com/Clear-the-cached-data-tp6946.html
>>> Sent from the Apache Ignite Users mailing list archive at Nabble.com
>>> <http://nabble.com/>.
>>>
>>
>>
>>
>> --
>> Alexey Kuznetsov
>> GridGain Systems
>> www.gridgain.com
>>
>>
>>
>
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.com
>
>
>


Re: LOOK THORUGH THIS ERROR

2016-08-11 Thread Ravi kumar Puri
Ignite-hibernate 1.2 incubating jar.. is this what u meant?
On 11-Aug-2016 18:40, "Alisher Alimov" <alimovalis...@gmail.com> wrote:

> Hi!
>
> Can you specify hibernate version that you use?
>
> With best regards
> Alisher Alimov
> alimovalis...@gmail.com
>
>
>
>
> On 11 авг. 2016 г., at 16:01, Ravi Puri <ravikumarpur...@gmail.com> wrote:
>
> java.lang.NoSuchMethodError:
> org.hibernate.SessionFactory.openSession()Lorg/hibernate/Session;
> at
> org.apache.ignite.cache.store.hibernate.CacheHibernateStoreSessionList
> ener.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
> <http://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.


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)

Re: Automatic persistence ?

2016-04-21 Thread Ravi kumar Puri
Yea i tried it.. but i want to use in eclipse n run d demo ..
On 21-Apr-2016 20:26, "Alexey Kuznetsov" <akuznet...@gridgain.com> wrote:

> Hi, Ravi!
>
> Did you try example for POJO store that shipped with Ignite?
>
> See Readme.txt for this example.
>
> https://github.com/apache/ignite/blob/master/examples/schema-import/README.txt
>
> and docs: https://apacheignite.readme.io/docs/automatic-persistence
>
> Hope this help.
>
> On Thu, Apr 21, 2016 at 8:58 PM, Ravi Puri <ravikumarpur...@gmail.com>
> wrote:
>
>> 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.
>>
>
>
>
> --
> Alexey Kuznetsov
> GridGain Systems
> www.gridgain.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.


Re: can we make generic class for cachehibernatepojostore?

2016-04-20 Thread Ravi kumar Puri
I didnt get u... u mean i have to add cachehibernatestore to client
classpath class.

And how can i load it to all d nodes?
As i use only one server n one node
On 21-Apr-2016 00:24, "vkulichenko" <valentin.kuliche...@gmail.com> wrote:

> Hi Ravi,
>
> Currently you need to have the cache store implementation class on all
> nodes. So you need to add CacheHibernatePersonStore on client's classpath
> to
> make it work.
>
> -Val
>
>
>
> --
> View this message in context:
> http://apache-ignite-users.70518.x6.nabble.com/can-we-make-generic-class-for-cachehibernatepojostore-tp4355p4383.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.


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.


Re: how to check whether server and client connected?

2016-04-13 Thread Ravi kumar Puri
How do i connect to client with my server . Tell me something related to
port or host adrzs
On 13-Apr-2016 17:46, "Alexei Scherbakov" <alexey.scherbak...@gmail.com>
wrote:

> Hi,
>
> Every Ignite node works either in server or client mode.
> Server nodes actually contain data and perform grid tasks, while client
> nodes provide API for working with server nodes remotely.
> Refer to https://apacheignite.readme.io/docs/clients-vs-servers for
> details.
>
> Note: where is a notion of "near" cache, which may be useful on client
> nodes for speeding up access to frequently accessed data.
> Refer to https://apacheignite.readme.io/docs/near-caches for details.
>
> 2016-04-13 12:25 GMT+03:00 Ravi Puri <ravikumarpur...@gmail.com>:
>
>> 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.
>>
>
>
>
> --
>
> Best regards,
> Alexei Scherbakov
>


Re: link cache to object class?

2016-04-13 Thread Ravi kumar Puri
So i need to define jst d cache name in configuratn n nothng else as their
attributes .how can i wil be able to relate to class .. even i dnr need any
bean or class path/package in bean form to get name in ignite.xml
configuration
On 13-Apr-2016 17:36, "Denis Magda" <dma...@gridgain.com> wrote:

> Give a cache a name that is related to an objects simple class name.
>
> As an example, you have a class “Person”. Create the cache with the same
> name and get a reference to it using ignite.cache(“Person”)
>
> —
> Denis
>
> > On Apr 13, 2016, at 1:35 PM, Ravi Puri <ravikumarpur...@gmail.com>
> wrote:
> >
> > 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.
>
>


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.


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,

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 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,

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, 

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.


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.


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

binding exception?

2016-02-15 Thread Ravi
as I m running the tomcat server at certain port and then i try to start the
configuration of xml on the same port it shows this exception why?

how to judge which port it is needed and whether ignite nodes can work on
tomcat server or not so what should i do?


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)



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


lock and unlock the cache key?

2016-02-11 Thread Ravi
how it can be performed as i want to lock a particular key and then unlock
it.Suggest me the way how can i check whether key is locked or not?


cache.lock(key)- it locks the key
but how to unlock the key??



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/lock-and-unlock-the-cache-key-tp2950.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


intialize the cache manager?

2016-02-11 Thread Ravi
how to initialize cache manager by passing configuration ignite.xml file
path?



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


Re: lock and unlock the cache key?

2016-02-11 Thread Ravi
tHANKS to all 



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/lock-and-unlock-the-cache-key-tp2950p2958.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: lock and unlock the cache key?

2016-02-11 Thread Ravi
Lock.unlock(long) here long is needed but i want unlock object as key??
as i locked using IgniteCache.lock(key).?





--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/lock-and-unlock-the-cache-key-tp2950p2954.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Set time limit for particular cache

2016-02-02 Thread Ravi
How to set time limit or see time limits of a particular cache??



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Set-time-limit-for-particular-cache-tp2810.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Affinity Key??

2016-01-22 Thread Ravi
what is affinity in practical terms. and affinity is predefined term or we
need to make affinity function?



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


get the all values stored into cache name?

2016-01-19 Thread Ravi
Ignite cachedata=ignite.getOrCreateCache(cacheName)

entered the data into cachedata.put()


how to get all data using cacheName from cachedata??



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/get-the-all-values-stored-into-cache-name-tp2631.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Alternate way of using DBH2ServerStartup ??

2016-01-18 Thread Ravi
thanx now its working.



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Alternate-way-of-using-DBH2ServerStartup-tp2599p2614.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Connection refused via JDBC

2016-01-11 Thread Ravi
Already subscribed.. stil it doesnt goes to mail.what can i do.

Coming to questn where to chnge the connection name n database n localhost
to make it effect?




--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Connection-refused-via-JDBC-tp2490p2492.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.