jfrog / jfrog-cli

JFrog CLI is a client that provides a simple interface that automates access to the JFrog products.
https://www.jfrog.com/confluence/display/CLI/JFrog+CLI
Apache License 2.0
536 stars 235 forks source link

Error message from "org.jfrog.build.extractor.maven.ArtifactoryManagerBuilder" is not (human-)readable #2306

Open habdank opened 1 year ago

habdank commented 1 year ago

Describe the bug

Error message is not (human-)readable.

For some deployments we got: [pool-10-thread-1] ERROR org.jfrog.build.extractor.maven.ArtifactoryManagerBuilder - Failed to upload file [main] ERROR org.jfrog.build.extractor.maven.BuildInfoRecorder - org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.ModuleParallelDeployHelper.deployArtifacts (ModuleParallelDeployHelper.java:38) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:55) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:164) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at java.util.concurrent.CompletableFuture.reportGet (CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get (CompletableFuture.java:1908) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deployArtifacts (ModuleParallelDeployHelper.java:36) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:55) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:164) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$deploy$4 (ModuleParallelDeployHelper.java:57) at java.lang.Iterable.forEach (Iterable.java:75) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deploy (ModuleParallelDeployHelper.java:44) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$null$1 (ModuleParallelDeployHelper.java:34) at java.util.concurrent.CompletableFuture$AsyncRun.run (CompletableFuture.java:1640) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:750) Caused by: java.io.IOException: JFrog service failed. Received 400: { "errors" : [ { "status" : 400, "message" : "Property key: +add+logic+for+Swift+duplicates is invalid due to Name must begin with a letter, cannot contain a whitespace, and cannot contain the following special characters: )(}{][*+^$\\/~!@#%&<>;=,��." } ] } at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.throwException (JFrogService.java:49) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.handleUnsuccessfulResponse (Upload.java:59) at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.execute (JFrogService.java:121) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.execute (Upload.java:77) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload (ArtifactoryManager.java:267) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload (ArtifactoryManager.java:262) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$deploy$4 (ModuleParallelDeployHelper.java:46) at java.lang.Iterable.forEach (Iterable.java:75) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deploy (ModuleParallelDeployHelper.java:44) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$null$1 (ModuleParallelDeployHelper.java:34) at java.util.concurrent.CompletableFuture$AsyncRun.run (CompletableFuture.java:1640) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:750) [main] ERROR org.apache.maven.cli.MavenCli - Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. [main] ERROR org.apache.maven.cli.MavenCli - Skipping deployment of remaining artifacts (if any) and build info. JFrog service failed. Received 400: { [main] ERROR org.apache.maven.cli.MavenCli - "errors" : [ { [main] ERROR org.apache.maven.cli.MavenCli - "status" : 400, [main] ERROR org.apache.maven.cli.MavenCli - "message" : "Property key: +add+logic+for+Swift+duplicates is invalid due to Name must begin with a letter, cannot contain a whitespace, and cannot contain the following special characters: )(}{][+^$\/~`!@#%&<>;=,��." [main] ERROR org.apache.maven.cli.MavenCli - } ] [main] ERROR org.apache.maven.cli.MavenCli - } [main] ERROR org.apache.maven.cli.MavenCli - -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:173) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.ModuleParallelDeployHelper.deployArtifacts (ModuleParallelDeployHelper.java:38) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:55) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:164) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at java.util.concurrent.CompletableFuture.reportGet (CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get (CompletableFuture.java:1908) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deployArtifacts (ModuleParallelDeployHelper.java:36) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:55) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:164) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$deploy$4 (ModuleParallelDeployHelper.java:57) at java.lang.Iterable.forEach (Iterable.java:75) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deploy (ModuleParallelDeployHelper.java:44) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$null$1 (ModuleParallelDeployHelper.java:34) at java.util.concurrent.CompletableFuture$AsyncRun.run (CompletableFuture.java:1640) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:750) Caused by: java.io.IOException: JFrog service failed. Received 400: { "errors" : [ { "status" : 400, "message" : "Property key: +add+logic+for+Swift+duplicates is invalid due to Name must begin with a letter, cannot contain a whitespace, and cannot contain the following special characters: )(}{][+^$\/~!@#%&<>;=,��." } ] } at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.throwException (JFrogService.java:49) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.handleUnsuccessfulResponse (Upload.java:59) at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.execute (JFrogService.java:121) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.execute (Upload.java:77) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload (ArtifactoryManager.java:267) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload (ArtifactoryManager.java:262) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$deploy$4 (ModuleParallelDeployHelper.java:46) at java.lang.Iterable.forEach (Iterable.java:75) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deploy (ModuleParallelDeployHelper.java:44) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$null$1 (ModuleParallelDeployHelper.java:34) at java.util.concurrent.CompletableFuture$AsyncRun.run (CompletableFuture.java:1640) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:750)

Current behavior

For some deployments we got: [pool-10-thread-1] ERROR org.jfrog.build.extractor.maven.ArtifactoryManagerBuilder - Failed to upload file [main] ERROR org.jfrog.build.extractor.maven.BuildInfoRecorder - org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.ModuleParallelDeployHelper.deployArtifacts (ModuleParallelDeployHelper.java:38) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:55) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:164) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at java.util.concurrent.CompletableFuture.reportGet (CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get (CompletableFuture.java:1908) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deployArtifacts (ModuleParallelDeployHelper.java:36) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:55) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:164) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$deploy$4 (ModuleParallelDeployHelper.java:57) at java.lang.Iterable.forEach (Iterable.java:75) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deploy (ModuleParallelDeployHelper.java:44) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$null$1 (ModuleParallelDeployHelper.java:34) at java.util.concurrent.CompletableFuture$AsyncRun.run (CompletableFuture.java:1640) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:750) Caused by: java.io.IOException: JFrog service failed. Received 400: { "errors" : [ { "status" : 400, "message" : "Property key: +add+logic+for+Swift+duplicates is invalid due to Name must begin with a letter, cannot contain a whitespace, and cannot contain the following special characters: )(}{][*+^$\\/~!@#%&<>;=,��." } ] } at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.throwException (JFrogService.java:49) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.handleUnsuccessfulResponse (Upload.java:59) at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.execute (JFrogService.java:121) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.execute (Upload.java:77) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload (ArtifactoryManager.java:267) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload (ArtifactoryManager.java:262) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$deploy$4 (ModuleParallelDeployHelper.java:46) at java.lang.Iterable.forEach (Iterable.java:75) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deploy (ModuleParallelDeployHelper.java:44) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$null$1 (ModuleParallelDeployHelper.java:34) at java.util.concurrent.CompletableFuture$AsyncRun.run (CompletableFuture.java:1640) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:750) [main] ERROR org.apache.maven.cli.MavenCli - Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. [main] ERROR org.apache.maven.cli.MavenCli - Skipping deployment of remaining artifacts (if any) and build info. JFrog service failed. Received 400: { [main] ERROR org.apache.maven.cli.MavenCli - "errors" : [ { [main] ERROR org.apache.maven.cli.MavenCli - "status" : 400, [main] ERROR org.apache.maven.cli.MavenCli - "message" : "Property key: +add+logic+for+Swift+duplicates is invalid due to Name must begin with a letter, cannot contain a whitespace, and cannot contain the following special characters: )(}{][+^$\/~`!@#%&<>;=,��." [main] ERROR org.apache.maven.cli.MavenCli - } ] [main] ERROR org.apache.maven.cli.MavenCli - } [main] ERROR org.apache.maven.cli.MavenCli - -> [Help 1] org.apache.maven.InternalErrorException: Internal error: java.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:120) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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.lang.RuntimeException: org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded() listener has failed: at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:173) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.ModuleParallelDeployHelper.deployArtifacts (ModuleParallelDeployHelper.java:38) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:55) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:164) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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: java.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at java.util.concurrent.CompletableFuture.reportGet (CompletableFuture.java:357) at java.util.concurrent.CompletableFuture.get (CompletableFuture.java:1908) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deployArtifacts (ModuleParallelDeployHelper.java:36) at org.jfrog.build.extractor.maven.BuildDeploymentHelper.deploy (BuildDeploymentHelper.java:55) at org.jfrog.build.extractor.maven.BuildInfoRecorder.sessionEnded (BuildInfoRecorder.java:164) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire (DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:137) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293) at org.apache.maven.cli.MavenCli.main (MavenCli.java:196) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) 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.lang.RuntimeException: Error occurred while publishing artifact to Artifactory: /opt/work/workspace/foobar/foobar-develop/foobar-develop-builddeploy/service/target/foo-bar-1.4.0-SNAPSHOT.jar. Skipping deployment of remaining artifacts (if any) and build info. at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$deploy$4 (ModuleParallelDeployHelper.java:57) at java.lang.Iterable.forEach (Iterable.java:75) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deploy (ModuleParallelDeployHelper.java:44) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$null$1 (ModuleParallelDeployHelper.java:34) at java.util.concurrent.CompletableFuture$AsyncRun.run (CompletableFuture.java:1640) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:750) Caused by: java.io.IOException: JFrog service failed. Received 400: { "errors" : [ { "status" : 400, "message" : "Property key: +add+logic+for+Swift+duplicates is invalid due to Name must begin with a letter, cannot contain a whitespace, and cannot contain the following special characters: )(}{][+^$\/~!@#%&<>;=,��." } ] } at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.throwException (JFrogService.java:49) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.handleUnsuccessfulResponse (Upload.java:59) at org.jfrog.build.extractor.clientConfiguration.client.JFrogService.execute (JFrogService.java:121) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.services.Upload.execute (Upload.java:77) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload (ArtifactoryManager.java:267) at org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager.upload (ArtifactoryManager.java:262) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$deploy$4 (ModuleParallelDeployHelper.java:46) at java.lang.Iterable.forEach (Iterable.java:75) at org.jfrog.build.extractor.ModuleParallelDeployHelper.deploy (ModuleParallelDeployHelper.java:44) at org.jfrog.build.extractor.ModuleParallelDeployHelper.lambda$null$1 (ModuleParallelDeployHelper.java:34) at java.util.concurrent.CompletableFuture$AsyncRun.run (CompletableFuture.java:1640) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) at java.lang.Thread.run (Thread.java:750)

Reproduction steps

As I do not unterstand the message I cannot really reproduce it.

Expected behavior

Having clear and human readable error which states, what is wrong and in best case, how to fix the problem.

JFrog CLI version

jf version 2.29.2

Operating system type and version

RHEL 7

JFrog Artifactory version

No response

JFrog Xray version

No response

karolvaclavik commented 1 month ago

We came across the same problem with root cause being:

Caused by: java.io.IOException: JFrog service failed. Received 400: { "errors" : [ { "status" : 400, "message" : "Property key: ) is invalid due to Name must begin with a letter, cannot contain a whitespace, and cannot contain the following special characters: )(}{][*+^$\/~`!@#%&<>;=,��." } ] }

Except we didn't have any attribute violating the rule. The only ')' symbol we were able to find in the whole .pom that was referenced was a comment including alternate configuration with path including (x86). We removed this comment and the problem is gone now.