当从终端运行 intellij 的 bootRun 时,为什么 Gradle 会抛出“传输错误 202”

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

信息

带有 WSL 的 Windows

Java 23、Gradle 8.10、Spring Boot Gradle 插件 3.3.4

问题

当我从终端运行

./gradlew clean bootRun
时,一切正常。然而,当我从 Intellij 尝试同样的事情时,我得到了

Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.For more details on the daemon, please refer to https://docs.gradle.org/8.10.2/userguide/gradle_daemon.html in the Gradle documentation.
Process command line: /home/jgleason/lib/java/jdk-23/bin/java --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -XX:MaxMetaspaceSize=384m -XX:+HeapDumpOnOutOfMemoryError -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=172.18.176.1:53111 --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/jgleason/lib/gradle/gradle-8.10.2/lib/gradle-daemon-main-8.10.2.jar -javaagent:/home/jgleason/lib/gradle/gradle-8.10.2/lib/agents/gradle-instrumentation-agent-8.10.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 8.10.2
Please read the following process output to find out more:
-----------------------
ERROR: transport error 202: connect failed: Connection timed out
ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [open/src/jdk.jdwp.agent/share/native/libjdwp/debugInit.c:700]

enter image description here

我怎样才能让它从 IJ 运行?

我也尝试过,但没有解决问题

Gradle / IntelliJ 沟通不畅导致“无法启动守护进程”

java spring-boot gradle intellij-idea
1个回答
0
投票

看起来是 IJ 中的一个错误 链接在这里

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