Skip to content
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

Hostname resolution causes issues with Graal #90

Open
tofflos opened this issue Sep 17, 2018 · 1 comment
Open

Hostname resolution causes issues with Graal #90

tofflos opened this issue Sep 17, 2018 · 1 comment

Comments

@tofflos
Copy link

tofflos commented Sep 17, 2018

The current way of resolving the hostname uses a static initializer under the hood which leads to problems when building a native binary using Graal.

try
{
	this.hostName = InetAddress.getLocalHost().getCanonicalHostName();
}
catch (UnknownHostException e)
{
	this.hostName = UNKNOWN_HOSTNAME;
}

The static initializer within InetAddress is executed at build time on the build system. This causes a crash later on at runtime on the executing system where the results of said initialization isn't available.

@davidmoten
Copy link

See #84, you may wish to raise the issue on an active fork of this project (I'd suggest mine for the moment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants