Intellij idea 未能创建子事件循环

Intellij idea 未能创建子事件循环,intellij-idea,Intellij Idea,在IntelliJ IDEA Community Edition 14.0.2中,我尝试运行Java小程序,每次尝试运行project时,我都会遇到这个虚拟错误 Error: Failed to create a child event loop 我试过的 编译新创建的Hello World程序 更新IntelliJ 卸载并重新安装 允许来自Windows防火墙规则 禁用防病毒程序 我正在使用带有防病毒程序的windows8.1 日志文件中的错误详细信息: java.lang.IllegalS

在IntelliJ IDEA Community Edition 14.0.2中,我尝试运行Java小程序,每次尝试运行project时,我都会遇到这个虚拟错误

Error: Failed to create a child event loop
我试过的

  • 编译新创建的Hello World程序
  • 更新IntelliJ
  • 卸载并重新安装
  • 允许来自Windows防火墙规则
  • 禁用防病毒程序
  • 我正在使用带有防病毒程序的
    windows8.1

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

    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
    
    java.lang.IllegalStateException:未能创建子事件循环
    位于io.netty.util.concurrent.MultithreadEventExecutorGroup。(MultithreadEventExecutorGroup.java:81)
    位于io.netty.channel.MultithreadEventLoopGroup。(MultithreadEventLoopGroup.java:50)
    位于io.netty.channel.nio.NioEventLoopGroup。(NioEventLoopGroup.java:72)
    位于io.netty.channel.nio.NioEventLoopGroup。(NioEventLoopGroup.java:58)
    位于org.jetbrains.io.BuiltInServer.start(BuiltInServer.java:60)
    位于org.jetbrains.ide.BuiltInServerManagerImpl$1.run(BuiltInServerManagerImpl.java:111)
    在com.intellij.openapi.application.impl.ApplicationImpl$8.run上(ApplicationImpl.java:405)
    位于java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    在java.util.concurrent.FutureTask.run(FutureTask.java:266)处
    位于java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    位于java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    运行(Thread.java:745)
    位于org.jetbrains.ide.PooledThreadExecutor$1$1.run(PooledThreadExecutor.java:56)
    原因:io.netty.channel.ChannelException:无法打开新选择器
    位于io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:127)
    位于io.netty.channel.nio.NioEventLoop。(NioEventLoop.java:119)
    位于io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:97)
    位于io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:31)
    位于io.netty.util.concurrent.MultithreadEventExecutorGroup。(MultithreadEventExecutorGroup.java:77)
    ... 还有12个
    原因:java.io.IOException:无法建立环回连接
    位于sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:101)
    位于sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:68)
    位于java.security.AccessController.doPrivileged(本机方法)
    位于sun.nio.ch.PipeImpl.(PipeImpl.java:170)
    在sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
    位于java.nio.channels.Pipe.open(Pipe.java:155)
    位于sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:127)
    位于sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
    位于io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:125)
    ... 还有16个
    原因:java.net.SocketException:无法访问网络:连接
    位于sun.nio.ch.Net.connect0(本机方法)
    位于sun.nio.ch.Net.connect(Net.java:457)
    位于sun.nio.ch.Net.connect(Net.java:449)
    位于sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:647)
    位于java.nio.channels.SocketChannel.open(SocketChannel.java:189)
    位于sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:130)
    位于sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:83)
    ... 还有24个
    
    禁用防火墙 或者将idea.exe完整正确路径添加到防火墙的传出连接规则。

    IDEA 14.0.3帮助了我,当我们将应用程序部署到Windows服务器时,我遇到了相同的错误,但是,该服务器没有防病毒软件,防火墙被禁用。在我们的例子中,这是由于Astrill VPN,如果我们禁用Astrill VPN,问题将消失。

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

    重新启动intelliJ没有帮助,重新启动机器有帮助

    我们必须关闭防火墙。它解决了这个问题。即使在“eclipse”软件中,关闭防火墙也很有效。

    将pycharm更新到新版本对我来说很有效,然后重新启动pycharm ide。

    有时我会出现此错误,然后简单地重新运行,它就会消失。有一次,我不得不重新启动我的电脑来消除这个错误。我认为这是intellij中的一个bug——我在pycharm中也有类似的错误