无法创建子事件循环

时间:2014-12-16 14:22:06

标签: intellij-idea

在IntelliJ IDEA Community Edition 14.0.2中,我正在尝试运行Java Applet,每次尝试运行项目时,都会遇到这个虚假错误。

Error: Failed to create a child event loop

我尝试了什么

  1. 编译新创建的Hello World程序
  2. 更新IntelliJ
  3. 卸载&重新安装
  4. 允许来自Windows防火墙规则
  5. 禁用防病毒程序
  6. 我正在使用Windows 8.1防病毒程序Windows Defender

    日志文件中的错误详细信息:

    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
    

6 个答案:

答案 0 :(得分:4)

禁用防火墙 或者添加idea.exe完全正确的路径到防火墙的传出连接规则 它帮助我了解IDEA 14.0.3

答案 1 :(得分:0)

我们将应用程序部署到Windows Server时遇到同样的错误,但是,此服务器没有防病毒软件,并且防火墙已禁用。在我们的例子中,由于Astrill VPN,如果我们禁用Astrill VPN,问题就会消失。

答案 2 :(得分:0)

我的操作系统是Windows,使用Pycharm 2017.3运行scrapy项目遇到类似的问题。 今天,使用Intellij Idea 2016.3.5运行spring项目存在相同的问题。 在我的操作系统中,关闭Windows Defender可以解决此问题。

答案 3 :(得分:0)

重启intelliJ并没有帮助,重启机器就可以了!

答案 4 :(得分:0)

我们必须关闭防火墙。它解决了这个问题。即使在“ eclipse”软件中,关闭防火墙也能正常工作。

答案 5 :(得分:0)

将pycharm更新到较新的版本对我有用,然后重新启动pycharm ide。