Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13887

Remote RMI is broken in 29.0.x

    XMLWordPrintable

Details

    • Horizon 22 - Jan 19 - Feb 2, Horizon 22 - Feb 2 - Feb 16
    • 908

    Description

      All test systems using the same config straight out of the docs:

      # Configure remote JMX
      ADDITIONAL_MANAGER_OPTIONS="$ADDITIONAL_MANAGER_OPTIONS -Dcom.sun.management.jmxremote.port=18980"
      ADDITIONAL_MANAGER_OPTIONS="$ADDITIONAL_MANAGER_OPTIONS -Dcom.sun.management.jmxremote.local.only=false"
      ADDITIONAL_MANAGER_OPTIONS="$ADDITIONAL_MANAGER_OPTIONS -Dcom.sun.management.jmxremote.authenticate=true"
      ADDITIONAL_MANAGER_OPTIONS="$ADDITIONAL_MANAGER_OPTIONS -Dcom.sun.management.jmxremote.ssl=false"
      
      # Listen on all interfaces
      ADDITIONAL_MANAGER_OPTIONS="$ADDITIONAL_MANAGER_OPTIONS -Dopennms.poller.server.serverHost=0.0.0.0"
      # Accept remote RMI connections on this interface
      ADDITIONAL_MANAGER_OPTIONS="$ADDITIONAL_MANAGER_OPTIONS -Djava.rmi.server.hostname=<IpAddr>"
      

      jconsole logs collected as noted in chat:

      {jconsole -debug -J-Djava.util.logging.config.file=/tmp/logging.properties}

      /tmp/logging.properties:

      handlers = java.util.logging.ConsoleHandler
      
      sun.rmi.level = FINEST
      .level = INFO
      
      java.util.logging.ConsoleHandler.level = FINEST
      java.util.logging.ConsoleHandler.formatter = \
      java.util.logging.SimpleFormatter
      
      // Use FINER or FINEST for javax.management.remote.level - FINEST is
      // very verbose...
      
      javax.management.level = FINEST
      javax.management.remote.level = FINEST
      

      29.0.4 as non-root:

      [root@fd908 opennms]# ps -ef | grep java
      opennms 88360 88359 63 22:05 ? 00:03:14 /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-4.el8_5.x86_64/bin/java --add-modules=java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.prefs,java.rmi,java.scripting,java.security.jgss,java.security.sasl,java.sql,java.sql.rowset,java.xml,jdk.attach,jdk.httpserver,jdk.jdi,jdk.sctp,jdk.security.auth,jdk.xml.dom -Djava.locale.providers=CLDR,COMPAT -Dopennms.pidfile=/opt/opennms/logs/opennms.pid -Dopennms.home=/opt/opennms -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Dcom.sun.management.jmxremote.port=18980 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.ssl=false -Dopennms.poller.server.serverHost=0.0.0.0 -Djava.rmi.server.hostname=192.168.1.150 -Dcom.sun.management.jmxremote.login.config=opennms -Dcom.sun.management.jmxremote.access.file=/opt/opennms/etc/jmxremote.access -Djdk.attach.allowAttachSelf=true -DisThreadContextMapInheritable=true -Dgroovy.use.classvalue=true -XX:MaxMetaspaceSize=512m -Djava.io.tmpdir=/opt/opennms/data/tmp -XX:+StartAttachListener -jar /opt/opennms/lib/opennms_bootstrap.jar start
      

      Logs from jconsole:

      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33863](remote),objID:[-6f427021:17e2d598fe7:-7fff, 437492138993908946]]]]] failed to close: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
       java.net.ConnectException: Connection refused (Connection refused)
      Jan 05, 2022 9:09:28 PM sun.rmi.transport.DGCImpl_Stub dirty
      FINE: RMI RenewClean-[127.0.0.1:33863]: get connection
      Jan 05, 2022 9:09:28 PM sun.rmi.transport.tcp.TCPChannel newConnection
      FINE: RMI RenewClean-[127.0.0.1:33863]: create connection
      Jan 05, 2022 9:09:28 PM sun.rmi.transport.tcp.TCPChannel createConnection
      FINER: RMI RenewClean-[127.0.0.1:33863]: opening socket to [127.0.0.1:33863]
      Jan 05, 2022 9:09:30 PM sun.rmi.transport.DGCImpl_Stub dirty
      FINE: RMI RenewClean-[127.0.0.1:33863]: get connection
      Jan 05, 2022 9:09:30 PM sun.rmi.transport.tcp.TCPChannel newConnection
      FINE: RMI RenewClean-[127.0.0.1:33863]: create connection
      Jan 05, 2022 9:09:30 PM sun.rmi.transport.tcp.TCPChannel createConnection
      FINER: RMI RenewClean-[127.0.0.1:33863]: opening socket to [127.0.0.1:33863]
      Jan 05, 2022 9:09:30 PM java.util.concurrent.Executors$RunnableAdapter call
      FINER: RMI Scheduler(0): wake up
      Jan 05, 2022 9:09:30 PM java.util.concurrent.Executors$RunnableAdapter call
      FINER: RMI Scheduler(0): wake up
      Jan 05, 2022 9:09:34 PM javax.management.remote.rmi.RMIConnector close
      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33863](remote),objID:[-6f427021:17e2d598fe7:-7fff, 437492138993908946]]]]] had failed: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
       java.net.ConnectException: Connection refused (Connection refused)
      Jan 05, 2022 9:09:34 PM javax.management.remote.rmi.RMIConnector close
      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33863](remote),objID:[-6f427021:17e2d598fe7:-7fff, 437492138993908946]]]]] attempting to close again.
      Jan 05, 2022 9:09:34 PM javax.management.remote.rmi.RMIConnector close
      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33863](remote),objID:[-6f427021:17e2d598fe7:-7fff, 437492138993908946]]]]] closing.
      Jan 05, 2022 9:09:34 PM javax.management.remote.rmi.RMIConnector close
      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33863](remote),objID:[-6f427021:17e2d598fe7:-7fff, 437492138993908946]]]]] RMI Notification client terminated.
      Jan 05, 2022 9:09:34 PM jdk.jmx.remote.internal.rmi.PRef invoke
      FINER: AWT-EventQueue-0: method: public abstract void java.lang.AutoCloseable.close() throws java.lang.Exception
      Jan 05, 2022 9:09:34 PM sun.rmi.server.UnicastRef invoke
      FINER: AWT-EventQueue-0: outbound call: [endpoint:[127.0.0.1:33863](remote),objID:[-6f427021:17e2d598fe7:-7ff1, -938286449128156136]] : javax.management.remote.rmi.RMIConnectionImpl_Stub[-6f427021:17e2d598fe7:-7ff1, -938286449128156136]: public abstract void java.lang.AutoCloseable.close() throws java.lang.Exception
      Jan 05, 2022 9:09:34 PM sun.rmi.transport.tcp.TCPChannel newConnection
      FINE: AWT-EventQueue-0: create connection
      Jan 05, 2022 9:09:34 PM sun.rmi.transport.tcp.TCPChannel createConnection
      FINER: AWT-EventQueue-0: opening socket to [127.0.0.1:33863]
      Jan 05, 2022 9:09:34 PM javax.management.remote.rmi.RMIConnector close
      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33863](remote),objID:[-6f427021:17e2d598fe7:-7fff, 437492138993908946]]]]] Failed to close RMIServer: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
       java.net.ConnectException: Connection refused (Connection refused)
      Jan 05, 2022 9:09:34 PM javax.management.remote.rmi.RMIConnector close
      FINE: RMIConnector::close
      java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
       java.net.ConnectException: Connection refused (Connection refused)
       at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:623)
       at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:209)
       at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)
       at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:132)
       at jdk.remoteref/jdk.jmx.remote.internal.rmi.PRef.invoke(Unknown Source)
       at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl_Stub.close(Unknown Source)
       at java.management.rmi/javax.management.remote.rmi.RMIConnector.close(RMIConnector.java:506)
       at java.management.rmi/javax.management.remote.rmi.RMIConnector.close(RMIConnector.java:446)
       at jdk.jconsole/sun.tools.jconsole.ProxyClient.disconnect(ProxyClient.java:553)
       at jdk.jconsole/sun.tools.jconsole.ProxyClient.markAsDead(ProxyClient.java:844)
       at jdk.jconsole/sun.tools.jconsole.JConsole.internalFrameClosing(JConsole.java:754)
       at java.desktop/javax.swing.JInternalFrame.fireInternalFrameEvent(JInternalFrame.java:1538)
       at java.desktop/javax.swing.JInternalFrame.setClosed(JInternalFrame.java:798)
       at jdk.jconsole/sun.tools.jconsole.VMPanel$5.propertyChange(VMPanel.java:507)
       at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
       at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
       at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:266)
       at java.desktop/java.awt.Component.firePropertyChange(Component.java:8731)
       at java.desktop/javax.swing.JOptionPane.setValue(JOptionPane.java:1953)
       at java.desktop/javax.swing.plaf.basic.BasicOptionPaneUI$ButtonActionListener.actionPerformed(BasicOptionPaneUI.java:1348)
       at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967)
       at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308)
       at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)
       at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)
       at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)
       at java.desktop/java.awt.Component.processMouseEvent(Component.java:6635)
       at java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
       at java.desktop/java.awt.Component.processEvent(Component.java:6400)
       at java.desktop/java.awt.Container.processEvent(Container.java:2263)
       at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
       at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
       at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
       at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
       at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4547)
       at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4488)
       at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2307)
       at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772)
       at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
       at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772)
       at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
       at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
       at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95)
       at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745)
       at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
       at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
       at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
       at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
       at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
       at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
       at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
       at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      Caused by: java.net.ConnectException: Connection refused (Connection refused)
       at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
       at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
       at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
       at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
       at java.base/java.net.Socket.connect(Socket.java:609)
       at java.base/java.net.Socket.connect(Socket.java:558)
       at java.base/java.net.Socket.<init>(Socket.java:454)
       at java.base/java.net.Socket.<init>(Socket.java:231)
       at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40)
       at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:617)
       ... 54 more
      
      Jan 05, 2022 9:09:34 PM javax.management.remote.rmi.RMIConnector close
      

       

      28.1.1 running as root:
      works, no logs captured.

      root 26046 26045 12 21:38 ? 00:05:36 /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-4.el8_5.x86_64/bin/java --add-modules=java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.prefs,java.rmi,java.scripting,java.security.jgss,java.security.sasl,java.sql,java.sql.rowset,java.xml,jdk.attach,jdk.httpserver,jdk.jdi,jdk.sctp,jdk.security.auth,jdk.xml.dom -Djava.locale.providers=CLDR,COMPAT -Dopennms.pidfile=/opt/opennms/logs/opennms.pid -Dorg.apache.jasper.compiler.disablejsr199=true -Dopennms.home=/opt/opennms -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Dcom.sun.management.jmxremote.port=18980 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.ssl=false -Dopennms.poller.server.serverHost=0.0.0.0 -Djava.rmi.server.hostname=192.168.1.245 -Dcom.sun.management.jmxremote.login.config=opennms -Dcom.sun.management.jmxremote.access.file=/opt/opennms/etc/jmxremote.access -DisThreadContextMapInheritable=true -Dgroovy.use.classvalue=true -XX:MaxMetaspaceSize=512m -Djava.io.tmpdir=/opt/opennms/data/tmp -XX:+StartAttachListener -jar /opt/opennms/lib/opennms_bootstrap.jar start
      

      29.0.4 running as root, same config:

      [root@fd880 opennms]# ps -ef | grep java
      root 91308 91306 99 22:19 ? 00:02:33 /usr/lib/jvm/java-11-openjdk-11.0.13.0.8-4.el8_5.x86_64/bin/java --add-modules=java.base,java.compiler,java.datatransfer,java.desktop,java.instrument,java.logging,java.management,java.management.rmi,java.naming,java.prefs,java.rmi,java.scripting,java.security.jgss,java.security.sasl,java.sql,java.sql.rowset,java.xml,jdk.attach,jdk.httpserver,jdk.jdi,jdk.sctp,jdk.security.auth,jdk.xml.dom -Djava.locale.providers=CLDR,COMPAT -Dopennms.pidfile=/opt/opennms/logs/opennms.pid -Dopennms.home=/opt/opennms -XX:+HeapDumpOnOutOfMemoryError -Xmx2048m -Dcom.sun.management.jmxremote.port=18980 -Dcom.sun.management.jmxremote.local.only=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.ssl=false -Dopennms.poller.server.serverHost=0.0.0.0 -Djava.rmi.server.hostname=192.168.1.150 -Dcom.sun.management.jmxremote.login.config=opennms -Dcom.sun.management.jmxremote.access.file=/opt/opennms/etc/jmxremote.access -Djdk.attach.allowAttachSelf=true -DisThreadContextMapInheritable=true -Dgroovy.use.classvalue=true -XX:MaxMetaspaceSize=512m -Djava.io.tmpdir=/opt/opennms/data/tmp -XX:+StartAttachListener -jar /opt/opennms/lib/opennms_bootstrap.jar start
      

      Logs from jconsole:

      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33119](remote),objID:[1e2171e:17e2d66802a:-7fff, 4644401066276268478]]]]] closing.
      Jan 05, 2022 9:21:28 PM com.sun.jmx.remote.internal.ClientNotifForwarder terminate
      FINER: Terminating...
      Jan 05, 2022 9:21:28 PM com.sun.jmx.remote.internal.ClientCommunicatorAdmin$Checker run
      FINER: Finished.
      Jan 05, 2022 9:21:28 PM javax.management.remote.rmi.RMIConnector close
      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33119](remote),objID:[1e2171e:17e2d66802a:-7fff, 4644401066276268478]]]]] RMI Notification client terminated.
      Jan 05, 2022 9:21:28 PM jdk.jmx.remote.internal.rmi.PRef invoke
      FINER: AWT-EventQueue-0: method: public abstract void java.lang.AutoCloseable.close() throws java.lang.Exception
      Jan 05, 2022 9:21:28 PM sun.rmi.server.UnicastRef invoke
      FINER: AWT-EventQueue-0: outbound call: [endpoint:[127.0.0.1:33119](remote),objID:[1e2171e:17e2d66802a:-7ff0, 2289977653730266166]] : javax.management.remote.rmi.RMIConnectionImpl_Stub[1e2171e:17e2d66802a:-7ff0, 2289977653730266166]: public abstract void java.lang.AutoCloseable.close() throws java.lang.Exception
      Jan 05, 2022 9:21:28 PM sun.rmi.transport.tcp.TCPChannel newConnection
      FINE: AWT-EventQueue-0: create connection
      Jan 05, 2022 9:21:28 PM sun.rmi.transport.tcp.TCPChannel createConnection
      FINER: AWT-EventQueue-0: opening socket to [127.0.0.1:33119]
      Jan 05, 2022 9:21:28 PM javax.management.remote.rmi.RMIConnector close
      FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef [liveRef: [endpoint:[192.168.1.150:33119](remote),objID:[1e2171e:17e2d66802a:-7fff, 4644401066276268478]]]]] Failed to close RMIServer: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
       java.net.ConnectException: Connection refused (Connection refused)
      Jan 05, 2022 9:21:28 PM javax.management.remote.rmi.RMIConnector close
      FINE: RMIConnector::close
      java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: 
       java.net.ConnectException: Connection refused (Connection refused)
       at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:623)
       at java.rmi/sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:209)
       at java.rmi/sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:196)
       at java.rmi/sun.rmi.server.UnicastRef.invoke(UnicastRef.java:132)
       at jdk.remoteref/jdk.jmx.remote.internal.rmi.PRef.invoke(Unknown Source)
       at java.management.rmi/javax.management.remote.rmi.RMIConnectionImpl_Stub.close(Unknown Source)
       at java.management.rmi/javax.management.remote.rmi.RMIConnector.close(RMIConnector.java:506)
       at java.management.rmi/javax.management.remote.rmi.RMIConnector.close(RMIConnector.java:446)
       at jdk.jconsole/sun.tools.jconsole.ProxyClient.disconnect(ProxyClient.java:553)
       at jdk.jconsole/sun.tools.jconsole.VMPanel.disconnect(VMPanel.java:304)
       at jdk.jconsole/sun.tools.jconsole.VMPanel.vmPanelDied(VMPanel.java:460)
       at jdk.jconsole/sun.tools.jconsole.VMPanel.propertyChange(VMPanel.java:344)
       at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:341)
       at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
       at java.desktop/javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:92)
       at java.desktop/javax.swing.event.SwingPropertyChangeSupport$1.run(SwingPropertyChangeSupport.java:97)
       at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
       at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
       at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
       at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
       at java.base/java.security.AccessController.doPrivileged(Native Method)
       at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
       at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
       at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
       at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
       at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
       at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
       at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
       at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      Caused by: java.net.ConnectException: Connection refused (Connection refused)
       at java.base/java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
       at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
       at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
       at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
       at java.base/java.net.Socket.connect(Socket.java:609)
       at java.base/java.net.Socket.connect(Socket.java:558)
       at java.base/java.net.Socket.<init>(Socket.java:454)
       at java.base/java.net.Socket.<init>(Socket.java:231)
       at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createSocket(TCPDirectSocketFactory.java:40)
       at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:617)
       ... 28 more
      
      Jan 05, 2022 9:21:28 PM javax.management.remote.rmi.RMIConnector close
      

      It appears to me that in 29.0.x, regardless of the value of java.rmi.server.hostname, we are initializing the RMIserver as if java.rmi.server.hostname = localhost

      Attachments

        Activity

          People

            cpape Christian Pape
            dino2gnt Dino Yancey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: