Open nagkumar opened 6 months ago
Change to the comment-service folder: cd comment-service
Build the application and create a Docker image: mvn clean install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for 'com.cassiomolin.logaggregation:comment-service:jar:1.0-SNAPSHOT'
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-dependency-plugin is missing. @ line 120, column 13
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ---------------------------------< com.cassiomolin.logaggregation:comment-service >----------------------------------
[INFO] Building comment-service 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] -------------------------------------------------------[ jar ]-------------------------------------------------------
[WARNING] Version not locked for default bindings plugins [maven-clean-plugin, maven-resources-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ comment-service ---
[INFO] Deleting F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ comment-service ---
[INFO] Copying 4 resources from src\main\resources to target\classes
[INFO] skip non existing resourceDirectory F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\src\main\resources-filtered
[INFO]
[INFO] --- compiler:3.8.0:compile (default-compile) @ comment-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\target\classes
[INFO] ---------------------------------------------------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------------------------------------------------------
[INFO] Total time: 2.494 s
[INFO] Finished at: 2024-05-15T16:28:33+05:30
[INFO] ---------------------------------------------------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project comm
ent-service: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @
0x3f6c2763) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x3f6c2763 -> [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 verbose output
[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/MojoExecutionException
change lombok to to work on jdk 17
_<lombok.version>1.18.32</lombok.version>_
F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service>mvn clean install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for 'com.cassiomolin.logaggregation:comment-service:jar:1.0-SNAPSHOT'
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-dependency-plugin is missing. @ line 118, column 13
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ---------------------------------< com.cassiomolin.logaggregation:comment-service >----------------------------------
[INFO] Building comment-service 1.0-SNAPSHOT
[INFO] from pom.xml
[INFO] -------------------------------------------------------[ jar ]-------------------------------------------------------
[WARNING] Version not locked for default bindings plugins [maven-clean-plugin, maven-resources-plugin, maven-surefire-plugin, maven-jar-plugin, maven-install-plugin], you should define versions in pluginManagement section of your pom.xml or parent
[INFO]
[INFO] --- clean:3.2.0:clean (default-clean) @ comment-service ---
[INFO] Deleting F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\target
[INFO]
[INFO] --- resources:3.3.1:resources (default-resources) @ comment-service ---
[INFO] Copying 4 resources from src\main\resources to target\classes
[INFO] skip non existing resourceDirectory F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\src\main\resources-filtered
[INFO]
[INFO] --- compiler:3.8.0:compile (default-compile) @ comment-service ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 5 source files to F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\target\classes
[INFO]
[INFO] --- resources:3.3.1:testResources (default-testResources) @ comment-service ---
[INFO] skip non existing resourceDirectory F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\src\test\resources
[INFO] skip non existing resourceDirectory F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\src\test\resources-filtered
[INFO]
[INFO] --- compiler:3.8.0:testCompile (default-testCompile) @ comment-service ---
[INFO] No sources to compile
[INFO]
[INFO] --- surefire:3.1.2:test (default-test) @ comment-service ---
[INFO] No tests to run.
[INFO]
[INFO] --- jar:3.3.0:jar (default-jar) @ comment-service ---
[INFO] Building jar: F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\target\comment-service-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- spring-boot:2.1.5.RELEASE:repackage (default) @ comment-service ---
[INFO] Replacing main artifact with repackaged archive
[INFO]
[INFO] --- dependency:3.6.1:unpack (unpack) @ comment-service ---
[INFO] Configured Artifact: com.cassiomolin.logaggregation:comment-service:1.0-SNAPSHOT:jar
[INFO]
[INFO] --- install:3.1.1:install (default-install) @ comment-service ---
[INFO] Installing F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\target\comment-service-1.0
-SNAPSHOT.jar to C:\Users\nagku\.m2\repository\com\cassiomolin\logaggregation\comment-service\1.0-SNAPSHOT\comment-service-1.0-SNAPSHOT.jar
[INFO] Installing F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\pom.xml to C:\Users\nagku\.m2\repository\com\cassiomolin\logaggregation\comment-service\1.0-SNAPSHOT\comment-service-1.0-SNAPSHOT-build.pom
[INFO] Installing F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service\target\consumer-2243422324
68408234.pom to C:\Users\nagku\.m2\repository\com\cassiomolin\logaggregation\comment-service\1.0-SNAPSHOT\comment-service-1.0-SNAPSHOT.pom
[INFO]
[INFO] --- dockerfile:1.4.10:build (default) @ comment-service ---
[INFO] dockerfile: null
[INFO] contextDirectory: F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service
[INFO] Building Docker context F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service
[INFO] Path(dockerfile): null
[INFO] Path(contextDirectory): F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service
[INFO]
[INFO] Image will be built as cassiomolin/comment-service:latest
[INFO]
[WARNING] An attempt failed, will retry 1 more times
org.apache.maven.plugin.MojoExecutionException: Could not build image
at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:234)
at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:129)
at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:143)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:330)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:318)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:214)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:74)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:111)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:77)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:60)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:129)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:313)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:228)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:958)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:205)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.spotify.docker.client.exceptions.DockerException: java.util.concurrent.ExecutionException: com.spotify.docker.
client.shaded.javax.ws.rs.ProcessingException: com.spotify.docker.client.shaded.org.apache.http.conn.HttpHostConnectException
: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information
at com.spotify.docker.client.DefaultDockerClient.propagate (DefaultDockerClient.java:2828)
at com.spotify.docker.client.DefaultDockerClient.request (DefaultDockerClient.java:2692)
at com.spotify.docker.client.DefaultDockerClient.version (DefaultDockerClient.java:580)
at com.spotify.docker.client.DefaultDockerClient.authRegistryHeader (DefaultDockerClient.java:2871)
at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1478)
at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1445)
at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:227)
at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:129)
at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:143)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:330)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:318)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:214)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:74)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:111)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:77)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:60)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:129)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:313)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:228)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:958)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:205)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: com.spo
tify.docker.client.shaded.org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information
at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.getValue (AbstractFuture.java:299)
at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.get (AbstractFuture.java:286)
at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture.get (AbstractFuture.java:116)
at com.spotify.docker.client.DefaultDockerClient.request (DefaultDockerClient.java:2690)
at com.spotify.docker.client.DefaultDockerClient.version (DefaultDockerClient.java:580)
at com.spotify.docker.client.DefaultDockerClient.authRegistryHeader (DefaultDockerClient.java:2871)
at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1478)
at com.spotify.docker.client.DefaultDockerClient.build (DefaultDockerClient.java:1445)
at com.spotify.plugin.dockerfile.BuildMojo.buildImage (BuildMojo.java:227)
at com.spotify.plugin.dockerfile.BuildMojo.execute (BuildMojo.java:129)
at com.spotify.plugin.dockerfile.AbstractDockerMojo.tryExecute (AbstractDockerMojo.java:265)
at com.spotify.plugin.dockerfile.AbstractDockerMojo.execute (AbstractDockerMojo.java:254)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:143)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:330)
at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:318)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:214)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:175)
at org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (MojoExecutor.java:74)
at org.apache.maven.lifecycle.internal.MojoExecutor$1.run (MojoExecutor.java:163)
at org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (DefaultMojosExecutionStrategy.java:39)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:160)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:111)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:77)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:60)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:129)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:313)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:228)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:153)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:958)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:205)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: com.spotify.docker.client.shaded.org.apache.http
.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:481)
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector$1.run (ApacheConnector.java:491)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute (MoreExecutors.java:299)
at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:123)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:50)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:37)
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:487)
at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$2.run (ClientRuntime.java:178)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:271)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:267)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:315)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:297)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:267)
at com.spotify.docker.client.shaded.org.glassfish.jersey.process.internal.RequestScope.runInScope (RequestScope.java:340)
at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$3.run (ClientRuntime.java:210)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
at java.lang.Thread.run (Thread.java:842)
Caused by: com.spotify.docker.client.shaded.org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information
at com.spotify.docker.client.shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:151)
at com.spotify.docker.client.shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect (PoolingHttpClientConnectionManager.java:353)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:380)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:88)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RedirectExec.execute (RedirectExec.java:110)
at com.spotify.docker.client.shaded.org.apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:184)
at com.spotify.docker.client.shaded.org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:71)
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:435)
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector$1.run (ApacheConnector.java:491)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute (MoreExecutors.java:299)
at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:123)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:50)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:37)
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:487)
at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$2.run (ClientRuntime.java:178)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:271)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:267)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:315)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:297)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:267)
at com.spotify.docker.client.shaded.org.glassfish.jersey.process.internal.RequestScope.runInScope (RequestScope.java:340)
at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$3.run (ClientRuntime.java:210)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
at java.lang.Thread.run (Thread.java:842)
Caused by: java.net.ConnectException: Connection refused: no further information
at sun.nio.ch.Net.pollConnect (Native Method)
at sun.nio.ch.Net.pollConnectNow (Net.java:672)
at sun.nio.ch.NioSocketImpl.timedFinishConnect (NioSocketImpl.java:547)
at sun.nio.ch.NioSocketImpl.connect (NioSocketImpl.java:602)
at java.net.SocksSocketImpl.connect (SocksSocketImpl.java:327)
at java.net.Socket.connect (Socket.java:633)
at com.spotify.docker.client.shaded.org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket (PlainConnectionSocketFactory.java:74)
at com.spotify.docker.client.shaded.org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:134)
at com.spotify.docker.client.shaded.org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect (PoolingHttpClientConnectionManager.java:353)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:380)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:236)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RetryExec.execute (RetryExec.java:88)
at com.spotify.docker.client.shaded.org.apache.http.impl.execchain.RedirectExec.execute (RedirectExec.java:110)
at com.spotify.docker.client.shaded.org.apache.http.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:184)
at com.spotify.docker.client.shaded.org.apache.http.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:71)
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:435)
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector$1.run (ApacheConnector.java:491)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute (MoreExecutors.java:299)
at java.util.concurrent.AbstractExecutorService.submit (AbstractExecutorService.java:123)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:50)
at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit (AbstractListeningExecutorService.java:37)
at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.apply (ApacheConnector.java:487)
at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$2.run (ClientRuntime.java:178)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:271)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors$1.call (Errors.java:267)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:315)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:297)
at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.Errors.process (Errors.java:267)
at com.spotify.docker.client.shaded.org.glassfish.jersey.process.internal.RequestScope.runInScope (RequestScope.java:340)
at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRuntime$3.run (ClientRuntime.java:210)
at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
at java.util.concurrent.FutureTask.run (FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
at java.lang.Thread.run (Thread.java:842)
[INFO] dockerfile: null
[INFO] contextDirectory: F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service
[INFO] Building Docker context F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service
[INFO] Path(dockerfile): null
[INFO] Path(contextDirectory): F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr\comment-service
[INFO]
[INFO] Image will be built as cassiomolin/comment-service:latest
[INFO]
[INFO] ---------------------------------------------------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------------------------------------------------------------
[INFO] Total time: 21.519 s
[INFO] Finished at: 2024-05-15T16:36:17+05:30
[INFO] ---------------------------------------------------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.4.10:build (default) on project comment-service: Could n
ot build image: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: co
m.spotify.docker.client.shaded.org.apache.http.conn.HttpHostConnectException: Connect to localhost:2375 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: no further information -> [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 verbose output
[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/MojoExecutionException
It is using JDK 11, can be changed like this
F:\nag\DWork\osource\experiments\java\spring-boot\otel\es\logagr>docker-compose up
[+] Running 4/4
✘ elasticsearch Error context canceled 3.3s
✘ logstash Error manifest for docker.elastic.co/logstash/logstash:latest not found: manifest u... 3.3s
✘ kibana Error context canceled 3.3s
✘ filebeat Error context canceled
use version : 8.13.4,
give elastic/elastic to all
finally
\java\spring-boot\otel\es\logagr>docker-compose up