[ https://issues.apache.org/jira/browse/GEODE-2541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15891119#comment-15891119 ]
ASF subversion and git services commented on GEODE-2541: -------------------------------------------------------- Commit 8e30938aae3d1d60735c24ea16459b555addebdb in geode's branch refs/heads/feature/GEODE-2541 from [~khowe] [ https://git-wip-us.apache.org/repos/asf?p=geode.git;h=8e30938 ] Merge remote-tracking branch 'origin/develop' into feature/GEODE-2541 > NetstatDUnitTest fails with ClassCastException > ---------------------------------------------- > > Key: GEODE-2541 > URL: https://issues.apache.org/jira/browse/GEODE-2541 > Project: Geode > Issue Type: Bug > Components: gfsh, tests > Reporter: Kirk Lund > Assignee: Kenneth Howe > Labels: MiscellaneousCommands, NetstatCommand, gfsh, netstat > > This might be a bug in the error handling code for gfsh or the functions used > by MiscellaneousCommands. > {noformat} > org.apache.geode.management.internal.cli.NetstatDUnitTest > > testConnectToJmxManagerOne FAILED > org.junit.ComparisonFailure: [{"errorCode":505,"message":["Could not > process command due to GemFire error. Error occurred while executing netstat > on [server-1]"]}] expected:<[OK]> but was:<[ERROR]> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at > org.apache.geode.test.dunit.rules.GfshShellConnectionRule.executeAndVerifyCommand(GfshShellConnectionRule.java:168) > at > org.apache.geode.management.internal.cli.NetstatDUnitTest.testConnectToJmxManagerOne(NetstatDUnitTest.java:82) > org.apache.geode.management.internal.cli.NetstatDUnitTest > > testConnectToJmxManagerTwo FAILED > java.lang.ClassCastException: java.lang.String cannot be cast to > org.apache.geode.management.internal.cli.result.CommandResult > at > org.apache.geode.test.dunit.rules.GfshShellConnectionRule.executeCommand(GfshShellConnectionRule.java:159) > at > org.apache.geode.test.dunit.rules.GfshShellConnectionRule.executeAndVerifyCommand(GfshShellConnectionRule.java:166) > at > org.apache.geode.management.internal.cli.NetstatDUnitTest.testConnectToJmxManagerTwo(NetstatDUnitTest.java:88) > org.apache.geode.management.internal.cli.NetstatDUnitTest > > testConnectToLocator FAILED > org.junit.ComparisonFailure: [{"errorCode":520,"message":["Could not find > member(s) with Id(s) or name(s): server-1."]}] expected:<[OK]> but > was:<[ERROR]> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native > Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) > at > org.apache.geode.test.dunit.rules.GfshShellConnectionRule.executeAndVerifyCommand(GfshShellConnectionRule.java:168) > at > org.apache.geode.management.internal.cli.NetstatDUnitTest.testConnectToLocator(NetstatDUnitTest.java:76) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)