报错内容

  1. Internal error. Please refer to http://jb.gg/ide/critical-startup-errors
  2. java.util.concurrent.CompletionException: java.net.BindException: Address already in use: bind
  3. at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
  4. at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
  5. at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1702)
  6. at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
  7. at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
  8. at java.base/java.lang.Thread.run(Thread.java:834)
  9. Caused by: java.net.BindException: Address already in use: bind
  10. at java.base/sun.nio.ch.Net.bind0(Native Method)
  11. at java.base/sun.nio.ch.Net.bind(Net.java:455)
  12. at java.base/sun.nio.ch.Net.bind(Net.java:447)
  13. at java.base/sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:227)
  14. at io.netty.channel.socket.nio.NioServerSocketChannel.doBind(NioServerSocketChannel.java:132)
  15. at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:551)
  16. at io.netty.channel.DefaultChannelPipeline$HeadContext.bind(DefaultChannelPipeline.java:1346)
  17. at io.netty.channel.AbstractChannelHandlerContext.invokeBind(AbstractChannelHandlerContext.java:503)
  18. at io.netty.channel.AbstractChannelHandlerContext.bind(AbstractChannelHandlerContext.java:488)
  19. at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:985)
  20. at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:247)
  21. at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:344)
  22. at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
  23. at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510)
  24. at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518)
  25. at io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1044)
  26. at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
  27. at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
  28. ... 1 more
  29. -----
  30. JRE 11.0.5+10-b520.30 amd64 by JetBrains s.r.o

解决办法

用管理员启动 powershell ,执行以下命令,最后重启 windows 即可

  1. netsh winsock reset
  2. netsh int ipv4 set dynamicport tcp start=49152 num=16383
  3. netsh int ipv4 set dynamicport udp start=49152 num=16383