java.net.SocketException: No such device

yellowgrass.org | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    webdriver-manager start crashes

    GitHub | 2 years ago | map7
    java.net.SocketException: No such device
  2. 0

    Network issue on a Selenium node

    Google Groups | 4 years ago | Simon
    java.net.SocketException: errno: 0, error: IOCTL SIOCGLIFFLAGS failed
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Saw the following in a recent run: {code} Stacktrace java.net.SocketException: No such device at java.net.NetworkInterface.isLoopback0(Native Method) at java.net.NetworkInterface.isLoopback(NetworkInterface.java:390) at org.apache.zookeeper.test.ClientPortBindTest.testBindByAddress(ClientPortBindTest.java:61) at org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52) Standard Output 2017-01-12 23:20:43,792 [myid:] - INFO [main:ZKTestCase$1@50] - STARTING testBindByAddress 2017-01-12 23:20:43,795 [myid:] - INFO [main:JUnit4ZKTestRunner$LoggedInvokeMethod@50] - RUNNING TEST METHOD testBindByAddress 2017-01-12 23:20:43,799 [myid:] - INFO [main:JUnit4ZKTestRunner$LoggedInvokeMethod@62] - TEST METHOD FAILED testBindByAddress java.net.SocketException: No such device at java.net.NetworkInterface.isLoopback0(Native Method) at java.net.NetworkInterface.isLoopback(NetworkInterface.java:390) at org.apache.zookeeper.test.ClientPortBindTest.testBindByAddress(ClientPortBindTest.java:61) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52) at org.junit.rules.TestWatchman$1.evaluate(TestWatchman.java:48) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:39) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:532) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1179) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1030) {code} Proposed fix is to catch exception from isLoopback() call.

    Apache's JIRA Issue Tracker | 1 month ago | Ted Yu
    java.net.SocketException: No such device

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.net.SocketException

      No such device

      at java.net.NetworkInterface.isLoopback0()
    2. Java RT
      NetworkInterface.isLoopback
      1. java.net.NetworkInterface.isLoopback0(Native Method)
      2. java.net.NetworkInterface.isLoopback(NetworkInterface.java:390)
      2 frames
    3. Selenium
      NetworkUtils.<init>
      1. org.openqa.selenium.net.NetworkInterface.<init>(NetworkInterface.java:41)
      2. org.openqa.selenium.net.DefaultNetworkInterfaceProvider.createInterface(DefaultNetworkInterfaceProvider.java:75)
      3. org.openqa.selenium.net.DefaultNetworkInterfaceProvider.<init>(DefaultNetworkInterfaceProvider.java:51)
      4. org.openqa.selenium.net.NetworkUtils.<init>(NetworkUtils.java:34)
      4 frames
    4. selenium-firefox-driver
      FirefoxDriver.startClient
      1. org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.<clinit>(NewProfileExtensionConnection.java:47)
      2. org.openqa.selenium.firefox.FirefoxDriver.connectTo(FirefoxDriver.java:271)
      3. org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:240)
      3 frames
    5. Selenium
      RemoteWebDriver.<init>
      1. org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
      1 frame
    6. selenium-firefox-driver
      FirefoxDriver.<init>
      1. org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:190)
      2. org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:183)
      3. org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:179)
      4. org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:92)
      4 frames
    7. utils
      Test.getFirefoxDriver
      1. utils.Test.getFirefoxDriver(Test.java:123)
      1 frame
    8. webdsl.generated.functions
      getFirefoxDriver_.getFirefoxDriver_
      1. webdsl.generated.functions.getFirefoxDriver_.getFirefoxDriver_(getFirefoxDriver_.java:18)
      1 frame
    9. webdsl.generated.test
      Test0.run
      1. webdsl.generated.test.Test0.run(Test0.java:48)
      1 frame
    10. utils
      TestWeb.main
      1. utils.TestWeb.runTests(TestWeb.java:26)
      2. utils.TestAll.runInWebAppContainer(TestAll.java:164)
      3. utils.TestWeb.main(TestWeb.java:37)
      3 frames