idea 编译报错:Error connecting to 127.0.0.1:10435; reason: failed to create a child event loop

报错日志:

Error:Abnormal build process termination: 
"C:\Program Files\Java\jdk-9.0.1\bin\java.exe" -Xmx700m -Djava.awt.headless=true -Djdt.compiler.useSingleThread=true -Dpreload.project.path=D:/Code/PrototypeDemo -Dpreload.config.path=C:/Users/bingo/.IntelliJIdea2018.1/config/options -Dexternal.project.config=C:\Users\bingo\.IntelliJIdea2018.1\system\external_build_system\prototypedemo.3c6fcb9c -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-8913389587426338305 -Dfile.encoding=GBK -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2018.1 "-Didea.home.path=C:\Program Files\JetBrains\IntelliJ IDEA 2018.1.2" -Didea.config.path=C:\Users\bingo\.IntelliJIdea2018.1\config -Didea.plugins.path=C:\Users\bingo\.IntelliJIdea2018.1\config\plugins -Djps.log.dir=C:/Users/bingo/.IntelliJIdea2018.1/system/log/build-log "-Djps.fallback.jdk.home=C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/jre64" -Djps.fallback.jdk.version=1.8.0_152-release -Dio.netty.noUnsafe=true -Djava.io.tmpdir=C:/Users/bingo/.IntelliJIdea2018.1/system/compile-server/prototypedemo_5a2ef7e5/_temp_ -Djps.backward.ref.index.builder=true -Dkotlin.incremental.compilation=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\"C:\Users\bingo\AppData\Local\Temp\kotlin-idea-3710043221566146461-is-running\" -classpath "C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jps-launcher.jar;C:/Program Files/Java/jdk-9.0.1/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/optimizedFileManager.jar" org.jetbrains.jps.cmdline.Launcher "C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jps-builders.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jna.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/lz4-java-1.3.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/snappy-in-java-0.5.1.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/protobuf-java-3.0.0.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/asm-all.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/oro-2.0.8.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/httpcore-4.4.5.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/idea_rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/httpclient-4.5.2.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/resources_en.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jps-model.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/aether-dependency-resolver.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/commons-logging-1.2.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jna-platform.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/trove4j.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/javac2.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jps-builders-6.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/maven-aether-provider-3.3.9-all.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/util.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/guava-21.0.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/nanoxml-2.2.3.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/annotations.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/log4j.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jgoodies-forms.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/platform-api.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/netty-all-4.1.13.Final.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/forms_rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/aether-1.1.0-all.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jdom.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/slf4j-api-1.7.10.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/commons-codec-1.9.jar;;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/gson-2.8.2.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/jarutils.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/guava-21.0.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/android-base-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/gradle/lib/gradle-api-4.4.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/gson-2.8.2.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/jarutils.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/guava-21.0.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/android-base-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/gradle/lib/gradle-api-4.4.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/ant/lib/ant-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Groovy/lib/groovy-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Groovy/lib/groovy-rt-constants.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/eclipse/lib/eclipse-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/eclipse/lib/common-eclipse-util.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/maven/lib/maven-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/maven/lib/plexus-utils-2.0.6.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/osmorc/lib/osmorc-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/osmorc/lib/bndlib-3.3.0.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/osmorc/lib/bnd-repository-3.3.0.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/osmorc/lib/bnd-resolve-3.3.0.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/osmorc/lib/plexus-utils-3.0.10.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/osmorc/lib/bundlor-all.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/aspectj/lib/aspectj-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/gradle/lib/gradle-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/devkit/lib/devkit-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/JavaEE/lib/javaee-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/JavaEE/lib/jps/jpa-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/webSphereIntegration/lib/jps/webSphere-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/weblogicIntegration/lib/jps/weblogic-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/dmServer/lib/dmServer-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/GwtStudio/lib/gwt-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Grails/lib/grails-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Grails/lib/grails-compiler-patch.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/jps/android-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/android-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/build-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/android-rt.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/sdk-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/repository.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/sdklib.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/android-base-common.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/jarutils.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/layoutlib-api.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/android/lib/manifest-merger.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Kotlin/lib/kotlin-stdlib.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Kotlin/lib/kotlin-reflect.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Kotlin/lib/kotlin-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Kotlin/lib/android-extensions-ide.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/Kotlin/lib/android-extensions-compiler.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/javaFX/lib/javaFX-jps-plugin.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/plugins/javaFX/lib/common-javaFX-plugin.jar" org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 10435 825c6579-559a-40a9-b6c3-366879606b86 C:/Users/bingo/.IntelliJIdea2018.1/system/compile-server
Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/jps-launcher.jar;C:/Program Files/Java/jdk-9.0.1/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA 2018.1.2/lib/optimizedFileManager.jar
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Error connecting to 127.0.0.1:10435; reason: failed to create a child event loop
java.lang.IllegalStateException: failed to create a child event loop
    at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:88)
    at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:58) at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:47)
    at io.netty.channel.MultithreadEventLoopGroup.(MultithreadEventLoopGroup.java:59)
    at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:77)
    at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:72)
    at io.netty.channel.nio.NioEventLoopGroup.(NioEventLoopGroup.java:59)
    at org.jetbrains.jps.cmdline.BuildMain.main(BuildMain.java:91)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:58)
Caused by: io.netty.channel.ChannelException: failed to open a new selector at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:175)    at io.netty.channel.nio.NioEventLoop.(NioEventLoop.java:149)  at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:127)
    at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:36)
    at io.netty.util.concurrent.MultithreadEventExecutorGroup.(MultithreadEventExecutorGroup.java:84) ... 12 more
Caused by: java.io.IOException: Unable to establish loopback connection
    at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)	at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/sun.nio.ch.PipeImpl.(PipeImpl.java:171)
    at java.base/sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
    at java.base/java.nio.channels.Pipe.open(Pipe.java:155)
    at java.base/sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:127)
    at java.base/sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
    at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:173)
    ... 16 more
Caused by: java.net.ConnectException: Connection timed out: connect
    at java.base/sun.nio.ch.Net.connect0(Native Method)
    at java.base/sun.nio.ch.Net.connect(Net.java:454)
    at java.base/sun.nio.ch.Net.connect(Net.java:446)
    at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
    at java.base/java.nio.channels.SocketChannel.open(SocketChannel.java:194)   at java.base/sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)
    at java.base/sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)
    ... 24 more
Exiting.

网上方法是将防火墙关闭或者设置idea 网络通过,但是并不管用。
管用的居然是重启电脑!!感觉就是idea 本身的bug

你可能感兴趣的:(Java语言编程基础)