Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id DD0FC200D60 for ; Fri, 1 Dec 2017 11:48:41 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id DB5D3160C06; Fri, 1 Dec 2017 10:48:41 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2BDBE160BFB for ; Fri, 1 Dec 2017 11:48:41 +0100 (CET) Received: (qmail 71942 invoked by uid 500); 1 Dec 2017 10:48:39 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 71932 invoked by uid 99); 1 Dec 2017 10:48:39 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2017 10:48:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D3A961807A9 for ; Fri, 1 Dec 2017 10:48:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.972 X-Spam-Level: ** X-Spam-Status: No, score=2.972 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, KAM_ASCII_DIVIDERS=0.8, NML_ADSP_CUSTOM_MED=1.2, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id szheufwIXMjB for ; Fri, 1 Dec 2017 10:48:37 +0000 (UTC) Received: from n6.nabble.com (n6.nabble.com [162.255.23.37]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 2F1E45F1BA for ; Fri, 1 Dec 2017 10:48:37 +0000 (UTC) Received: from n6.nabble.com (localhost [127.0.0.1]) by n6.nabble.com (Postfix) with ESMTP id 24D1B332A4C2 for ; Fri, 1 Dec 2017 03:48:35 -0700 (MST) Date: Fri, 1 Dec 2017 03:48:35 -0700 (MST) From: Naveen To: user@ignite.apache.org Message-ID: <1512125315119-0.post@n6.nabble.com> In-Reply-To: <021f01d36521$30189580$9049c080$@tibco.com> References: <01fc01d36506$71f5f530$55e1df90$@tibco.com> <021f01d36521$30189580$9049c080$@tibco.com> Subject: RE: Rest API not working for GET MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Fri, 01 Dec 2017 10:48:42 -0000 I have another case where REST APi is not working. Here is the use case. I am using 2.3, have 4 nodes running as server and one node running as client and rest api is exposed only in the client. I was trying to access the client node which is exposing the rest API Rest API does not seems to be working for the below. http://10.144.114.115:8080/ignite?cmd=get&key=1&cacheName=Person {"successStatus":1,"sessionToken":null,"error":"Failed to handle request: [req=CACHE_GET, err=Failed to find cache for given cache name: Person]","response":null} at java.lang.Thread.run(Thread.java:748) [16:06:26,203][SEVERE][rest-#74%IgnitePOC%][GridCacheCommandHandler] Failed to execute cache command: GridRestCacheRequest [cacheName=Person, cacheFlags=0, ttl=null, super=GridRestRequest [destId=null, clientId=null, addr=/10.139.68.42:55810, cmd=CACHE_GET]] class org.apache.ignite.IgniteCheckedException: Failed to find cache for given cache name: Person at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.localCache(GridCacheCommandHandler.java:815) at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.executeCommand(GridCacheCommandHandler.java:738) at org.apache.ignite.internal.processors.rest.handlers.cache.GridCacheCommandHandler.handleAsync(GridCacheCommandHandler.java:440) at org.apache.ignite.internal.processors.rest.GridRestProcessor.handleRequest(GridRestProcessor.java:266) at org.apache.ignite.internal.processors.rest.GridRestProcessor.access$100(GridRestProcessor.java:89) at org.apache.ignite.internal.processors.rest.GridRestProcessor$2.body(GridRestProcessor.java:155) at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) 0: jdbc:ignite:thin://10.144.114.113> select * from person; +--------------------------------+--------------------------------+--------------------------------+ | ID | NAME | CITY_ID | +--------------------------------+--------------------------------+--------------------------------+ | 3 | Mary Major | 1 | | 1 | John Doe | 3 | | 2 | Jane Roe | 2 | | 4 | Richard Miles | 2 | +--------------------------------+--------------------------------+--------------------------------+ However, for another cache, rest api is working fine. http://10.144.114.115:8080/ignite?cmd=get&key=P100000007&cacheName=Customer Here is the list of tables we have in the cluster. 0: jdbc:ignite:thin://10.144.114.113> !tables +--------------------------------+--------------------------------+--------------------------------+--------------------------------+-------------------------------+ | TABLE_CAT | TABLE_SCHEM | TABLE_NAME | TABLE_TYPE | REMARKS | +--------------------------------+--------------------------------+--------------------------------+--------------------------------+-------------------------------+ | | PUBLIC | CITY | TABLE | | | | Account | ACCOUNT | TABLE | | | | Customer | CUSTOMER | TABLE | | | | PUBLIC | PERSON | TABLE | | +--------------------------------+--------------------------------+--------------------------------+--------------------------------+-------------------------------+ Thanks Naveen -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/