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

Expected a com.google.gson.JsonObject but was com.google.gson.JsonArray #1796

Open
nodece opened this issue Jun 24, 2024 · 0 comments
Open

Comments

@nodece
Copy link
Contributor

nodece commented Jun 24, 2024

Description

Build error on GitHub Actions:

2024-06-24T07:23:11.4028773Z [ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.44.0:build (default) on project java-test-image: Execution default of goal io.fabric8:docker-maven-plugin:0.44.0:build failed: Expected a com.google.gson.JsonObject but was com.google.gson.JsonArray -> [Help 1]
2024-06-24T07:23:11.4033908Z org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:docker-maven-plugin:0.44.0:build (default) on project java-test-image: Execution default of goal io.fabric8:docker-maven-plugin:0.44.0:build failed: Expected a com.google.gson.JsonObject but was com.google.gson.JsonArray
2024-06-24T07:23:11.4037078Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:375)
2024-06-24T07:23:11.4038734Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
2024-06-24T07:23:11.4040167Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
2024-06-24T07:23:11.4041564Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
2024-06-24T07:23:11.4042972Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
2024-06-24T07:23:11.4044656Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
2024-06-24T07:23:11.4046746Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
2024-06-24T07:23:11.4048844Z     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
2024-06-24T07:23:11.4050734Z     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
2024-06-24T07:23:11.4052249Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:299)
2024-06-24T07:23:11.4053293Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
2024-06-24T07:23:11.4054299Z     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
2024-06-24T07:23:11.4055455Z     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
2024-06-24T07:23:11.4056383Z     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
2024-06-24T07:23:11.4057272Z     at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
2024-06-24T07:23:11.4058298Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
2024-06-24T07:23:11.4059616Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
2024-06-24T07:23:11.4061152Z     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
2024-06-24T07:23:11.4062341Z     at java.lang.reflect.Method.invoke (Method.java:568)
2024-06-24T07:23:11.4063459Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
2024-06-24T07:23:11.4064829Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
2024-06-24T07:23:11.4066213Z     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
2024-06-24T07:23:11.4067563Z     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
2024-06-24T07:23:11.4070082Z Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal io.fabric8:docker-maven-plugin:0.44.0:build failed: Expected a com.google.gson.JsonObject but was com.google.gson.JsonArray
2024-06-24T07:23:11.4072273Z     at com.gradle.maven.scan.extension.internal.d.a.executeMojo (SourceFile:123)
2024-06-24T07:23:11.4073575Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
2024-06-24T07:23:11.4074966Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
2024-06-24T07:23:11.4076332Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
2024-06-24T07:23:11.4077664Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
2024-06-24T07:23:11.4078916Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
2024-06-24T07:23:11.4079842Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
2024-06-24T07:23:11.4081871Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
2024-06-24T07:23:11.4083809Z     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
2024-06-24T07:23:11.4085683Z     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
2024-06-24T07:23:11.4087020Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:299)
2024-06-24T07:23:11.4088249Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
2024-06-24T07:23:11.4089220Z     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
2024-06-24T07:23:11.4090233Z     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
2024-06-24T07:23:11.4091173Z     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
2024-06-24T07:23:11.4095885Z     at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
2024-06-24T07:23:11.4097004Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
2024-06-24T07:23:11.4098439Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
2024-06-24T07:23:11.4100043Z     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
2024-06-24T07:23:11.4101883Z     at java.lang.reflect.Method.invoke (Method.java:568)
2024-06-24T07:23:11.4104151Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
2024-06-24T07:23:11.4105803Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
2024-06-24T07:23:11.4107820Z     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
2024-06-24T07:23:11.4109744Z     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
2024-06-24T07:23:11.4111397Z Caused by: com.google.gson.JsonSyntaxException: Expected a com.google.gson.JsonObject but was com.google.gson.JsonArray
2024-06-24T07:23:11.4112992Z     at com.google.gson.internal.bind.TypeAdapters$33$1.read (TypeAdapters.java:869)
2024-06-24T07:23:11.4114003Z     at com.google.gson.Gson.fromJson (Gson.java:963)
2024-06-24T07:23:11.4114797Z     at com.google.gson.Gson.fromJson (Gson.java:928)
2024-06-24T07:23:11.4115583Z     at com.google.gson.Gson.fromJson (Gson.java:877)
2024-06-24T07:23:11.4116341Z     at com.google.gson.Gson.fromJson (Gson.java:848)
2024-06-24T07:23:11.4117402Z     at io.fabric8.maven.docker.util.JsonFactory.newJsonObject (JsonFactory.java:18)
2024-06-24T07:23:11.4119000Z     at io.fabric8.maven.docker.access.hc.DockerAccessWithHcClient.getImageId (DockerAccessWithHcClient.java:478)
2024-06-24T07:23:11.4120647Z     at io.fabric8.maven.docker.service.QueryService.getImageId (QueryService.java:135)
2024-06-24T07:23:11.4122158Z     at io.fabric8.maven.docker.service.BuildService.autoPullBaseImage (BuildService.java:385)
2024-06-24T07:23:11.4123590Z     at io.fabric8.maven.docker.service.BuildService.buildImage (BuildService.java:69)
2024-06-24T07:23:11.4124932Z     at io.fabric8.maven.docker.BuildMojo.proceedWithDockerBuild (BuildMojo.java:106)
2024-06-24T07:23:11.4126319Z     at io.fabric8.maven.docker.BuildMojo.proceedWithBuildProcess (BuildMojo.java:89)
2024-06-24T07:23:11.4127707Z     at io.fabric8.maven.docker.BuildMojo.buildAndTag (BuildMojo.java:82)
2024-06-24T07:23:11.4128903Z     at io.fabric8.maven.docker.BuildMojo.processImageConfig (BuildMojo.java:159)
2024-06-24T07:23:11.4130152Z     at io.fabric8.maven.docker.BuildMojo.executeInternal (BuildMojo.java:71)
2024-06-24T07:23:11.4131444Z     at io.fabric8.maven.docker.AbstractDockerMojo.execute (AbstractDockerMojo.java:295)
2024-06-24T07:23:11.4132801Z     at com.gradle.maven.scan.extension.internal.d.a.executeMojo (SourceFile:116)
2024-06-24T07:23:11.4134171Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (MojoExecutor.java:370)
2024-06-24T07:23:11.4136037Z     at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:351)
2024-06-24T07:23:11.4137572Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
2024-06-24T07:23:11.4138968Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:171)
2024-06-24T07:23:11.4140381Z     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:163)
2024-06-24T07:23:11.4142095Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
2024-06-24T07:23:11.4144164Z     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
2024-06-24T07:23:11.4146202Z     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
2024-06-24T07:23:11.4148059Z     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
2024-06-24T07:23:11.4149374Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:299)
2024-06-24T07:23:11.4150441Z     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:193)
2024-06-24T07:23:11.4151477Z     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:106)
2024-06-24T07:23:11.4152461Z     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:963)
2024-06-24T07:23:11.4153391Z     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:296)
2024-06-24T07:23:11.4154303Z     at org.apache.maven.cli.MavenCli.main (MavenCli.java:199)
2024-06-24T07:23:11.4155540Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
2024-06-24T07:23:11.4156906Z     at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:77)
2024-06-24T07:23:11.4158544Z     at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
2024-06-24T07:23:11.4159809Z     at java.lang.reflect.Method.invoke (Method.java:568)
2024-06-24T07:23:11.4160980Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
2024-06-24T07:23:11.4162450Z     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
2024-06-24T07:23:11.4164010Z     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
2024-06-24T07:23:11.4165548Z     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

Info

  • docker-maven-plugin version : 0.44.0
  • Maven version (mvn -v) :3.8.8
  • Docker version :
2024-06-24T07:19:47.6123985Z Client: Docker Engine - Community
2024-06-24T07:19:47.6125152Z  Version:           26.1.3
2024-06-24T07:19:47.6126306Z  API version:       1.45
2024-06-24T07:19:47.6127349Z  Go version:        go1.21.10
2024-06-24T07:19:47.6128131Z  Git commit:        b72abbb
2024-06-24T07:19:47.6128945Z  Built:             Thu May 16 08:33:29 2024
2024-06-24T07:19:47.6129421Z  OS/Arch:           linux/amd64
2024-06-24T07:19:47.6129781Z  Context:           default
2024-06-24T07:19:47.6130152Z 
2024-06-24T07:19:47.6130386Z Server: Docker Engine - Community
2024-06-24T07:19:47.6130784Z  Engine:
2024-06-24T07:19:47.6131173Z   Version:          26.1.3
2024-06-24T07:19:47.6131585Z   API version:      1.45 (minimum version 1.24)
2024-06-24T07:19:47.6132008Z   Go version:       go1.21.10
2024-06-24T07:19:47.6132453Z   Git commit:       8e96db1
2024-06-24T07:19:47.6132848Z   Built:            Thu May 16 08:33:29 2024
2024-06-24T07:19:47.6133275Z   OS/Arch:          linux/amd64
2024-06-24T07:19:47.6133729Z   Experimental:     false
2024-06-24T07:19:47.6134047Z  containerd:
2024-06-24T07:19:47.6134394Z   Version:          1.6.33
2024-06-24T07:19:47.6135035Z   GitCommit:        d2d58213f83a351ca8f528a95fbd145f5654e957
2024-06-24T07:19:47.6135886Z  runc:
2024-06-24T07:19:47.6136251Z   Version:          1.1.12
2024-06-24T07:19:47.6137122Z   GitCommit:        v1.1.12-0-g51d5e94
2024-06-24T07:19:47.6137607Z  docker-init:
2024-06-24T07:19:47.6138020Z   Version:          0.19.0
2024-06-24T07:19:47.6138483Z   GitCommit:        de40ad0
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

1 participant