Purpose (problem description)

This page will help you to solve the incident when you may get an error message 'java.lang.IllegalArgumentException:URI has an authority component' while packaging the Nuget Repository. 

The error is seen in the package extraction log as shown below:

2021-06-21 10:47:23.340 ERROR cast.commandLine.exceptionDuringProcess An error has occurred during command processing
java.lang.IllegalArgumentException:URI has an authority component
at java.io.File.<init>(File.java:423)
at com.castsoftware.dmt.extractor.dotnet.nuget.utility.NugetFilesCheck.getMDAFileClassPath(NugetFilesCheck.java:43)
at com.castsoftware.dmt.extractor.dotnet.nuget.utility.NugetFilesCheck.getNugetFolder(NugetFilesCheck.java:21)
at com.castsoftware.dmt.extractor.dotnet.nuget.NugetExtractor.connect(NugetExtractor.java:114)
at com.castsoftware.dmt.engine.extraction.ExtractionEngine.execute(ExtractionEngine.java:602)
at com.castsoftware.dmt.engine.extraction.ExtractionEngine.extract(ExtractionEngine.java:658)
at com.castsoftware.dmt.engine.extraction.cli.Extract.processDMTCommand(Extract.java:81)
at com.castsoftware.dmt.engine.cli.AbstractDeliveryEngineCommandLine.process(AbstractDeliveryEngineCommandLine.java:290)
at com.castsoftware.cli.CommandLineApplication$4.call(CommandLineApplication.java:1324)
at com.castsoftware.cli.CommandLineApplication$4.call(CommandLineApplication.java:1305)
at com.castsoftware.util.logger.Logging.execute(Logging.java:527)
at com.castsoftware.util.logger.Logging.runInNewContext(Logging.java:386)
at com.castsoftware.cli.CommandLineApplication.parseAndRun(CommandLineApplication.java:1383)
at com.castsoftware.cli.CommandLineApplication.access$100(CommandLineApplication.java:37)
at com.castsoftware.cli.CommandLineApplication$2.call(CommandLineApplication.java:1183)
at com.castsoftware.cli.CommandLineApplication$2.call(CommandLineApplication.java:1176)
at com.castsoftware.util.logger.Logging.execute(Logging.java:527)
at com.castsoftware.util.logger.Logging.runInNewContext(Logging.java:386)
at com.castsoftware.cli.CommandLineApplication.launch(CommandLineApplication.java:1175)
at com.castsoftware.cli.CommandLineApplication$1.call(CommandLineApplication.java:1107)
at com.castsoftware.cli.CommandLineApplication$1.call(CommandLineApplication.java:1100)
at com.castsoftware.util.logger.Logging.execute(Logging.java:527)
at com.castsoftware.util.logger.Logging.runInNewContext(Logging.java:415)
at com.castsoftware.cli.CommandLineApplication.run(CommandLineApplication.java:1099)
at com.castsoftware.dmt.engine.extraction.cli.Extract.main(Extract.java:160)

For assistance with finding logs, please see the page:  CAST Management Studio - Information - How to find logs

For assistance with the Nuget Resource Repository extension, please see the page:  NuGet Resources Extractor - 1.1

Observed in CAST AIP


Release
Yes/No
8.3.x (tick)
Observed on RDBMS
RDBMS
Yes/No
Oracle Server (tick)
Microsoft SQL Server (tick)
CSS2 (tick)
Step by Step scenario
  1. Use DMT to package a Nuget repository.
  2. You may get the error in Extraction log during packaging
Description and Solution

The issue occurs when the delivery folder is located on a network path. The extractor tries to get the nuget folder path present inside the plugin but in the code it tries to convert the folder URL to URI and since it is a network path, it fails.

The issue is permanently fixed in the Nuget Extractor versions > 1.1.0 beta2 available for download here - https://extend.castsoftware.com/#/extension?id=com.castsoftware.dmtdotnetnugetresourcesextractor&version=1.1.0-beta4

  1. If the above steps do not solve your issue contact CAST Technical Support. with the following Relevant input

 

Relevant input


Notes/comments

Ticket #30387

Related Pages