博客 / 詳情

返回

Caused by: java.net.BindException: Address already in use: bind


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啓動端口占用相關描述

在這個回答中總結的一些可能的方法。至少此時是可以通過重啓電腦使得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
user avatar
0 位用戶收藏了這個故事!

發佈 評論

Some HTML is okay.