Skip to content
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

eclipse.jdt.ls core compilation fails on groovy-maven-plugin execution goal: SSLHandshakeException #3121

Open
Equiphract opened this issue Mar 29, 2024 · 2 comments

Comments

@Equiphract
Copy link

Equiphract commented Mar 29, 2024

When building this project I get the following stack trace:

[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: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake: Connection reset -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: 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: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:333)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:52)
    at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:161)
    at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:73)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.codehaus.gmaven:groovy-maven-plugin:2.1.1:execute failed: java.util.concurrent.ExecutionException: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:133)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:52)
    at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:161)
    at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:73)
Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
    at com.google.common.base.Throwables.propagate (Throwables.java:160)
    at org.codehaus.gmaven.plugin.MojoSupport.execute (MojoSupport.java:57)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:52)
    at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:161)
    at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:73)
Caused by: java.util.concurrent.ExecutionException: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
    at java.util.concurrent.CompletableFuture.reportGet (CompletableFuture.java:396)
    at java.util.concurrent.CompletableFuture.get (CompletableFuture.java:2073)
    at java_util_concurrent_Future$get.call (Unknown Source)
    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall (CallSiteArray.java:48)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call (AbstractCallSite.java:113)
    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call (AbstractCallSite.java:117)
    at script1.run (script1.groovy:59)
    at groovy.lang.GroovyShell.evaluate (GroovyShell.java:585)
    at org.codehaus.gmaven.adapter.impl.ScriptExecutorImpl.execute (ScriptExecutorImpl.java:83)
    at org.codehaus.gmaven.plugin.ExecuteMojo.run (ExecuteMojo.java:95)
    at org.codehaus.gmaven.plugin.MojoSupport.execute (MojoSupport.java:47)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:126)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:328)
    at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:316)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:212)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:174)
    at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:75)
    at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:162)
    at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:159)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:105)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:73)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:53)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:118)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:261)
    at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:173)
    at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:101)
    at org.apache.maven.cli.MavenCli.execute (MavenCli.java:906)
    at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:283)
    at org.apache.maven.cli.MavenCli.main (MavenCli.java:206)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:283)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:226)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:407)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:348)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
    at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:568)
    at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:52)
    at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:161)
    at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:73)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
    at jdk.internal.net.http.common.SSLTube.checkForHandshake (SSLTube.java:595)
    at jdk.internal.net.http.common.SSLTube$SSLTubeFlowDelegate.checkForHandshake (SSLTube.java:156)
    at jdk.internal.net.http.common.SSLFlowDelegate$Reader.errorCommon (SSLFlowDelegate.java:365)
    at jdk.internal.net.http.common.SubscriberWrapper.onError (SubscriberWrapper.java:410)
    at jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadSubscription.signalCompletion (SocketTube.java:637)
    at jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.read (SocketTube.java:821)
    at jdk.internal.net.http.SocketTube$SocketFlowTask.run (SocketTube.java:181)
    at jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run (SequentialScheduler.java:230)
    at jdk.internal.net.http.common.SequentialScheduler.runOrSchedule (SequentialScheduler.java:303)
    at jdk.internal.net.http.common.SequentialScheduler.runOrSchedule (SequentialScheduler.java:256)
    at jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalReadable (SocketTube.java:774)
    at jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent.signalEvent (SocketTube.java:957)
    at jdk.internal.net.http.SocketTube$SocketFlowEvent.handle (SocketTube.java:253)
    at jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent (HttpClientImpl.java:979)
    at jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3 (HttpClientImpl.java:934)
    at java.util.ArrayList.forEach (ArrayList.java:1511)
    at jdk.internal.net.http.HttpClientImpl$SelectorManager.run (HttpClientImpl.java:934)
Caused by: java.net.SocketException: Connection reset
    at sun.nio.ch.SocketChannelImpl.throwConnectionReset (SocketChannelImpl.java:394)
    at sun.nio.ch.SocketChannelImpl.read (SocketChannelImpl.java:426)
    at jdk.internal.net.http.SocketTube.readAvailable (SocketTube.java:1170)
    at jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.read (SocketTube.java:833)
    at jdk.internal.net.http.SocketTube$SocketFlowTask.run (SocketTube.java:181)
    at jdk.internal.net.http.common.SequentialScheduler$SchedulableTask.run (SequentialScheduler.java:230)
    at jdk.internal.net.http.common.SequentialScheduler.runOrSchedule (SequentialScheduler.java:303)
    at jdk.internal.net.http.common.SequentialScheduler.runOrSchedule (SequentialScheduler.java:256)
    at jdk.internal.net.http.SocketTube$InternalReadPublisher$InternalReadSubscription.signalReadable (SocketTube.java:774)
    at jdk.internal.net.http.SocketTube$InternalReadPublisher$ReadEvent.signalEvent (SocketTube.java:957)
    at jdk.internal.net.http.SocketTube$SocketFlowEvent.handle (SocketTube.java:253)
    at jdk.internal.net.http.HttpClientImpl$SelectorManager.handleEvent (HttpClientImpl.java:979)
    at jdk.internal.net.http.HttpClientImpl$SelectorManager.lambda$run$3 (HttpClientImpl.java:934)
    at java.util.ArrayList.forEach (ArrayList.java:1511)
    at jdk.internal.net.http.HttpClientImpl$SelectorManager.run (HttpClientImpl.java:934)

I tried to debug this. It seems to fail in the Groovy portion of the core pom.xml. Most HTTP requests that this piece of code starts seem to go through but then fails at some point (have not found out where yet).

Edit:
Correction: all requests seem to fail with the same exception.

Edit 2:
I was able to complete the build on another machine without any of the problems I described here, so it seems it is an issue with my system, though I do not have a clue of what it could be...

@Equiphract Equiphract changed the title eclipse.jdt.ls core compilation fails on groovy-maven-plugin execution goal SSLHandshakeException eclipse.jdt.ls core compilation fails on groovy-maven-plugin execution goal: SSLHandshakeException Mar 29, 2024
@mfussenegger
Copy link
Contributor

Does it work if you set -Declipse.jdt.ls.skipGradleChecksums? If so, this could be related to the issue discussed in #2917

@Equiphract
Copy link
Author

Yes, with -Declipse.jdt.ls.skipGradleChecksums set (and having created an empty checksums.json at the appropriate location) the build completes successfully.

I do wonder however why the build ran flawlessly on another machine (PopOS) but neither on my Gentoo machine nor my Gentoo VM on a Windows host. At first I thought I might have misconfigured something in my OS but since you seem to experience similar issues it might be something else. Sadly my expertise on network protocols - or networking in general - is fairly limited.

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

No branches or pull requests

2 participants