我安装了IntelliJ IDEA 2016.3 社区版并创建了一个简单的 Java 类,其中包含一个main
仅打印消息的方法。当我运行该“程序”时,会出现以下窗口:
Windows 防火墙已阻止此程序的某些功能
Window Firewall 已在所有公共和专用网络上阻止了 IntelliJ IDEA 的某些功能。
如果我去File > Settings... > Appeareance & Behavior > System Settings > Usage Statistics > Allow send usage statistics to JetBrains sro未选中。
如果我去C:\Users\myusername\.IdeaIC2016.3\system\log
:
build-log\build.log
- 似乎没有什么可疑的idea.log
- 唯一有趣的行是:在第一次运行时,当 Windows 安全警报窗口出现时,有 5 个块看起来像这样(不完全相同):
2016-12-01 09:42:53,814 [ 662361] INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index org.jetbrains.kotlin.idea.versions.KotlinMetadataVersionIndex java.lang.Throwable at com.intellij.util.indexing.FileBasedIndex.requestRebuild(FileBasedIndex.java:72) at org.jetbrains.kotlin.idea.versions.KotlinUpdatePluginComponent.initComponent(KotlinUpdatePluginComponent.kt:62) at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:501) at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponents(ComponentManagerImpl.java:125) at com.intellij.openapi.application.impl.ApplicationImpl.lambda$createComponents$8(ApplicationImpl.java:441) at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:568) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164) at com.intellij.openapi.application.impl.ApplicationImpl.createComponents(ApplicationImpl.java:448) at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:109) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:400) at com.intellij.openapi.application.impl.ApplicationImpl.load(ApplicationImpl.java:386) at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:190) at com.intellij.idea.MainImpl$1.lambda$null$0(MainImpl.java:47) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756) at java.awt.EventQueue.access$500(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.awt.EventQueue$3.run(EventQueue.java:703) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:726) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:363) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
关闭 Windows 安全警报窗口并再次运行后:
java.io.IOException: An existing connection was forcibly closed by the remote host at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:192) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288) at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1100) at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:367) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:118) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:631) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:560) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:474) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:446) at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:873) at java.lang.Thread.run(Thread.java:745)
IntelliJ IDEA 试图做什么?
以及如何防止进入该窗口安全警报窗口的原因?
编辑:它也发生在 IntelliJ IDEA 2017.1 中。