Java.net.SocketException: getifaddrs not supported
-
Hi;
I am trying Bacnet4j on linux. But when I created bacnet device The error occured. Message is below
java.lang.RuntimeException: java.net.SocketException: getifaddrs not supported
at com.serotonin.bacnet4j.LocalDevice.getAllLocalAddresses(LocalDevice.java:779)
at com.serotonin.bacnet4j.service.unconfirmed.IAmRequest.handle(IAmRequest.java:71)
at com.serotonin.bacnet4j.LocalDevice.handleUnconfirmedRequest(LocalDevice.java:733)
at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.runImpl(IpMessageControl.java:555)
at com.serotonin.bacnet4j.npdu.ip.IpMessageControl$IncomingMessageExecutor.run(IpMessageControl.java:489)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: getifaddrs not supported
at java.net.VMNetworkInterface.getVMInterfaces(Native Method)
at java.net.NetworkInterface.getNetworkInterfaces(Unknown Source)
at com.serotonin.bacnet4j.LocalDevice.getAllLocalAddresses(LocalDevice.java:768)
...7 moreIt seem the Operating system is not supported getifaddrs. But how can I do.
Thank you!