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

ClassCastException when hitting members REST endpoint

    XMLWordPrintableJSON

    Details

      Description

      This might be similar to https://issues.apache.org/jira/browse/GEODE-8078

      We see a FunctionInvocationTargetException when trying to use the rest endpoint while servers are restarting/recovering

      [error 2020/10/01 21:49:57.381 GMT <qtp507363919-70> tid=0x46] class org.apache.geode.cache.execute.FunctionInvocationTargetException cannot be cast to class org.apache.geode.management.runtime.RuntimeInfo (org.apache.geode.cache.execute.FunctionInvocationTargetException and org.apache.geode.management.runtime.RuntimeInfo are in unnamed module of loader 'app')
      java.lang.ClassCastException: class org.apache.geode.cache.execute.FunctionInvocationTargetException cannot be cast to class org.apache.geode.management.runtime.RuntimeInfo (org.apache.geode.cache.execute.FunctionInvocationTargetException and org.apache.geode.management.runtime.RuntimeInfo are in unnamed module of loader 'app')
      at org.apache.geode.management.internal.api.LocatorClusterManagementService.list(LocatorClusterManagementService.java:459)
      at org.apache.geode.management.internal.api.LocatorClusterManagementService.get(LocatorClusterManagementService.java:476)
      at org.apache.geode.management.internal.rest.controllers.MemberManagementController.getMember(MemberManagementController.java:50)
      at org.apache.geode.management.internal.rest.controllers.MemberManagementController$$FastClassBySpringCGLIB$$3634e452.invoke(<generated>)
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:771)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
      at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:61)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
      at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:749)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:691)
      at org.apache.geode.management.internal.rest.controllers.MemberManagementController$$EnhancerBySpringCGLIB$$ef2756b6.getMember(<generated>)
      at jdk.internal.reflect.GeneratedMethodAccessor237.invoke(Unknown Source)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:566)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jinmeiliao Jinmei Liao
                Reporter:
                jasonhuynh Jason Huynh
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: