工具使用-Idea-常见问题

问题一

笔者使用Windows10系统前天打开了系统的防火墙,之前一直处于关闭状态裸奔,打开Idea的时候报错Error:failed to create a child event loop,将Idea添加允许应用通过Windows防火墙,今天启动项目时又报错了,错误信息如下:

Error:Abnormal build process termination:
D:\devtools\Java\jdk1.8.0_171\bin\java.exe -Xmx2048m -Djava.awt.headless=true -Djava.endorsed.dirs=\”\” -Djdt.compiler.useSingleThread=true -Dcompile.parallel=false -Drebuild.on.dependency.change=true -Djava.net.preferIPv4Stack=true -Dio.netty.initialSeedUniquifier=-7126269010006678103 -Dfile.encoding=GBK -Duser.language=zh -Duser.country=CN -Didea.paths.selector=IntelliJIdea2018.3 “-Didea.home.path=D:\DevTools\JetBrains\IntelliJ IDEA 2018.3.4” -Didea.config.path=C:\Users\Lenovo.IntelliJIdea2018.3\config -Didea.plugins.path=C:\Users\Lenovo.IntelliJIdea2018.3\config\plugins -Djps.log.dir=C:/Users/Lenovo/.IntelliJIdea2018.3/system/log/build-log “-Djps.fallback.jdk.home=D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/jre64” -Djps.fallback.jdk.version=1.8.0_152-release -Dio.netty.noUnsafe=true -Djava.io.tmpdir=C:/Users/Lenovo/.IntelliJIdea2018.3/system/compile-server/his_9a30108d/_temp -Djps.backward.ref.index.builder=true -Dkotlin.incremental.compilation=true -Dkotlin.daemon.enabled -Dkotlin.daemon.client.alive.path=\”C:\Users\Lenovo\AppData\Local\Temp\kotlin-idea-8784120730718066357-is-running\” -classpath “D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/jps-launcher.jar;D:/dev_tools/Java/jdk1.8.0_171/lib/tools.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/optimizedFileManager.jar” org.jetbrains.jps.cmdline.Launcher “D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/plexus-component-annotations-1.6.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/netty-resolver-4.1.30.Final.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/aether-util-1.1.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/aether-transport-http-1.1.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/jps-builders.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/netty-common-4.1.30.Final.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/netty-transport-4.1.30.Final.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/javac2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/forms_rt.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/commons-codec-1.10.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/slf4j-api-1.7.25.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/log4j.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/idea_rt.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/util.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/platform-api.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/jps-model.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/jna.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/aether-spi-1.1.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/forms-1.1-preview.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/maven-model-builder-3.3.9.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/maven-aether-provider-3.3.9.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/trove4j.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/guava-25.1-jre.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/commons-logging-1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/netty-codec-4.1.30.Final.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/maven-model-3.3.9.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/protobuf-java-3.4.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/plexus-utils-3.0.22.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/aether-impl-1.1.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/lz4-1.3.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/resources_en.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/asm-all-7.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/httpclient-4.5.6.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/httpcore-4.4.10.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/aether-transport-file-1.1.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/annotations.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/oro-2.0.8.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/commons-lang3-3.4.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/aether-api-1.1.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/netty-buffer-4.1.30.Final.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/aether-connector-basic-1.1.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/aether-dependency-resolver.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/jps-builders-6.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/nanoxml-2.2.3.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/maven-builder-support-3.3.9.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/jna-platform.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/jdom.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/maven-artifact-3.3.9.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/plexus-interpolation-1.21.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/maven-repository-metadata-3.3.9.jar;;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/gson-2.8.5.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/jarutils.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/guava-25.1-jre.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/common-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/manifest-merger-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/sdk-common-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/builder-model-3.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/builder-test-api-3.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/ddmlib-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/repository-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/gradle/lib/gradle-api-4.10.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/gson-2.8.5.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/jarutils.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/guava-25.1-jre.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/common-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/manifest-merger-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/sdk-common-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/builder-model-3.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/builder-test-api-3.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/ddmlib-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/repository-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/gradle/lib/gradle-api-4.10.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/ant/lib/ant-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/uiDesigner/lib/jps/ui-designer-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/IntelliLang/lib/intellilang-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Groovy/lib/groovy-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Groovy/lib/groovy-rt-constants.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/eclipse/lib/eclipse-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/eclipse/lib/common-eclipse-util.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/maven/lib/maven-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/osmorc/lib/osmorc-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/osmorc/lib/biz.aQute.bndlib-4.0.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/osmorc/lib/biz.aQute.repository-4.0.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/osmorc/lib/biz.aQute.resolve-4.0.0.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/osmorc/lib/bundlor-all.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/aspectj/lib/aspectj-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/gradle/lib/gradle-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/devkit/lib/devkit-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/JavaEE/lib/javaee-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/JavaEE/lib/jps/jpa-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/webSphereIntegration/lib/jps/webSphere-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/weblogicIntegration/lib/jps/weblogic-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/jps/android-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/android-common.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/build-common.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/android-rt.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/sdklib.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/common-26.1.2.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/jarutils.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/android/lib/layoutlib-api.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/javaFX/lib/javaFX-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/javaFX/lib/common-javaFX-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Kotlin/lib/jps/kotlin-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Kotlin/lib/kotlin-stdlib.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Kotlin/lib/kotlin-reflect.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Kotlin/lib/kotlin-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Kotlin/lib/android-extensions-ide.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Kotlin/lib/android-extensions-compiler.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/flex/lib/flex-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/flex/lib/flex-shared.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/dmServer/lib/dmServer-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/GwtStudio/lib/gwt-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/GoogleAppEngine/lib/google-app-engine-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/GoogleAppEngine/lib/appEngine-runtime.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Grails/lib/grails-jps-plugin.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/plugins/Grails/lib/grails-compiler-patch.jar” org.jetbrains.jps.cmdline.BuildMain 127.0.0.1 54330 7775cb76-ea3f-46ff-9bed-396a0a4f4f18 C:/Users/Lenovo/.IntelliJIdea2018.3/system/compile-server
Build process started. Classpath: D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/lib/jps-launcher.jar;D:/dev_tools/Java/jdk1.8.0_171/lib/tools.jar;D:/DevTools/JetBrains/IntelliJ IDEA 2018.3.4/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:54330; 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 sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
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:168)
at io.netty.channel.nio.NioEventLoop.(NioEventLoop.java:142)
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 sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:94)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:61)
at java.security.AccessController.doPrivileged(Native Method)
at sun.nio.ch.PipeImpl.(PipeImpl.java:171)
at sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50)
at java.nio.channels.Pipe.open(Pipe.java:155)
at sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:127)
at sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:166)
… 16 more
Caused by: java.net.ConnectException: Connection timed out: connect
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:454)
at sun.nio.ch.Net.connect(Net.java:446)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
at sun.nio.ch.PipeImpl$Initializer$LoopbackConnector.run(PipeImpl.java:127)
at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:76)
… 24 more
Exiting.

可能原因:

  • 防火墙阻止了程序
  • 应该是昨天误删了jdk的安装文件导致,但是运行时jdk已经重新安装了;

解决办法:
将java.exe添加允许应用通过Windows防火墙
idea报错处理截图1-2019920103146

完美解决手贱引发的血案。。

coder立夏 wechat
扫描上方二维码,关注weyoung公众号,一起互动交流~~