Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-2541

NetstatDUnitTest fails with ClassCastException

    XMLWordPrintableJSON

Details

    Description

      This might be a bug in the error handling code for gfsh or the functions used by MiscellaneousCommands.

      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)
      

      Attachments

        Activity

          People

            khowe Ken Howe
            klund Kirk Lund
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: