Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Bug in the master server on node reconnections #207

Open
gallagth opened this issue Feb 26, 2015 · 1 comment
Open

Bug in the master server on node reconnections #207

gallagth opened this issue Feb 26, 2015 · 1 comment

Comments

@gallagth
Copy link

Using the latest 0.2.1 release on OS X, MasterServer fails to correctly route nodes when they reconnect. To reproduce:

  1. Compile and launch this master node:
import org.ros.RosCore;

import java.util.concurrent.TimeUnit;

/**
 * Created by thomas on 26/02/15.
 */
public class Main {

    public static void main(String [] args) {
        RosCore mRosCore = RosCore.newPublic(11311);
        mRosCore.start();
        try {
            mRosCore.awaitStart(5, TimeUnit.SECONDS);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
       System.out.println("Ros core started");
       while (true);
    }
}
  1. Launch the Talker and Listener nodes in the rosjava_tutorial_pubsub package, everything works as expected

  2. Kill both nodes and relaunch them, they fail to connect to the master. The master throws:

SEVERE: Failed to invoke method registerPublisher in class org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl

And the nodes display:

SEVERE: Exception caught while communicating with master.
java.lang.RuntimeException: org.apache.xmlrpc.XmlRpcException: Failed to invoke method registerPublisher in class org.ros.internal.node.xmlrpc.MasterXmlRpcEndpointImpl: org/apache/commons/httpclient/HttpException
@toddsampson
Copy link

We are seeing the same thing. Any update on the status of the bug?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants