Skip to content

Building from source fails with "Thread limit exceeded replacing blocked worker" #3446

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sascha-krug opened this issue May 9, 2025 · 2 comments
Labels

Comments

@sascha-krug
Copy link

Hi,

I tried to build this project from source on a Mac according to the doc.
I git-cloned the repo and and switched to tag v1.46.1 and then executed:

JAVA_HOME=/Library/Java/JavaVirtualMachines/graalvm-community-openjdk-21/Contents/Home/ ./mvnw clean verify -DskipTests=true

which then breaks with:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for JDT Language Server :: Parent 1.46.1-SNAPSHOT:
[INFO]
[INFO] JDT Language Server :: Parent ...................... SUCCESS [  0.020 s]
[INFO] JDT Language Server :: Target Platform ............. SUCCESS [  0.003 s]
[INFO] JDT Language Server :: Core ........................ FAILURE [  8.650 s]
[INFO] JDT Language Server :: Filesystem .................. SKIPPED
[INFO] JDT Language Server :: Tests ....................... SKIPPED
[INFO] JDT Language Server :: Java LS Logback.appender .... SKIPPED
[INFO] JDT Language Server :: SyntaxServer Tests .......... SKIPPED
[INFO] JDT Language Server :: Product ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.358 s
[INFO] Finished at: 2025-05-09T12:05:38+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute (default) on project org.eclipse.jdt.ls.core: Execution default of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: java.util.concurrent.ExecutionException: java.util.concurrent.RejectedExecutionException: Thread limit exceeded replacing blocked worker -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :org.eclipse.jdt.ls.core

Java info:

java -version
openjdk version "21.0.2" 2024-01-16
OpenJDK Runtime Environment GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30)
OpenJDK 64-Bit Server VM GraalVM CE 21.0.2+13.1 (build 21.0.2+13-jvmci-23.1-b30, mixed mode, sharing)

Does anyone what's going on?

@rgrunber
Copy link
Contributor

rgrunber commented May 9, 2025

Likely due to the script at

<groupId>org.codehaus.gmaven</groupId>
<artifactId>groovy-maven-plugin</artifactId>
<version>2.1.1</version>
. I've seen it happen as well. Does it happen every time or does it go away if you run the build again ? Might be a reason to consider #3434 .

@sascha-krug
Copy link
Author

sascha-krug commented May 12, 2025

Well, I tried again. Now things are going to be a little bit crazy:
Using tag 1.46.1 and running
JAVA_HOME=/Library/Java/JavaVirtualMachines/graalvm-community-openjdk-21/Contents/Home/ ./mvnw verify -U -DskipTests=true this time with the "-U" flag (I oversaw it the first time) now brings this error:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:4.0.12:compile (default-compile) on project org.eclipse.jdt.ls.core: Compilation failure: Compilation failure:
[ERROR] /Users/krugs/Projects/eclipse.jdt.ls/org.eclipse.jdt.ls.core/src/org/eclipse/jdt/ls/core/internal/corrections/proposals/LocalCorrectionsSubProcessor.java:[110]
[ERROR]         public class LocalCorrectionsSubProcessor extends LocalCorrectionsBaseSubProcessor<ProposalKindWrapper> {
[ERROR]                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] The type LocalCorrectionsSubProcessor must implement the inherited abstract method LocalCorrectionsBaseSubProcessor<ProposalKindWrapper>.newLocalVariableCorrectionProposalToT(NewLocalVariableCorrectionProposalCore, int)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :org.eclipse.jdt.ls.core

BUT: when checking out the todays main branch and running the same script, it finish successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants