Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JMX] exception in admin server after cache server disconnected #137

Open
dsukhoroslov opened this issue Jan 4, 2018 · 0 comments
Open
Assignees

Comments

@dsukhoroslov
Copy link
Owner

  • run cache server, get it populated
  • start admin server, connect to cache server
  • open JMX console, explore active schema stats
  • shut down cache server
  • admin server still refresh server stats:
     [java] 2018-01-04 09:38:08.763 [hz.client_0.cluster-] WARN  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Exception during initial connection to [localhost]:10150, exception com.hazelcast.core.HazelcastException: java.net.ConnectException: Connection refused: no further information
     [java] 2018-01-04 09:38:08.765 [hz.client_0.cluster-] INFO  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Trying to connect to [localhost]:10150 as owner member
     [java] 2018-01-04 09:38:09.766 [hz.client_0.cluster-] WARN  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Exception during initial connection to [localhost]:10150, exception com.h
azelcast.core.HazelcastException: java.net.ConnectException: Connection refused: no further information
     [java] 2018-01-04 09:38:09.767 [hz.client_0.cluster-] WARN  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Unable to get alive cluster connection, try in 996 ms later, attempt 2 of 3.
     [java] 2018-01-04 09:38:10.763 [hz.client_0.cluster-] INFO  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Trying to connect to [localhost]:10150 as owner member
     [java] 2018-01-04 09:38:11.764 [hz.client_0.cluster-] WARN  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Exception during initial connection to [localhost]:10150, exception com.hazelcast.core.HazelcastException: java.net.ConnectException: Connection refused: no further information
     [java] 2018-01-04 09:38:11.764 [hz.client_0.cluster-] INFO  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Trying to connect to [localhost]:10150 as owner member
     [java] 2018-01-04 09:38:12.765 [hz.client_0.cluster-] WARN  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Exception during initial connection to [localhost]:10150, exception com.hazelcast.core.HazelcastException: java.net.ConnectException: Connection refused: no further information
     [java] 2018-01-04 09:38:12.766 [hz.client_0.cluster-] WARN  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Unable to get alive cluster connection, try in 998 ms later, attempt 3 of 3.
     [java] 2018-01-04 09:38:13.764 [hz.client_0.cluster-] WARN  com.hazelcast.client.spi.impl.ClusterListenerSupport - hz.client_0 [YCSB] [3.8.7] Could not re-connect to cluster shutting down the clientUnable to connect to any address in the config! The following addresses were tried: [[localhost]:10150]
     [java] 2018-01-04 09:38:13.766 [hz.client_0.clientShutdown-] INFO  com.hazelcast.core.LifecycleService - hz.client_0 [YCSB] [3.8.7] HazelcastClient 3.8.7 (20171109 - 0fe6297) is SHUTTING_DOWN
     [java] 2018-01-04 09:38:13.993 [hz.hzInstance.event-3] INFO  com.bagri.client.hazelcast.impl.ClientManagementImpl - disconnect; it seems the server has been stopped already
     [java] 2018-01-04 09:38:13.994 [hz.hzInstance.event-3] INFO  com.bagri.client.hazelcast.impl.ClientManagementImpl - disconnect; attempted to shutdown not-running client!
     [java] 2018-01-04 09:38:14.609 [hz.client_0.clientShutdown-] INFO  com.hazelcast.core.LifecycleService - hz.client_0 [YCSB] [3.8.7] HazelcastClient 3.8.7 (20171109 - 0fe6297) is SHUTDOWN
     [java] 2018-01-04 09:38:14.614 [RMI TCP Connection(6)-192.168.56.1] ERROR com.bagri.server.hazelcast.management.DocumentManagement - getTotalsStatistics.error: com.hazelcast.client.HazelcastClientNotActiveException: Not able to setup owner connection!
     [java] java.util.concurrent.ExecutionException: com.hazelcast.client.HazelcastClientNotActiveException: Not able to setup owner connection!
     [java]     at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:108) ~[hazelcast-all-3.8.7.jar:3.8.7]
     [java]     at com.hazelcast.client.spi.impl.ClientInvocationFuture.resolveAndThrowIfException(ClientInvocationFuture.java:32) ~[hazelcast-all-3.8.7.jar:3.8.7]
     [java]     at com.hazelcast.spi.impl.AbstractInvocationFuture.get(AbstractInvocationFuture.java:183) ~[hazelcast-all-3.8.7.jar:3.8.7]
     [java]     at com.hazelcast.client.util.ClientDelegatingFuture.get(ClientDelegatingFuture.java:127) ~[hazelcast-all-3.8.7.jar:3.8.7]
     [java]     at com.hazelcast.client.util.ClientDelegatingFuture.get(ClientDelegatingFuture.java:118) ~[hazelcast-all-3.8.7.jar:3.8.7]
     [java]     at com.bagri.server.hazelcast.management.SchemaFeatureManagement.getTotalsStatistics(SchemaFeatureManagement.java:115) ~[classes/:na]
     [java]     at com.bagri.server.hazelcast.management.DocumentManagement.collectTotals(DocumentManagement.java:116) [classes/:na]
     [java]     at com.bagri.server.hazelcast.management.DocumentManagement.getTotalCounts(DocumentManagement.java:110) [classes/:na]
     [java]     at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source) ~[na:na]
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_112]
     [java]     at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_112]
     [java]     at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71) [na:1.8.0_112]
     [java]     at sun.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) ~[na:na]
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_112]
     [java]     at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_112]
     [java]     at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275) [na:1.8.0_112]
     [java]     at javax.management.modelmbean.RequiredModelMBean$4.run(RequiredModelMBean.java:1252) [na:1.8.0_112]
     [java]     at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_112]
     [java]     at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80) [na:1.8.0_112]
     [java]     at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1246) [na:1.8.0_112]
     [java]     at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:1085) [na:1.8.0_112]
     [java]     at org.springframework.jmx.export.SpringModelMBean.invoke(SpringModelMBean.java:90) [spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
     [java]     at javax.management.modelmbean.RequiredModelMBean.getAttribute(RequiredModelMBean.java:1562) [na:1.8.0_112]
     [java]     at org.springframework.jmx.export.SpringModelMBean.getAttribute(SpringModelMBean.java:109) [spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
     [java]     at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647) [na:1.8.0_112]
     [java]     at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) [na:1.8.0_112]
     [java]     at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1445) [na:1.8.0_112]
     [java]     at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) [na:1.8.0_112]
     [java]     at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309) [na:1.8.0_112]
     [java]     at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401) [na:1.8.0_112]
     [java]     at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:639) [na:1.8.0_112]
     [java]     at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source) ~[na:na]
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_112]
     [java]     at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_112]
     [java]     at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324) [na:1.8.0_112]
     [java]     at sun.rmi.transport.Transport$1.run(Transport.java:200) [na:1.8.0_112]
     [java]     at sun.rmi.transport.Transport$1.run(Transport.java:197) [na:1.8.0_112]
     [java]     at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_112]
     [java]     at sun.rmi.transport.Transport.serviceCall(Transport.java:196) [na:1.8.0_112]
     [java]     at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) [na:1.8.0_112]
     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) [na:1.8.0_112]
     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683) [na:1.8.0_112]
     [java]     at java.security.AccessController.doPrivileged(Native Method) [na:1.8.0_112]
     [java]     at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) [na:1.8.0_112]
     [java]     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_112]
     [java]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_112]
     [java]     at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_112]
     [java] Caused by: com.hazelcast.client.HazelcastClientNotActiveException: Not able to setup owner connection!
@dsukhoroslov dsukhoroslov self-assigned this Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant