author: Nathan-lzy
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. 问题解决
个人情况: 退出当前开启的程序,重启电脑,解决。
相关文章: