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

[APGAS] Fix ignored UnknownHostException in selecting a good ip for the host while booting #33

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

faramir
Copy link

@faramir faramir commented Mar 4, 2021

host variable has form IP:port, so the (ignored) exception occurs:

java.net.UnknownHostException: 192.168.0.100:5701: invalid IPv6 address
        at java.net.InetAddress.getAllByName(InetAddress.java:1170)
        at java.net.InetAddress.getAllByName(InetAddress.java:1127)
        at java.net.InetAddress.getByName(InetAddress.java:1077)
        at apgas.impl.GlobalRuntimeImpl.<init>(GlobalRuntimeImpl.java:289)
        at apgas.GlobalRuntime$GlobalRuntimeWrapper.<clinit>(GlobalRuntime.java:41)
        at apgas.GlobalRuntime.getRuntimeImpl(GlobalRuntime.java:65)
        at apgas.GlobalRuntime.getRuntime(GlobalRuntime.java:56)
        at apgas.GlobalRuntime.main(GlobalRuntime.java:98)

Removing port part from the host name fixes the issue.

`host` variable has form _IP:port_, so the (ignored) exception occurs:
```
java.net.UnknownHostException: 192.168.0.100:5701: invalid IPv6 address
        at java.net.InetAddress.getAllByName(InetAddress.java:1170)
        at java.net.InetAddress.getAllByName(InetAddress.java:1127)
        at java.net.InetAddress.getByName(InetAddress.java:1077)
        at apgas.impl.GlobalRuntimeImpl.<init>(GlobalRuntimeImpl.java:289)
        at apgas.GlobalRuntime$GlobalRuntimeWrapper.<clinit>(GlobalRuntime.java:41)
        at apgas.GlobalRuntime.getRuntimeImpl(GlobalRuntime.java:65)
        at apgas.GlobalRuntime.getRuntime(GlobalRuntime.java:56)
        at apgas.GlobalRuntime.main(GlobalRuntime.java:98)
```
Removing port part from the host name fixes the issue.
@faramir faramir changed the title Update GlobalRuntimeImpl.java Fix ignored UnknownHostException while selecting a good ip for the host Mar 4, 2021
@faramir faramir changed the title Fix ignored UnknownHostException while selecting a good ip for the host [APGAS] Fix ignored UnknownHostException in selecting a good ip for the host while booting Mar 4, 2021
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

Successfully merging this pull request may close these issues.

2 participants