[jira] [Commented] (CASSANDRA-17581) Failed to retrieve RMIServer stub: Malformed IPv6 address at index 7
[ https://issues.apache.org/jira/browse/CASSANDRA-17581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528119#comment-17528119 ] Jermy Li commented on CASSANDRA-17581: -- Thanks for your reply. The reason may be caused by upgrading the JDK version to JDK 8.0.332, here is some environment information: Cassandra version: * apache-cassandra-3.10 * [http://archive.apache.org/dist/cassandra] Java environment: * JDK 8.0.332+9 * Java 8.0.332+9 (Zulu): [https://cdn.azul.com/zulu/bin/zulu8.62.0.19-ca-jdk8.0.332-linux_x64.tar.gz] Operating system environment: * Environment: ubuntu-20.04 * Version: 20220410.2 * Image Release: [https://github.com/actions/virtual-environments/releases/tag/ubuntu20%2F20220410.2] For more details see: * [https://github.com/apache/incubator-hugegraph/runs/6146493904?check_suite_focus=true] > Failed to retrieve RMIServer stub: Malformed IPv6 address at index 7 > > > Key: CASSANDRA-17581 > URL: https://issues.apache.org/jira/browse/CASSANDRA-17581 > Project: Cassandra > Issue Type: Bug > Components: Tool/nodetool >Reporter: Jermy Li >Priority: Normal > > Error when `{{{}new NodeProbe("127.0.0.1", 7199)`{}}} with jdk 1.8.0_332: > > {code:java} > java.io.IOException: Failed to retrieve RMIServer stub: > javax.naming.InvalidNameException: Malformed IPv6 address at index 7: > rmi://[127.0.0.1]:7199 > Root exception is java.lang.IllegalArgumentException: Malformed IPv6 address > at index 7: rmi://[127.0.0.1]:7199 {code} > > Here is the error stack trace: > {code:java} > 2022-04-24 07:22:40 [grizzly-http-server-2] [INFO] > c.b.h.b.s.c.CassandraMetrics - Probe to cassandra node: '127.0.0.1:7199' > 2022-04-24 07:22:40 [grizzly-http-server-2] [WARN] > c.b.h.b.s.c.CassandraMetrics - Unable to get metrics from host '127.0.0.1': > java.io.IOException: Failed to retrieve RMIServer stub: > javax.naming.InvalidNameException: Malformed IPv6 address at index 7: > rmi://[127.0.0.1]:7199 [Root exception is java.lang.IllegalArgumentException: > Malformed IPv6 address at index 7: rmi://[127.0.0.1]:7199] > at > javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) > ~[?:1.8.0_332] > at > javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270) > ~[?:1.8.0_332] > at org.apache.cassandra.tools.NodeProbe.connect(NodeProbe.java:191) > ~[cassandra-all-3.10.jar:3.10] > at org.apache.cassandra.tools.NodeProbe.(NodeProbe.java:158) > ~[cassandra-all-3.10.jar:3.10] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraMetrics.newNodeProbe(CassandraMetrics.java:308) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraMetrics.getMetricsByHost(CassandraMetrics.java:100) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraMetrics.executeAllHosts(CassandraMetrics.java:299) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraMetrics.metrics(CassandraMetrics.java:86) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraStore.lambda$registerMetaHandlers$0(CassandraStore.java:99) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.MetaDispatcher.dispatchMetaHandler(MetaDispatcher.java:45) > ~[hugegraph-core-0.13.0.jar:0.13.0.0] > at > com.baidu.hugegraph.backend.store.AbstractBackendStore.metadata(AbstractBackendStore.java:53) > ~[hugegraph-core-0.13.0.jar:0.13.0.0] > at > com.baidu.hugegraph.backend.tx.AbstractTransaction.metadata(AbstractTransaction.java:109) > ~[hugegraph-core-0.13.0.jar:0.13.0.0] > at > com.baidu.hugegraph.StandardHugeGraph.metadata(StandardHugeGraph.java:975) > ~[hugegraph-core-0.13.0.jar:0.13.0.0] > at > com.baidu.hugegraph.auth.HugeGraphAuthProxy.metadata(HugeGraphAuthProxy.java:669) > ~[hugegraph-api-0.13.0.jar:0.67.0.0] > at com.baidu.hugegraph.api.metrics.MetricsAPI.backend(MetricsAPI.java:87) > ~[hugegraph-api-0.13.0.jar:0.67.0.0] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[?:1.8.0_332] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > ~[?:1.8.0_332] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_332] > at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_332] > at > org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) > ~[jersey-server-2.25.1.jar:?] > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(Ab
[jira] [Commented] (CASSANDRA-17581) Failed to retrieve RMIServer stub: Malformed IPv6 address at index 7
[ https://issues.apache.org/jira/browse/CASSANDRA-17581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17528110#comment-17528110 ] Brandon Williams commented on CASSANDRA-17581: -- Can you provide details of your version and environment, and steps to reproduce? At first glance it looks like something is adding brackets around the ipv4 localhost address. > Failed to retrieve RMIServer stub: Malformed IPv6 address at index 7 > > > Key: CASSANDRA-17581 > URL: https://issues.apache.org/jira/browse/CASSANDRA-17581 > Project: Cassandra > Issue Type: Bug > Components: Tool/nodetool >Reporter: Jermy Li >Priority: Normal > > Error when `{{{}new NodeProbe("127.0.0.1", 7199)`{}}} with jdk 1.8.0_332: > > {code:java} > java.io.IOException: Failed to retrieve RMIServer stub: > javax.naming.InvalidNameException: Malformed IPv6 address at index 7: > rmi://[127.0.0.1]:7199 > Root exception is java.lang.IllegalArgumentException: Malformed IPv6 address > at index 7: rmi://[127.0.0.1]:7199 {code} > > > Here is the error stack trace: > {code:java} > 2022-04-24 07:22:40 [grizzly-http-server-2] [INFO] > c.b.h.b.s.c.CassandraMetrics - Probe to cassandra node: '127.0.0.1:7199' > 2022-04-24 07:22:40 [grizzly-http-server-2] [WARN] > c.b.h.b.s.c.CassandraMetrics - Unable to get metrics from host '127.0.0.1': > java.io.IOException: Failed to retrieve RMIServer stub: > javax.naming.InvalidNameException: Malformed IPv6 address at index 7: > rmi://[127.0.0.1]:7199 [Root exception is java.lang.IllegalArgumentException: > Malformed IPv6 address at index 7: rmi://[127.0.0.1]:7199] > at > javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369) > ~[?:1.8.0_332] > at > javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270) > ~[?:1.8.0_332] > at org.apache.cassandra.tools.NodeProbe.connect(NodeProbe.java:191) > ~[cassandra-all-3.10.jar:3.10] > at org.apache.cassandra.tools.NodeProbe.(NodeProbe.java:158) > ~[cassandra-all-3.10.jar:3.10] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraMetrics.newNodeProbe(CassandraMetrics.java:308) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraMetrics.getMetricsByHost(CassandraMetrics.java:100) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraMetrics.executeAllHosts(CassandraMetrics.java:299) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraMetrics.metrics(CassandraMetrics.java:86) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.cassandra.CassandraStore.lambda$registerMetaHandlers$0(CassandraStore.java:99) > ~[hugegraph-cassandra-0.13.0.jar:?] > at > com.baidu.hugegraph.backend.store.MetaDispatcher.dispatchMetaHandler(MetaDispatcher.java:45) > ~[hugegraph-core-0.13.0.jar:0.13.0.0] > at > com.baidu.hugegraph.backend.store.AbstractBackendStore.metadata(AbstractBackendStore.java:53) > ~[hugegraph-core-0.13.0.jar:0.13.0.0] > at > com.baidu.hugegraph.backend.tx.AbstractTransaction.metadata(AbstractTransaction.java:109) > ~[hugegraph-core-0.13.0.jar:0.13.0.0] > at > com.baidu.hugegraph.StandardHugeGraph.metadata(StandardHugeGraph.java:975) > ~[hugegraph-core-0.13.0.jar:0.13.0.0] > at > com.baidu.hugegraph.auth.HugeGraphAuthProxy.metadata(HugeGraphAuthProxy.java:669) > ~[hugegraph-api-0.13.0.jar:0.67.0.0] > at com.baidu.hugegraph.api.metrics.MetricsAPI.backend(MetricsAPI.java:87) > ~[hugegraph-api-0.13.0.jar:0.67.0.0] > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > ~[?:1.8.0_332] > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > ~[?:1.8.0_332] > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > ~[?:1.8.0_332] > at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_332] > at > org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) > ~[jersey-server-2.25.1.jar:?] > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) > ~[jersey-server-2.25.1.jar:?] > at > org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) > ~[jersey-server-2.25.1.jar:?] > at > org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205) > ~[jersey-server-2.25.1.jar:?] > at > org.glas