intellij-idea - 无法创建子事件循环

标签 intellij-idea

在IntelliJ IDEA社区版14.0.2中,我尝试运行Java Applet,并且每次尝试运行项目时,都会收到此虚拟错误。

Error: Failed to create a child event loop

我尝试过的
  • 编译新创建的Hello World程序
  • 更新IntelliJ
  • 卸载并重新安装
  • 从Windows防火墙规则允许
  • 禁用防病毒程序

  • 我正在将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
    

    最佳答案

    重新启动intelliJ并没有帮助,重新启动计算机就可以了!

    关于intellij-idea - 无法创建子事件循环,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27506788/

    相关文章:

    kotlin - 结构搜索接口(interface)挂起函数调用

    grails - 如何将 Grails 插件添加到 IntellIJ?

    java - IntelliJ IDEA : Jar doesn't load images when run outside of IDE

    java - 如何使用 IntelliJ IDEA 而不是通过 shell 构建 Java 项目?

    maven - Intellij 想法 : view test coverage on a maven project

    tabs - Intellij IDEA 11.0.2,设置自定义文件类型的制表符大小?

    node.js - 使用intellij idea ce在kotlin中编写nodejs应用程序

    java - 应用程序错误:java: module not found: javafx.

    java - IntelliJ IDEA 告诉我 "Error:java: Compilation failed: internal java compiler error idea"

    intellij-idea - 一般如何修复 'target of URI does not exist'?