-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hueemulation] IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group #5589
Comments
Looking at the code, there is already a case for IPv4 and IPv6, no idea what is misbehaving here. Edit: Hm, maybe on Mac computers this line https://github.com/openhab/openhab2-addons/blob/master/bundles/org.openhab.io.hueemulation/src/main/java/org/openhab/io/hueemulation/internal/upnp/UpnpServer.java#L432 behaves different. A |
This also breaks the build for me |
@davidgraeff what is the intention of the code, should it bind to both ipv4 and ipv6 or pick one, because my machine is pretty strict in not mixing them in a single channel. Should we have two or should we pick one as preference? |
Resolves exception of combining ipv4 / ipv6 by getting to separate channels Closes openhab#5589 Exception in thread "HueEmulation UPNP Server" java.lang.IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group at sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:808) at sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:894) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:439) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:1) at org.openhab.io.hueemulation.internal.upnp.HueEmulationConfigWithRuntime.run(HueEmulationConfigWithRuntime.java:105) Signed-off-by: Martin van Wingerden <martin@martinvw.nl>
It's not exactly for binding. We could just bind to "::" and IPv4 and IPv6 would work. The code is for sending a upnp broadcast message to every interface. And IPv4 has of course a different multicast target IP than IPv6 for upnp. |
Resolves exception of combining ipv4 / ipv6 by getting to separate channels Closes openhab#5589 Exception in thread "HueEmulation UPNP Server" java.lang.IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group at sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:808) at sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:894) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:439) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:1) at org.openhab.io.hueemulation.internal.upnp.HueEmulationConfigWithRuntime.run(HueEmulationConfigWithRuntime.java:105) Signed-off-by: Martin van Wingerden <martin@martinvw.nl> Signed-off-by: Pshatsillo <pshatsillo@gmail.com>
Resolves exception of combining ipv4 / ipv6 by getting to separate channels Closes openhab#5589 Exception in thread "HueEmulation UPNP Server" java.lang.IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group at sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:808) at sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:894) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:439) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:1) at org.openhab.io.hueemulation.internal.upnp.HueEmulationConfigWithRuntime.run(HueEmulationConfigWithRuntime.java:105) Signed-off-by: Martin van Wingerden <martin@martinvw.nl>
Resolves exception of combining ipv4 / ipv6 by getting to separate channels Closes openhab#5589 Exception in thread "HueEmulation UPNP Server" java.lang.IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group at sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:808) at sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:894) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:439) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:1) at org.openhab.io.hueemulation.internal.upnp.HueEmulationConfigWithRuntime.run(HueEmulationConfigWithRuntime.java:105) Signed-off-by: Martin van Wingerden <martin@martinvw.nl> Signed-off-by: Maximilian Hess <mail@ne0h.de>
Resolves exception of combining ipv4 / ipv6 by getting to separate channels Closes openhab#5589 Exception in thread "HueEmulation UPNP Server" java.lang.IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group at sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:808) at sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:894) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:439) at org.openhab.io.hueemulation.internal.upnp.UpnpServer.accept(UpnpServer.java:1) at org.openhab.io.hueemulation.internal.upnp.HueEmulationConfigWithRuntime.run(HueEmulationConfigWithRuntime.java:105) Signed-off-by: Martin van Wingerden <martin@martinvw.nl> Signed-off-by: Tim Roberts <timmarkroberts@gmail.com>
Just updated to the latest distro 1589.
Directly on startup, I get this in my console:
Note that I did not even do a
log:tail
here, so this seems to go out toSystem.out
...The text was updated successfully, but these errors were encountered: