Skip to content

[🐛 Bug]: NetworkInterface.getByName("en0") throw NullPointException  #10109

@hackeryutu

Description

@hackeryutu

What happened?

NetworkInterface.getByName("en0") throw NullPointException

How can we reproduce the issue?

I use a proxy
options.addArguments("--proxy-server=http://" + proxy);

Relevant log output

WARNING: Failed to resolve host address
java.lang.NullPointerException
	at org.openqa.selenium.net.HostIdentifier.resolveHostAddress(HostIdentifier.java:92)
	at org.openqa.selenium.net.HostIdentifier.getHostAddress(HostIdentifier.java:123)
	at org.openqa.selenium.WebDriverException.getSystemInformation(WebDriverException.java:95)
	at org.openqa.selenium.WebDriverException.createMessage(WebDriverException.java:87)
	at org.openqa.selenium.WebDriverException.getMessage(WebDriverException.java:65)
	at java.lang.Throwable.getLocalizedMessage(Throwable.java:391)
	at java.lang.Throwable.toString(Throwable.java:480)
	at java.lang.String.valueOf(String.java:2994)
	at java.io.PrintStream.println(PrintStream.java:821)
	at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:748)
	at java.lang.Throwable.printStackTrace(Throwable.java:655)
	at java.lang.Throwable.printStackTrace(Throwable.java:643)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1061)
	at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1052)
	at java.lang.Thread.dispatchUncaughtException(Thread.java:1959)

Operating System

macOS Monterey 12.0.1

Selenium version

java 4.1.0

What are the browser(s) and version(s) where you see this issue?

chrome 96.0.4664.55

What are the browser driver(s) and version(s) where you see this issue?

chromedriver 95

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-javaJava BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions