SQL Transactional Support for Commit and rollback operation.

2018-04-11 Thread Priyanka Shinde
Hi Igniters,

I am using ignite version 2.3 and using ignite tables to store the data, but
for commit and rollback operations on tables, "Transaction not supported"
exception is thrown. As per the documentation of ignite the same is going to
get released in ignite version 2.5 but according to ticket
https://issues.apache.org/jira/browse/IGNITE-4191 the same is going to get
released in version 2.6.
May I know the tentative release date for both the ignite versions.

Thanks and regards,
Priyanka.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite cache get operation not working, client application stucks at the initializaiton

2018-04-11 Thread Priyanka Shinde
Thanks Evgenii for you support. In contactDAO class I was using the logger
which was at instance level and not defined at class level and was getting
serialized.I modified the same and now using it at class level.It is
working.Thanks once again.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite cache get operation not working, client application stucks at the initializaiton

2018-04-10 Thread Priyanka Shinde
Hi,

I have provided the absolute path of the log4j.xml and logs were generated
in the application logs itself.Attaching the same.

C‪lient_logs.txt

  



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite cache get operation not working, client application stucks at the initializaiton

2018-04-10 Thread Priyanka Shinde
Hi Evengii,

I have provided the Absolute path for log4j.xml and logs are generated.A
C‪lient_logs.txt

 
ttaching the same



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite cache get operation not working, client application stucks at the initializaiton

2018-04-09 Thread Priyanka Shinde
Hi,

*You need to find field "ht" in your objects*

I am not quite sure what is field "ht" exactly means and how to find that in
my objects? I directly search for the exact keyword "ht" in my objects but
did not find anything.

*It's needed to have the same files for both client and server nodes. *

I run the instance of Ignite using ignite.bat which runs the ignite instance
in server mode by default and then I run the client applications using
ignite.setClient(true) which runs the application in ignite client mode. So
Both server and client can not have the same files but 2 clients are sharing
the same files. 

*
I've asked in the previous message to provide logs from client nodes, could 
you please share it? *

As I mentioned previously, When I run the application using run
configuration "-DIGNITE_QUIET=false" Infinite client logs gets printed in
the console which can not be shared, though I have shared the exact
exception to you from client logs.

Also I have tried to configure logging by referring below link
https://apacheignite.readme.io/docs/logging.
included dependency,

org.apache.ignite
ignite-log4j
2.3.0


and provided below property in config.xml file,


  

  

Also mentioned log4j.xml in the resources folder of the applicaiton. but
getting below error while running the application.

org.apache.ignite.IgniteException: Failed to instantiate Spring XML
application context
[springUrl=file:/D:/cache/apache-ignite-fabric-2.3.0-bin/apache-ignite-fabric-2.3.0-bin/config/default-config.xml,
err=Error creating bean with name 'grid.cfg' defined in URL
[file:/D:/cache/apache-ignite-fabric-2.3.0-bin/apache-ignite-fabric-2.3.0-bin/config/default-config.xml]:
Cannot create inner bean 'org.apache.ignite.logger.log4j.Log4JLogger#48d85e'
of type [org.apache.ignite.logger.log4j.Log4JLogger] while setting bean
property 'gridLogger'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'org.apache.ignite.logger.log4j.Log4JLogger#48d85e' defined in URL
[file:/D:/cache/apache-ignite-fabric-2.3.0-bin/apache-ignite-fabric-2.3.0-bin/config/default-config.xml]:
Bean instantiation via constructor failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[org.apache.ignite.logger.log4j.Log4JLogger]: Constructor threw exception;
nested exception is class org.apache.ignite.IgniteCheckedException: Log4j
configuration path was not found: log4j.xml]


Appreciate your early response.
Thanks in advance.
 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite cache get operation not working, client application stucks at the initializaiton

2018-04-01 Thread Priyanka Shinde
Hi Evgenii,

Could you please tell me how to check the type of field  "ht" of model? 
I am currently running only one server node so I do not find any problem of
version mismatch.

Following are the Usecases:

1. Running same application parallely in client mode on same machine :
everything works fine.creating all the caches and values are getting
inserted into it.

2. Running same application in parallely in client mode from two different
machines : Application starts only on one machine and gets stuck on other.
the exception which I found  in the client logs have already messaged you
before. i.e.
Failed 
to process message [senderId=0bfb35f1-d9a9-45db-945c-9001e650452c, 
messageType=class 
o.a.i.i.processors.cache.distributed.near.GridNearLockResponse] 
class org.apache.ignite.IgniteException: Failed to create string 
representation of binary object. 

Also When I run the client application it prints infinite logs on the
eclipse console and application does not start.So I have shared the client
thread dump with you. Please let me know any solution over this.

Thanks and regards,
Priyanka




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite cache get operation not working, client application stucks at the initializaiton

2018-03-30 Thread Priyanka Shinde
Hi Evgenii,

Please find the logs.
ignite-client-thread-dump.txt

  
ignite-server-log.txt

  



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Re: Ignite cache get operation not working, client application stucks at the initializaiton

2018-03-30 Thread Priyanka Shinde
Thank You for the reply Evgenii.

I have shared server logs and client thread dump in my earlier message.
I have tried to reproduce the similar use case in the sample project but not
able to reproduce the exact scenario. I did not get any exception while
running the sample project.
But while running my application, I have found following Exception in the
client logs.

[2018-03-30 18:44:09,075][ERROR][sys-stripe-0-#1][GridCacheIoManager] Failed
to process message [senderId=0bfb35f1-d9a9-45db-945c-9001e650452c,
messageType=class
o.a.i.i.processors.cache.distributed.near.GridNearLockResponse]
class org.apache.ignite.IgniteException: Failed to create string
representation of binary object.
at
org.apache.ignite.internal.util.tostring.GridToStringBuilder.toStringImpl(GridToStringBuilder.java:908)
at
org.apache.ignite.internal.util.tostring.GridToStringBuilder.toString(GridToStringBuilder.java:757)
at
org.apache.ignite.internal.util.tostring.GridToStringBuilder.toString(GridToStringBuilder.java:720)
at
org.apache.ignite.internal.processors.cache.distributed.GridDistributedLockResponse.toString(GridDistributedLockResponse.java:299)
at
org.apache.ignite.internal.processors.cache.distributed.near.GridNearLockResponse.toString(GridNearLockResponse.java:328)
at java.lang.String.valueOf(String.java:2849)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at
org.apache.ignite.internal.processors.cache.GridCacheIoManager.processMessage(GridCacheIoManager.java:1066)
at
org.apache.ignite.internal.processors.cache.GridCacheIoManager.onMessage0(GridCacheIoManager.java:579)
at
org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:378)
at
org.apache.ignite.internal.processors.cache.GridCacheIoManager.handleMessage(GridCacheIoManager.java:304)
at
org.apache.ignite.internal.processors.cache.GridCacheIoManager.access$100(GridCacheIoManager.java:99)
at
org.apache.ignite.internal.processors.cache.GridCacheIoManager$1.onMessage(GridCacheIoManager.java:293)
at
org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1555)
at
org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:1183)
at
org.apache.ignite.internal.managers.communication.GridIoManager.access$4200(GridIoManager.java:126)
at
org.apache.ignite.internal.managers.communication.GridIoManager$9.run(GridIoManager.java:1090)
at
org.apache.ignite.internal.util.StripedExecutor$Stripe.run(StripedExecutor.java:505)
at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.IgniteException: Failed to create string
representation of binary object.
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.toString(BinaryObjectExImpl.java:189)
at
org.apache.ignite.internal.binary.BinaryObjectImpl.toString(BinaryObjectImpl.java:853)
at java.lang.String.valueOf(String.java:2849)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at java.util.AbstractCollection.toString(AbstractCollection.java:458)
at java.lang.String.valueOf(String.java:2849)
at
org.apache.ignite.internal.util.GridStringBuilder.a(GridStringBuilder.java:101)
at
org.apache.ignite.internal.util.tostring.GridToStringBuilder.toStringImpl(GridToStringBuilder.java:884)
... 18 more
Caused by: class org.apache.ignite.binary.BinaryObjectException: Failed to
read field: ht
at
org.apache.ignite.internal.binary.BinaryReaderExImpl.wrapFieldException(BinaryReaderExImpl.java:444)
at
org.apache.ignite.internal.binary.BinaryReaderExImpl.unmarshalField(BinaryReaderExImpl.java:341)
at
org.apache.ignite.internal.binary.BinaryObjectImpl.field(BinaryObjectImpl.java:625)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.toString(BinaryObjectExImpl.java:225)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.appendValue(BinaryObjectExImpl.java:280)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.toString(BinaryObjectExImpl.java:229)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.appendValue(BinaryObjectExImpl.java:280)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.toString(BinaryObjectExImpl.java:229)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.appendValue(BinaryObjectExImpl.java:280)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.toString(BinaryObjectExImpl.java:229)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.appendValue(BinaryObjectExImpl.java:280)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.toString(BinaryObjectExImpl.java:229)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.appendValue(BinaryObjectExImpl.java:280)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.toString(BinaryObjectExImpl.java:229)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.appendValue(BinaryObjectExImpl.java:280)
at
org.apache.ignite.internal.binary.BinaryObjectExImpl.toString(BinaryObjectExImpl.java:229)
at

Re: Ignite cache get operation not working, client application stucks at the initializaiton

2018-03-30 Thread Priyanka Shinde
Hi,
Following is one of my cache configurations (we have same configuration for
all 3 caches)

CacheConfiguration queueGrpcfg= new
CacheConfiguration<>("queueGrpCache");

queueGrpcfg.setCacheMode(CacheMode.REPLICATED);
queueGrpcfg.setAtomicityMode(CacheAtomicityMode.TRANSACTIONAL);
queueGrpcfg.setIndexedTypes(Integer.class,QueueGroup.class);
queueGrpcfg.setCopyOnRead(false);
queueGrpcfg.setStoreKeepBinary(true); 
queueGrpcfg.setRebalanceMode(CacheRebalanceMode.SYNC);
queueGrpcfg.setWriteSynchronizationMode(CacheWriteSynchronizationMode.FULL_SYNC);

queueGrpcache = ignite.getOrCreateCache(queueGrpcfg);

Member variables of QueueGroup Object :

private int id; 
private String name;
private int tenantGroupId;
private int qsThreadPriority;
private int qsSleepTime;
private int qaThreadPriority;
private int qaSleepTime;
private int maxRecords;
private float queryFactor;
private int minRecords;
private int scanDelay;
private int tsMaxTimerTasks;
private int tsMinTimeoutTime;   
private int ronaScanDelay;
private int ronaMaxTimerTasks;
private int ronaMinTimeoutTime;
private int failureCount;
private String startTime;
private String endTime;
private boolean isRunningInNBH; 
private Set queueSet;
private boolean running = false;
private BusinessHoursController businessHoursController;
private ContactDAO contactDAO;
private QueueGroupStrategy strategy;
private static int queueTimeout = 
ServerProperties.getQueueTimeOutInMins(); 
private int calendarId;
private long lastBHEndTime;
private long lastBHStartTime;
private long lastOffsetUpdateTime;
private int maxSlaRecords;
private int channelId;


During Initialization I put all the data in the cache.
queueGrpcache.put(queueGrpId, QueueGroup Object)

Also We have a multi-threaded application where we run thread per queuegroup
in businesshours.
Quick Response is really appreciated.

Thanks and Regards,
Priyanka 






--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/


Ignite cache get operation not working, client application stucks at the initializaiton

2018-03-26 Thread Priyanka Shinde
Hi Igniters,

We have 1 server node and my application starts in client mode. We have
created 3 caches in client application namely Queuecache, Queuegroupcache
and agentcache. 
During Initialization we put all the values in cache by cache.put operation
and referred the values from the cache using cache.get operation whenever
required. The values populated in the cache depends on the server Id that we
provide as a input during Initialization.

Once I start the application from one machine, all the caches are being
created successfully. I checked the status in the visor I can see one server
and one client running. Now I start the same application in client mode from
other machine but it gets stuck at cache.get operation or cache.iterator
operation and It does not move ahead.

When I tried to debug the application I found that thread has already taken
a lock on the cache so it went into waiting state and application stuck
while getting or iterating over the data.



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/