yekigoc / rosjava

Automatically exported from code.google.com/p/rosjava
0 stars 0 forks source link

Support wild cards in handshake headers #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. run the Talker node from the rosjava tutorial
2. run "rostopic hz chatter"
3.

What is the expected output? What do you see instead?
This causes a big exception to occur in the Talker node:
Loading node class: org.ros.tutorials.pubsub.Talker
Jun 16, 2011 4:50:35 PM org.jboss.netty.channel.DefaultChannelPipeline
WARNING: An exception was thrown by a user handler while handling an exception 
event ([id: 0x4090c06f, /127.0.0.1:49358 :> /127.0.0.1:36547] EXCEPTION: 
java.lang.IllegalStateException)
java.lang.RuntimeException: java.lang.IllegalStateException
    at org.ros.internal.transport.ConnectionTrackingHandler.exceptionCaught(ConnectionTrackingHandler.java:62)
    at org.jboss.netty.channel.Channels.fireExceptionCaught(Channels.java:432)
    at org.jboss.netty.channel.AbstractChannelSink.exceptionCaught(AbstractChannelSink.java:52)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:302)
    at org.jboss.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:317)
    at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:299)
    at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:216)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
    at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
    at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:349)
    at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:280)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:200)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.IllegalStateException
    at com.google.common.base.Preconditions.checkState(Preconditions.java:129)
    at org.ros.internal.node.topic.Publisher.finishHandshake(Publisher.java:85)
    at org.ros.internal.transport.tcp.TcpServerHandshakeHandler.messageReceived(TcpServerHandshakeHandler.java:80)
    ... 12 more

Rostopic hz reports:
rostopic hz chatter
subscribed to [/chatter]

What version of the product are you using? On what operating system?
Latest repo of rosjava and Ubuntu operating system.

Please provide any additional information below.

Original issue reported on code.google.com by ada...@gmail.com on 16 Jun 2011 at 11:53

GoogleCodeExporter commented 9 years ago
This is happening because rosjava does not allow specifying md5sum=* or type=* 
in the handshake.

Original comment by damonkoh...@google.com on 29 Jun 2011 at 3:23

GoogleCodeExporter commented 9 years ago
This has been fixed in revision ca6ecfeba48b. I think the ticket can be closed.

Original comment by moese...@google.com on 18 Oct 2011 at 1:51

GoogleCodeExporter commented 9 years ago

Original comment by damonkoh...@google.com on 31 Dec 2011 at 1:22