Windows 防火墙阻止了 IntelliJ IDEA 的某些功能

问题描述 投票:0回答:1

我安装了 IntelliJ IDEA 2016.3 Community Edition 并创建了一个简单的 Java 类,其中包含仅打印消息的

main
方法。当我运行该“程序”时,会出现以下窗口:

Windows Security Alert

Windows 防火墙已阻止该程序的某些功能

Window 防火墙已在所有公共和专用网络上阻止 IntelliJ IDEA 的某些功能。

如果我转到 文件 > 设置... > 外观和行为 > 系统设置 > 使用情况统计信息 > 允许将使用情况统计信息发送到 JetBrains s.r.o 未选中

Do not allow sending usage statistics to JetBrains

如果我去

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 想要做什么?

如何防止进入 Window 安全警报窗口?

编辑: IntelliJ IDEA 2017.1 中也会发生这种情况。

security intellij-idea windows-firewall windows-security intellij-idea-2016
1个回答
0
投票

Intellij 需要权限,以便它可以无缝下载您选择的插件,或者如果您的构建设置配置为不同的工件以从中获取其代码快照(例如,当您在 pom 中包含包时 - intellij 在后台,当您如果您在 Intellij 中安装了“Code With Me”插件,则当您首次在系统上安装 Intellij 且在路径中找不到 git 时,请按 maven 刷新将其从 Maven 存储库下载到本地 .m2 文件夹。功能正常,还有很多其他东西。

© www.soinside.com 2019 - 2024. All rights reserved.