[jira] [Updated] (GEODE-1203) gfsh connect --use-http reports a ClassNotFoundException
[ https://issues.apache.org/jira/browse/GEODE-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dan Smith updated GEODE-1203: - Component/s: rest (admin) > 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) >Reporter: Dan Smith > > 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)
[jira] [Updated] (GEODE-1203) gfsh connect --use-http reports a ClassNotFoundException
[ https://issues.apache.org/jira/browse/GEODE-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dan Smith updated GEODE-1203: - Affects Version/s: 1.0.0-incubating.M2 > 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 > > 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)
[jira] [Updated] (GEODE-1203) gfsh connect --use-http reports a ClassNotFoundException
[ https://issues.apache.org/jira/browse/GEODE-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dan Smith updated GEODE-1203: - Fix Version/s: 1.0.0-incubating.M3 > 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 > 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)
[jira] [Updated] (GEODE-1203) gfsh connect --use-http reports a ClassNotFoundException
[ https://issues.apache.org/jira/browse/GEODE-1203?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] William Markito Oliveira updated GEODE-1203: Sprint: 1.0.0-incubating.M3 > 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 > 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)