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 B1436200D2D for ; Fri, 27 Oct 2017 13:04:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 92C71160BDC; Fri, 27 Oct 2017 11:04:06 +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 D8F3B1609E9 for ; Fri, 27 Oct 2017 13:04:05 +0200 (CEST) Received: (qmail 31809 invoked by uid 500); 27 Oct 2017 11:04:05 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 31800 invoked by uid 99); 27 Oct 2017 11:04:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Oct 2017 11:04:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 45F911A18FA for ; Fri, 27 Oct 2017 11:04:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id QjhtK5jtuB9Y for ; Fri, 27 Oct 2017 11:04:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id AF52461172 for ; Fri, 27 Oct 2017 11:04:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CA8ACE0D5C for ; Fri, 27 Oct 2017 11:04:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 844D6212F7 for ; Fri, 27 Oct 2017 11:04:00 +0000 (UTC) Date: Fri, 27 Oct 2017 11:04:00 +0000 (UTC) From: =?utf-8?Q?Juan_Jos=C3=A9_Ramos_Cassella_=28JIRA=29?= To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (GEODE-3292) Embedded PULSE Connection Failure When jmx-manager-bind-address != localhost MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 27 Oct 2017 11:04:06 -0000 [ https://issues.apache.org/jira/browse/GEODE-3292?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Juan Jos=C3=A9 Ramos Cassella resolved GEODE-3292. --------------------------------------------- Resolution: Fixed Fix Version/s: 1.3.0 > Embedded PULSE Connection Failure When jmx-manager-bind-address !=3D loca= lhost > -------------------------------------------------------------------------= --- > > Key: GEODE-3292 > URL: https://issues.apache.org/jira/browse/GEODE-3292 > Project: Geode > Issue Type: Bug > Components: pulse > Reporter: Juan Jos=C3=A9 Ramos Cassella > Assignee: Juan Jos=C3=A9 Ramos Cassella > Priority: Minor > Fix For: 1.3.0 > > > The PULSE webApp (embedded mode) fails to connect to the jmx-manager when= a non-default {{jmx-manager-bind-address}} is configured. The app tries to= connect by default to {{service:jmx:rmi://localhost/jndi/rmi://localhost:1= 7991/jmxrmi}} whenever it detects it's running in embedded mode, instead of= getting the local hostname through {{InetAddress.getLocalHost().getCanonic= alHostName()}} as it used to do before. > The problem was introduced by [GEODE-2927|https://issues.apache.org/jira/= browse/GEODE-2927], commit [0f978a6df711d04e0c7c1926fb1e297d07c21aa3|https:= //git-wip-us.apache.org/repos/asf?p=3Dgeode.git;h=3D0f978a6]. > Steps to reproduce: > {code:none} > $ export JAVA_ARGS=3D"-Dgfsh.log-level=3Dconfig -Dgfsh.log-dir=3D$(pwd)" > $ gfsh start locator --name=3Dlocator1 --force=3Dtrue --connect=3Dfalse \ > --J=3D-Dpulse.Log-Level=3Ddebug --J=3D-Dpulse.Log-File-Name=3Dpulse.l= og --J=3D-Dpulse.Log-FileLocation=3D$(pwd) \ > --J=3D-Dgemfire.jmx-manager=3Dtrue --J=3D-Dgemfire.jmx-manager-start= =3Dtrue --J=3D-Dgemfire.jmx-manager-port=3D17991 \ > --J=3D-Dgemfire.jmx-manager-bind-address=3D$(ipconfig getifaddr en0) > $ gfsh start pulse > {code} > At this point, and after a successful login to PULSE, the application doe= sn't show any cluster data and the exception can be seen (both in the logs = and in the PULSE screen). > The easiest solution would be to revert back some lines of the changes ma= de by commit [0f978a6df711d04e0c7c1926fb1e297d07c21aa3|https://git-wip-us.a= pache.org/repos/asf?p=3Dgeode.git;h=3D0f978a6], as follows: > {code:title=3DPulseAppListener.java|borderStyle=3Dsolid} > @Override > public void contextInitialized(ServletContextEvent event) { > =09(...) > boolean sysIsEmbedded =3D Boolean.getBoolean(PulseConstants.SYSTEM_PR= OPERTY_PULSE_EMBEDDED); > if (sysIsEmbedded) { > // jmx connection parameters > logger.info(resourceBundle.getString("LOG_MSG_APP_RUNNING_EMBEDDED_= MODE")); > repository.setJmxUseLocator(false); > //-----------------------------------------------------------------= ----------------------- > =09 String sysPulseHost; > try { > // Get host name of machine running pulse in embedded mode > sysPulseHost =3D InetAddress.getLocalHost().getCanonicalHostName(= ); > } catch (Exception e) { > logger.debug(resourceBundle.getString("LOG_MSG_JMX_CONNECTION_UNK= NOWN_HOST"), e); > // Set default host name > sysPulseHost =3D PulseConstants.GEMFIRE_DEFAULT_HOST; > } > repository.setHost(sysPulseHost); > //-----------------------------------------------------------------= ----------------------- > repository.setPort(System.getProperty(PulseConstants.SYSTEM_PROPERT= Y_PULSE_PORT, > PulseConstants.GEMFIRE_DEFAULT_PORT)); > // SSL, all the other system properties are already set in the embe= dded VM > repository.setUseSSLManager( > Boolean.valueOf(System.getProperty(PulseConstants.SYSTEM_PROPER= TY_PULSE_USESSL_MANAGER))); > repository.setUseSSLLocator( > Boolean.valueOf(System.getProperty(PulseConstants.SYSTEM_PROPER= TY_PULSE_USESSL_LOCATOR))); > =09(...) > } > {code} > I can make the changes and submit a PR if someone assigns me this ticket. > Cheers. -- This message was sent by Atlassian JIRA (v6.4.14#64029)