vmware / build-tools-for-vmware-aria

Build Tools for VMware Aria provides development and release management tools for implementing automation solutions based on the VMware Aria Suite and VMware Cloud Director. The solution enables Virtual Infrastructure Administrators and Automation Developers to use standard DevOps practices for managing and deploying content.
Other
48 stars 24 forks source link

Build error when pushing on vRA 8.x #157

Closed krasimirr closed 8 months ago

krasimirr commented 1 year ago

Description

When pushing vRA 8.x project we get the following error:

[ERROR] Failed to execute goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.34.0:push (default-cli) on project new: Execution default-cli of goal com.vmware.pscoe.maven.plugins:vrealize-package-maven-plugin:2.34.0:push failed: Error executing POST to server: java.lang.ClassCastException : class com.google.gson.JsonNull cannot be cast to class com.google.gson.JsonObject (com.google.gson.JsonNull and com.google.gson.JsonObject are in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @63062eea)

Steps to Reproduce

  1. Create vRA 8.x project
  2. Push the project: mvn clean package vrealize:push -Penv

Expected behavior: To successfully push the project.

Actual behavior: Build Failure Reproduces how often: 100% Component/s: common/artifact-manager

Environment

Client

Server

Failure Logs

image

VenelinBakalov commented 11 months ago

@krasimirr are you still working on this one? Are there any specific steps needed to reproduce this as I am currently pushing successfully vRA 8 projects? @Michaelpalacce do you know if this is related to some specific environment or bug which was already fixed?

VenelinBakalov commented 11 months ago

With the latest release, creating a new project from the following archetype results in a successful push: https://github.com/vmware/build-tools-for-vmware-aria/blob/main/maven/archetypes/vra-ng/create.sh

VenelinBakalov commented 11 months ago

Mixed archetype also seems to push successfully (https://github.com/vmware/build-tools-for-vmware-aria/blob/main/maven/archetypes/ts-vra-ng/create.sh)

VenelinBakalov commented 11 months ago

It seems the issue is no longer present, I am not able to reproduce it on Mac OS with the 2 archetypes above. Closing for now, @krasimirr feel free to re-open if you find it still present.

Michaelpalacce commented 11 months ago

@VenelinBakalov I will reopen this. @krasimirr encountered this error with some specific data, lets wait for more details, he was testing it before the holidays

VenelinBakalov commented 11 months ago

Sure thing, let's see what is happening next week

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

VenelinBakalov commented 10 months ago

@krasimirr reminder to check if this is still valid

github-actions[bot] commented 9 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 8 months ago

This issue was closed because it has been stalled for 7 days with no activity.

VenelinBakalov commented 2 months ago

@krasimirr @Michaelpalacce I see this one was auto closed, do you think it is still valid?