• 93674

    文章

  • 777

    评论

  • 17

    友链

  • 最近新加了换肤功能,大家多来逛逛吧~~~~
  • 喜欢这个网站的朋友可以加一下QQ群,我们一起交流技术。

IDEA 防火墙问题

撸了今年阿里、腾讯和美团的面试,我有一个重要发现.......>>

Failed to create a child event loop Ask Question Asked 4 years, 9 months ago Active 11 months ago Viewed 15k times

8

1 In IntelliJ IDEA Community Edition 14.0.2, I'm trying to run Java Applet and every time I try to run project, I got this this dummy error. Error: Failed to create a child event loop What I've tried Compiling newly created Hello World program Update IntelliJ Uninstall & Reinstall Allow from Windows Firewall rule Disabling Antivirus Program I'm using Windows 8.1 with Anti-virus program Windows Defender. Error detail from Log file: java.lang.IllegalStateException: failed to create a child event loop at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:81) at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:50) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:72) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:58) at org.jetbrains.io.BuiltInServer.start(BuiltInServer.java:60) at org.jetbrains.ide.BuiltInServerManagerImpl$1.run(BuiltInServerManagerImpl.java:111) at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:405) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) at org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56) Caused by: io.netty.channel.ChannelException: failed to open a new selector at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:127) at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:119) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:97) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:31) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:77) ... 12 more Caused by: java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:101) at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:68) at java.security.AccessController.doPrivileged(Native Method) at sun.nio.ch.PipeImpl.<init>(PipeImpl.java:170) at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50) at java.nio.channels.Pipe.open(Pipe.java:155) at sun.nio.ch.WindowsSelectorImpl.<init>(WindowsSelectorImpl.java:127) at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44) at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125) ... 16 more Caused by: java.net.SocketException: Network is unreachable: connect at sun.nio.ch.Net.connect0(Native Method) at sun.nio.ch.Net.connect(Net.java:457) at sun.nio.ch.Net.connect(Net.java:449) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:647) at java.nio.channels.SocketChannel.open(SocketChannel.java:189) at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:130) at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:83) ... 24 more intellij-idea share improve this question asked Dec 16 '14 at 14:22

Adnan Umer 3,0992 2 gold badges 12 12 silver badges 34 34 bronze badges

sometimes i get this error and simply re-run and it disappears. once, i had to restart my PC to get rid of this error. i think it's a bug in intellij - Issue Link – Don Barry Dec 17 '14 at 19:52
add a comment 4 Answers active oldest votes

4

Disable firewall or add idea.exe full correct path to outgoing connect rules of your firewall. It helped me with IDEA 14.0.3

share improve this answer edited Feb 12 '15 at 5:53

answered Feb 9 '15 at 15:52

RoutesMaps.com 1,0161 1 gold badge 8 8 silver badges 13 13 bronze badges

add a comment

2

Restarting intelliJ did not help, restarting machine did!

share improve this answer answered Sep 24 '18 at 8:05

Preeti Joshi 3104 4 silver badges 13 13 bronze badges

add a comment

0

I encountered same error when we deploy our application to a Windows Server, however, this server has no antivirus software and the firewall is disabled. In our case, it's due to the Astrill VPN, if we disable the Astrill VPN, the issue would disappear.

share improve this answer answered Jul 6 '16 at 9:29

qianlei 3143 3 silver badges 8 8 bronze badges

add a comment

0

My os is Windows, Use Pycharm 2017.3 to run scrapy project encountered a similar problem. Today, Use Intellij Idea 2016.3.5 to run spring project had the same question. In my os, Close the Windows Defender can solve this question.


695856371Web网页设计师②群 | 喜欢本站的朋友可以收藏本站,或者加入我们大家一起来交流技术!

欢迎来到梁钟霖个人博客网站。本个人博客网站提供最新的站长新闻,各种互联网资讯。 还提供个人博客模板,最新最全的java教程,java面试题。在此我将尽我最大所能将此个人博客网站做的最好! 谢谢大家,愿大家一起进步!

转载原创文章请注明出处,转载至: 梁钟霖个人博客www.liangzl.com

0条评论

Loading...


发表评论

电子邮件地址不会被公开。 必填项已用*标注

自定义皮肤
注册梁钟霖个人博客