Uploaded image for project: 'PUBLIC - Liferay IDE'
  1. PUBLIC - Liferay IDE
  2. IDE-3309

Switching networks (wifi) makes IDE lose RMI connection permanently, need to restart Liferay

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: No Longer Reproducible
    • Affects Version/s: 3.1 Beta, 3.1.1, 3.1.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      MacOS X Sierra (10.12)

      Description

      When switching networks or when losing wifi network connection, subsequent deploy/redeploy commands to Liferay server fail, making the environment unusable until after a Liferay restart.

      I would expect the IDE to connect to Liferay using the loopback interface, which is usually more stable than an external interface.

      Errors in Eclipse's .log file:

      Caused by: java.rmi.ConnectIOException: Exception creating connection to: 192.168.11.65; nested exception is:
      	java.net.SocketException: Network is unreachable (connect failed)
      	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:631)
      	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
      	at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
      	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:130)
      	at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:227)
      	at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:179)
      	at com.sun.proxy.$Proxy74.newClient(Unknown Source)
      	at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2430)
      	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:308)
      	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)
      	at com.liferay.ide.server.core.jmx.JMXBundleDeployer.<init>(JMXBundleDeployer.java:56)
      	... 14 more
      Caused by: java.net.SocketException: Network is unreachable (connect failed)
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      	at java.net.Socket.connect(Socket.java:589)
      	at java.net.Socket.connect(Socket.java:538)
      	at java.net.Socket.<init>(Socket.java:434)
      	at java.net.Socket.<init>(Socket.java:211)
      	at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
      	at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:148)
      	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
      

      And:
       

      !MESSAGE Unable to deploy bundle remotely /Users/g/p/lam/liferay-lam/nl.finalist.liferay.lam.api/build/libs/nl.finalist.liferay.lam.api-1.0.0.jar
      !STACK 0
      java.net.SocketTimeoutException: connect timed out
      	at java.net.PlainSocketImpl.socketConnect(Native Method)
      	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
      	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
      	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
      	at java.net.Socket.connect(Socket.java:589)
      	at aQute.remote.util.AgentSupervisor.connect(AgentSupervisor.java:60)
      	at com.liferay.ide.server.core.portal.BundleSupervisor.connect(BundleSupervisor.java:57)
      	at com.liferay.ide.server.util.ServerUtil.createBundleSupervisor(ServerUtil.java:192)
      	at com.liferay.ide.server.core.portal.BundlePublishOperation.createBundleSupervisor(BundlePublishOperation.java:91)
      	at com.liferay.ide.server.core.portal.BundlePublishFullAdd.remoteDeploy(BundlePublishFullAdd.java:190)
      	at com.liferay.ide.server.core.portal.BundlePublishFullAdd.execute(BundlePublishFullAdd.java:121)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.performTasks(ServerBehaviourDelegate.java:1335)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:954)
      	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
      

        Attachments

          Activity

            People

            Assignee:
            lr_ide LR IDE
            Reporter:
            gvanderploeg@iprofs.nl Geert van der Ploeg
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              2 years, 28 weeks, 2 days ago

                Packages

                Version Package