You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My system has a broker with two sockets, one xPub and one xSub. When I try to subscribe the xSub socket to all topics I get an IllegalArgumentException with the error message Unknown Option 6. It looks like that the subscription command is internally mapped to the number 6. But there is no switch case option that handles the number 6.
ZMQ.SocketxSubSocket = context.createSocket(SocketType.XSUB);
xSubSocket.bind(X_SUB_ADDRESS);
xSubSocket.subscribe(""); // subscribe to all
Exception in thread "main" java.lang.IllegalArgumentException: Unknown Option 6
at zmq.Options.setSocketOpt(Options.java:547)
at zmq.SocketBase.setSocketOpt(SocketBase.java:234)
at org.zeromq.ZMQ$Socket.setSocketOpt(ZMQ.java:910)
at org.zeromq.ZMQ$Socket.subscribe(ZMQ.java:2113)
What's the recommended way to handle this?
The text was updated successfully, but these errors were encountered:
My system has a broker with two sockets, one xPub and one xSub. When I try to subscribe the xSub socket to all topics I get an
IllegalArgumentException
with the error messageUnknown Option 6
. It looks like that the subscription command is internally mapped to the number 6. But there is no switch case option that handles the number 6.What's the recommended way to handle this?
The text was updated successfully, but these errors were encountered: