关于idea:Caused-by-javanetBindException-Address-already-in-use-bind

17次阅读

共计 3720 个字符,预计需要花费 10 分钟才能阅读完成。


author: Nathan-niee
date: 2021-09-26-01:16


tags: #Idea #应用问题

1. 问题形容

今日下午关上 idea 软件, 提醒如下信息:

Internal error. Please refer to https://jb.gg/ide/critical-startup-errors

java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
    at java.base/java.security.AccessController.doPrivileged(Native Method)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.net.BindException: Address already in use: bind
    at java.base/sun.nio.ch.Net.bind0(Native Method)
    at java.base/sun.nio.ch.Net.bind(Net.java:455)
    at java.base/sun.nio.ch.Net.bind(Net.java:447)
    at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
    at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:134)
    at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:550)
    at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1334)
    at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:506)
    at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:491)
    at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:973)
    at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:248)
    at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:356)
    at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
    at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
    at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
    at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
    at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
    at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    ... 1 more

-----
Your JRE: 11.0.9.1+11-b1145.77 amd64 (JetBrains s.r.o.)
D:\main\program\dev\IdeaUltimate\IntelliJ IDEA 2020.3.2\jbr

截图:

能够很显眼的看到 caused by java.net.BindException: Address already in use: bind, 能够猜测是端口地址被占用了, 于是到网站查找相干解答, 找到了比拟合乎的(截然不同) 的状况的解答

2. 问题剖析

在 itellij idea 官方论坛中找到相似问题的探讨

截图:

在这个答复中总结的一些可能的办法。至多此时是能够通过重启电脑使得 idea 再次工作(可能开启太多软件应用, 占用了很多端口)。

## Attempts to solve the problem

I have attempted to solve the problem by taking the following steps, but in vain:

  • I attempted to reboot the computer and retry to launch IntelliJ IDEA. It did not work.
  • According to some information on the Internet, I learned that it may have something to do with unavailable ports; however, I cannot find the information about which port is needed in the error message and therefore cannot solve the problem this way.
  • I attempted to launch PyCharm Professional 2019.2 on the same computer, and it reported the exactly same error as IntelliJ IDEA.

I have not launched IntelliJ IDEA on this computer for several months, so I’m afraid that I cannot figure out which of the changes to my computer has caused the problem.

3. 问题解决

集体状况: 退出以后开启的程序, 重启电脑, 解决。

相干文章:

  1. IDEA 启动报错 -java.net.BindException: Address already in use: bind – 蓝天上的云℡ – 博客园
  2. Critical Internal Error on Startup of IntelliJ IDEA: “Cannot Lock System Folders” – IDEs Support (IntelliJ Platform) | JetBrains
正文完
 0