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 19456200B20 for ; Wed, 11 May 2016 22:19:18 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 17A82160A18; Wed, 11 May 2016 20:19:18 +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 5F67D160A17 for ; Wed, 11 May 2016 22:19:17 +0200 (CEST) Received: (qmail 75466 invoked by uid 500); 11 May 2016 20:19:16 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 75457 invoked by uid 99); 11 May 2016 20:19:16 -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; Wed, 11 May 2016 20:19:16 +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 144C3180226 for ; Wed, 11 May 2016 20:19:16 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.021 X-Spam-Level: X-Spam-Status: No, score=-4.021 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id tBPefirZq8YJ for ; Wed, 11 May 2016 20:19:15 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id F04C75F24B for ; Wed, 11 May 2016 20:19:13 +0000 (UTC) Received: (qmail 74933 invoked by uid 99); 11 May 2016 20:19:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 May 2016 20:19:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id F099F2C1F6B for ; Wed, 11 May 2016 20:19:12 +0000 (UTC) Date: Wed, 11 May 2016 20:19:12 +0000 (UTC) From: "Jinmei Liao (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (GEODE-1203) gfsh connect --use-http reports a ClassNotFoundException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 11 May 2016 20:19:18 -0000 [ https://issues.apache.org/jira/browse/GEODE-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jinmei Liao reassigned GEODE-1203: ---------------------------------- Assignee: Jinmei Liao > gfsh connect --use-http reports a ClassNotFoundException > -------------------------------------------------------- > > Key: GEODE-1203 > URL: https://issues.apache.org/jira/browse/GEODE-1203 > Project: Geode > Issue Type: Bug > Components: rest (admin) > Affects Versions: 1.0.0-incubating.M2 > Reporter: Dan Smith > Assignee: Jinmei Liao > Fix For: 1.0.0-incubating.M3 > > > Connecting with the admin REST API is now broken. I think it's because the spring-web jar is no longer placed in the lib directory or added to the gfsh-deps.jar. In geode-assembly/build.gradle, the gfshDepsJars tries to add spring-web to the classpath, but it is not actually part of the runtime configuration so this expression evaluates to null > {code} > def springWeb = configurations.runtime.collect { it.getName() }.find { it.contains('spring-web') } > {code} > {noformat} > gfsh>connect --use-http --url=http://localhost:7070/gemfire/v1 > Exception in thread "Gfsh Launcher" java.lang.NoClassDefFoundError: org/springframework/http/client/ClientHttpRequestFactory > at com.gemstone.gemfire.management.internal.cli.commands.ShellCommands.connect(ShellCommands.java:214) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:216) > at com.gemstone.gemfire.management.internal.cli.shell.GfshExecutionStrategy.execute(GfshExecutionStrategy.java:110) > at org.springframework.shell.core.AbstractShell.executeCommand(AbstractShell.java:127) > at com.gemstone.gemfire.management.internal.cli.shell.Gfsh.promptLoop(Gfsh.java:891) > at org.springframework.shell.core.JLineShell.run(JLineShell.java:179) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.ClassNotFoundException: org.springframework.http.client.ClientHttpRequestFactory > at java.net.URLClassLoader.findClass(URLClassLoader.java:381) > at java.lang.ClassLoader.loadClass(ClassLoader.java:424) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) > at java.lang.ClassLoader.loadClass(ClassLoader.java:357) > ... 11 more > Exception in thread "main" java.lang.NullPointerException > at com.gemstone.gemfire.management.internal.cli.Launcher.parseOptions(Launcher.java:235) > at com.gemstone.gemfire.management.internal.cli.Launcher.parseCommandLine(Launcher.java:243) > at com.gemstone.gemfire.management.internal.cli.Launcher.main(Launcher.java:95) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)