Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    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

    Scheduled Pinned Locked Moved Support
    3 Posts 2 Posters 16 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jndornbach_8182
      last edited by

      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:

      Bildschirmfoto 2021-05-29 um 13.07.02.png

      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?

      atrippA 1 Reply Last reply Reply Quote 0
      • atrippA Offline
        atripp inedo-engineer @jndornbach_8182
        last edited by

        @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 :)

        1 Reply Last reply Reply Quote 0
        • J Offline
          jndornbach_8182
          last edited by

          @atripp Thank you very much! I upgraded to ProGet version 5.3.32 (Build 11) and the error is gone.

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • 1 / 1
          • First post
            Last post
          Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation