You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by vkulichenko <va...@gmail.com> on 2016/07/20 03:50:49 UTC

Re: https://apacheignite.readme.io/docs/rest-api#destroy-cache

Hi,

Please properly subscribe to the mailing list so that the community can
receive email notifications for you messages. Here is the instruction:
http://apache-ignite-users.70518.x6.nabble.com/mailing_list/MailingListOptions.jtp?forum=1



Marco wrote
> REST API now provides Get/Put/GetAll/PutAll/ContainsKey functions, it's
> amazing, 
> but, is there any sample to explain how to do these for module class
> cache?
> 
> for example: 
*
> personCache&lt;String,classPerson&gt;
*
Currently HTTP REST works only with strings, but there are couple of tickets
to provide better support for custom objects. Please refer to this thread
for details:
http://apache-ignite-users.70518.x6.nabble.com/How-to-use-rest-api-to-put-an-object-into-cache-td5897.html

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/https-apacheignite-readme-io-docs-rest-api-destroy-cache-tp6393p6406.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: The custom object support in REST-API

Posted by vkulichenko <va...@gmail.com>.
Hi Marco,

Can you please subscribe to the mailing list? Just send email to
user-subscribe@ignite.apache.org and follow instructions in the response.

Regarding the issue, please attach *full log files* from both servers.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/The-custom-object-support-in-REST-API-tp6393p6474.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: The custom object support in REST-API

Posted by vkulichenko <va...@gmail.com>.
Hi Marco,

Are you sure you're using 1.6? I can't find the line in the 1.6 codebase,
it's empty there. Can you please attach the whole log?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/The-custom-object-support-in-REST-API-tp6393p6463.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: The custom object support in REST-API

Posted by vkulichenko <va...@gmail.com>.
Marco wrote
> Thank you for the reply, yes, this REST-API project could save a lot of
> time.
> <br/>
> Last month, we launched a jetty project to wrap ignite client node, 
> <br/>
> (Jetty-->RESTController(Query/Put/Get)-->Ignite Client Node) 
> <br/>
> glassfish can do the interpretation between java object and json, but we
> keep suffering from some  connection exceptions.
> <br/>
> <br/>
> 09:45:21,319 ERROR REST_Put2Ignite:31 - class
> org.apache.ignite.IgniteClientDisconnectedException: Operation has been
> cancelled (client node disconnected).
> <br/>
> <br/>

This exception is thrown when the client loses connectivity with servers due
to network issues, or if all servers are down for some reason. Did you check
server logs?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/The-custom-object-support-in-REST-API-tp6393p6424.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: https://apacheignite.readme.io/docs/rest-api#destroy-cache

Posted by vkulichenko <va...@gmail.com>.
Just to clarify: custom object types will be supported based on JSON format.
Main ticket for this is this one:
https://issues.apache.org/jira/browse/IGNITE-962

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/https-apacheignite-readme-io-docs-rest-api-destroy-cache-tp6393p6407.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.