ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "16616221@qq.com" <16616...@qq.com>
Subject How to put a POJO bean value to cache by rest api?
Date Wed, 23 Mar 2016 09:55:34 GMT
hi experts,

I want to put a POJO bean as the value to cache by rest api. I use json
string as the url parameter,like
http://localhost:8080/ignite?cmd=put&key=2&cacheName=TestTable1Cache&val={"attr1":"data1","attr2":"data2"}

But I got java.lang.ClassCastException: java.lang.String cannot be cast to
org.apache.ignite.Testtable1

Any suggestion will be appreciated´╝ü 

Tony




--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-put-a-POJO-bean-value-to-cache-by-rest-api-tp3639.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message