-
Notifications
You must be signed in to change notification settings - Fork 184
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
child class java.net.InetAddress$NameServiceAddresses for class InetAddress.Addresses should never happens #209
Comments
@Wackerle 收到。 给一下: ❤️
|
jdk 1.8.0_382 |
复现代码ExecutorService executorService = Executors.newFixedThreadPool(2);
executorService.execute(() -> {
try {
DnsCacheEntry entry = DnsCacheManipulator.getDnsCache("baidu.com");
} catch (Exception e) {
e.printStackTrace();
}
});
executorService.execute(() -> {
try {
HttpClient httpClient = HttpClients.custom().build();
HttpGet httpGet = new HttpGet("http://baidu.com");
httpClient.execute(httpGet);
} catch (Exception e) {
e.printStackTrace();
}
});
Thread.sleep(100_000); 报错Caused by: java.lang.IllegalStateException: child class java.net.InetAddress$NameServiceAddresses for class InetAddress.Addresses should never happens, report issue for dns-cache-manipulator lib!
at com.alibaba.dcm.internal.InetAddressCacheUtilForNew.inetAddress$Addresses2DnsCacheEntry(InetAddressCacheUtilForNew.java:243)
at com.alibaba.dcm.internal.InetAddressCacheUtilForNew.getInetAddressCache(InetAddressCacheUtilForNew.java:203)
at com.alibaba.dcm.DnsCacheManipulator.getDnsCache(DnsCacheManipulator.java:156)
... 4 more 当调用 原因分析访问这个域名时, 在没有替换之前, 建议如果从 |
@Wackerle COOOL 👍 我看一下。💕 方便可以开个PR? 😄 |
相同的服务运行在多台服务器上,其中有个别服务器偶现报错:
版本:1.8.0
环境信息:jdk8,amd
The text was updated successfully, but these errors were encountered: