Return-Path: X-Original-To: apmail-curator-dev-archive@minotaur.apache.org Delivered-To: apmail-curator-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A67C8108E2 for ; Tue, 8 Oct 2013 19:19:13 +0000 (UTC) Received: (qmail 91018 invoked by uid 500); 8 Oct 2013 19:19:09 -0000 Delivered-To: apmail-curator-dev-archive@curator.apache.org Received: (qmail 90907 invoked by uid 500); 8 Oct 2013 19:19:08 -0000 Mailing-List: contact dev-help@curator.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@curator.incubator.apache.org Delivered-To: mailing list dev@curator.incubator.apache.org Received: (qmail 90850 invoked by uid 99); 8 Oct 2013 19:19:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 19:19:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 08 Oct 2013 19:19:05 +0000 Received: (qmail 88288 invoked by uid 99); 8 Oct 2013 19:18:44 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Oct 2013 19:18:44 +0000 Date: Tue, 8 Oct 2013 19:18:44 +0000 (UTC) From: "Jordan Zimmerman (JIRA)" To: dev@curator.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CURATOR-63) ServiceCacheImpl doesn't check if service name is null MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CURATOR-63?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jordan Zimmerman updated CURATOR-63: ------------------------------------ Fix Version/s: TBD > ServiceCacheImpl doesn't check if service name is null > ------------------------------------------------------ > > Key: CURATOR-63 > URL: https://issues.apache.org/jira/browse/CURATOR-63 > Project: Apache Curator > Issue Type: Bug > Components: Recipes > Affects Versions: 2.2.0-incubating > Reporter: Nandor Kracser > Assignee: Jordan Zimmerman > Priority: Trivial > Fix For: TBD > > Attachments: CURATOR-63.patch > > > If not giving a service name with ServiceCacheBuilder.name() the ServiceCache throws a weird Exception later on, because it wants to fetch data from the service group node instead of the service instance node: > Exception in thread "main" java.io.EOFException: No content to map to Object due to end of input > at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2766) > at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2709) > at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1964) > at org.apache.curator.x.discovery.details.JsonInstanceSerializer.deserialize(JsonInstanceSerializer.java:50) > at org.apache.curator.x.discovery.details.ServiceCacheImpl.addInstance(ServiceCacheImpl.java:178) > at org.apache.curator.x.discovery.details.ServiceCacheImpl.start(ServiceCacheImpl.java:81) -- This message was sent by Atlassian JIRA (v6.1#6144)