Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
ProGet shows "(500) Server Error: Value cannot be null. (Parameter 'version')" when opening "Dependencies" tab of Maven artifact
-
Hi,
I run a local ProGet installation (5.3.29 (Build 19)) with a Maven feed. When I click on the "Dependencies" button in the artifact's detail view of a deployed Maven artifact in the web UI, I get the following error page if the artifact uses Spring Boot:
In ProGet's logs, the following error message is logged:
An error occurred in the web application: Value cannot be null. (Parameter 'version')
with stack trace:
URL: http://proget.url/feeds/maven-releases/info.dornbach/projectname/1.0.0/dependencies Referrer: https://proget.url/feeds/maven-releases/info.dornbach/projectname/1.0.0 User: dornbach User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.3 Safari/605.1.15 Stack trace: at Inedo.ProGet.Feeds.Maven.MavenVersion.Parse(String version) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E131122\Src\ProGetCoreEx\Feeds\Maven\MavenVersion.cs:line 56 at Inedo.ProGet.Feeds.Maven.CommonMavenPackageInfo.Dependency.get_LinkedPackage() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E131122\Src\ProGetCoreEx\Feeds\Maven\CommonMavenPackageInfo.cs:line 111 at Inedo.ProGet.WebApplication.Pages.Packages.PackageDependenciesPage.AddContentControlsAsync(ContentContainer content) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E131122\Src\ProGet.WebApplication\Pages\Packages\PackageDependenciesPage.cs:line 43 at Inedo.ProGet.WebApplication.Pages.Packages.PackagePageBase.CreateChildControlsAsync() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E131122\Src\ProGet.WebApplication\Pages\Packages\PackagePageBase.cs:line 115 at Inedo.ProGet.WebApplication.Pages.ProGetSimplePageBase.InitializeAsync() in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E131122\Src\ProGet.WebApplication\Pages\ProGetSimplePageBase.cs:line 76 at Inedo.Web.PageFree.SimplePageBase.ExecutePageLifeCycleAsync() at Inedo.Web.PageFree.SimplePageBase.ProcessRequestAsync(HttpContext context) at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context)
I guess that this error may be caused by the (intentionally) missing version element in the project's pom.xml because its dependency versions are managed by the parent pom's dependencyManagement section (e.g. of Spring Boot).
Is there a way that ProGet can cope with "parent-managed" dependency versions in future or, at least, does not throw this error?
-
@jndornbach_8182 said in ProGet shows "(500) Server Error: Value cannot be null. (Parameter 'version')" when opening "Dependencies" tab of Maven artifact:
Is there a way that ProGet can cope with "parent-managed" dependency versions in future or, at least, does not throw this error?
For sure! It does look like this is supported in most places, but not on this page in the UI.
Easy fix... I logged this as PG-1968, and it will ship in the next maintenance release of ProGet, which is scheduled for next Friday. Or I can show you how to download a pre-release if you'd prefer sooner :)
-
@atripp Thank you very much! I upgraded to ProGet version 5.3.32 (Build 11) and the error is gone.