Naveen, you should analyze logs, it will show exception. If you really can't get anything from logs, please provide them to the community.
Evgenii 2018-01-03 13:58 GMT+03:00 Naveen <[email protected]>: > Hi Evgenii > > Yes, I have tried BinaryObjects, still does not seems to be working. > > Here is the code snippet I have used > > Ignite DDL is > > DROP TABLE IF EXISTS TEST_CACHE; > CREATE TABLE TEST_CACHE > ( > ASSOCIATE_ID VARCHAR(200) NULL, > MAPPING_ID VARCHAR(4000), > SYNCREQUIRED VARCHAR(100) NULL, > SYNCTO VARCHAR(10) NULL, > ADB_SOURCE CHAR(1) NULL, > PRIMARY KEY (MAPPING_ID)) > WITH "template=partitioned,backups=1,cache_name=TEST_CACHE, > key_type=com.ril.edif.model.TEST_CACHE.Key, > value_type=com.ril.edif.model.TEST_CACHE.Value"; > > When I tried the rest API with the below URL > > http://10.144.96.142:8080/ignite?cmd=get&key=M111&cacheName=TEST_CACHE > > Here is the response, it did not return the data and I dont see anything in > teh logs as well > > {"successStatus":0,"affinityNodeId":"b47daca7- > 5aae-470e-a86b-ec793cc90d48","sessionToken":null,"error": > null,"response":null} > > However size command works fine for the same cache > > http://10.144.96.142:8080/ignite?cmd=size&cacheName=TEST_CACHE > > Response: > {"successStatus":0,"affinityNodeId":null,"sessionToken":null,"error": > null,"response":2} > > I was thinking that, because of key and value classes are on the node's > classpath it may not be working. Then I have created below mentioned Java > POJOs - Key and Value classes > > ************************************ > package com.ril.edif.model; > > > public class TEST_CAHCE_KEY { > > private String MAPPING_ID; > > public String getMAPPING_ID() { > return MAPPING_ID; > } > > public void setMAPPING_ID(String mAPPING_ID) { > MAPPING_ID = mAPPING_ID; > } > > > } > *********************************************** > package com.ril.edif.model; > > import org.apache.ignite.cache.query.annotations.QuerySqlField; > > public class TEST_CACHE_VALUE { > > public String getASSOCIATE_ID() { > return ASSOCIATE_ID; > } > public void setASSOCIATE_ID(String aSSOCIATE_ID) { > ASSOCIATE_ID = aSSOCIATE_ID; > } > public String getMAPPING_ID() { > return MAPPING_ID; > } > public void setMAPPING_ID(String mAPPING_ID) { > MAPPING_ID = mAPPING_ID; > } > public String getSYNCREQUIRED() { > return SYNCREQUIRED; > } > public void setSYNCREQUIRED(String sYNCREQUIRED) { > SYNCREQUIRED = sYNCREQUIRED; > } > public String getSYNCTO() { > return SYNCTO; > } > public void setSYNCTO(String sYNCTO) { > SYNCTO = sYNCTO; > } > public String getADB_SOURCE() { > return ADB_SOURCE; > } > public void setADB_SOURCE(String aDB_SOURCE) { > ADB_SOURCE = aDB_SOURCE; > } > > private String ASSOCIATE_ID; > > private String MAPPING_ID; > > private String SYNCREQUIRED; > > private String SYNCTO; > > private String ADB_SOURCE; > > } > ********************************************************** > Still, no luck, I was getting teh same response, no data is returned. > > What could be wrong with this > > Thanks > Naveen > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >
