java.lang.IllegalArgumentException

Jenkins JIRA | Evgeni Wachnowezki | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Hello, i´m trying to deploy an artifact to a folder with an generic name depending on the verison (the version numver is set as an environment variable in Jenkins}: ../../dist/artfactname-version.war=>com/bosch/common/${version} but the variable is not expandet so the deployment run into an error: For pattern: ../../dist/artfactname-version.war 1 artifacts were found Deploying artifact: http://localhost:8081/artifactory/plugins-snapshot-local/com/common/${version}/artfactname-version.war ERROR: null java.lang.IllegalArgumentException at java.net.URI.create(URI.java:859) at org.apache.http.client.methods.HttpPut.<init>(HttpPut.java:68) at org.jfrog.build.client.ArtifactoryBuildInfoClient.createHttpPutMethod(ArtifactoryBuildInfoClient.java:559) at org.jfrog.build.client.ArtifactoryBuildInfoClient.tryChecksumDeploy(ArtifactoryBuildInfoClient.java:533) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:501) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:291) at org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:69) at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:225) at hudson.model.Build$BuildExecution.doRun(Build.java:171) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.net.URISyntaxException: Illegal character in path at index 89: http://localhost:8081/artifactory/plugins-snapshot-local/com/common/${version}/artfactname-version.war;build.name=artfactname;build.timestamp=1343909154981;build.number=44;vcs.revision=9036 at java.net.URI$Parser.fail(URI.java:2825) at java.net.URI$Parser.checkChars(URI.java:2998) at java.net.URI$Parser.parseHierarchical(URI.java:3082) at java.net.URI$Parser.parse(URI.java:3030) at java.net.URI.<init>(URI.java:595) at java.net.URI.create(URI.java:857) ... 13 more Finished: FAILURE I think this is big improvement with small effort. I realy dont want to mess with maven/ivy for this projects.

    Jenkins JIRA | 5 years ago | Evgeni Wachnowezki
    java.lang.IllegalArgumentException
  2. 0

    Hello, i´m trying to deploy an artifact to a folder with an generic name depending on the verison (the version numver is set as an environment variable in Jenkins}: ../../dist/artfactname-version.war=>com/bosch/common/${version} but the variable is not expandet so the deployment run into an error: For pattern: ../../dist/artfactname-version.war 1 artifacts were found Deploying artifact: http://localhost:8081/artifactory/plugins-snapshot-local/com/common/${version}/artfactname-version.war ERROR: null java.lang.IllegalArgumentException at java.net.URI.create(URI.java:859) at org.apache.http.client.methods.HttpPut.<init>(HttpPut.java:68) at org.jfrog.build.client.ArtifactoryBuildInfoClient.createHttpPutMethod(ArtifactoryBuildInfoClient.java:559) at org.jfrog.build.client.ArtifactoryBuildInfoClient.tryChecksumDeploy(ArtifactoryBuildInfoClient.java:533) at org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:501) at org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:291) at org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:69) at org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:225) at hudson.model.Build$BuildExecution.doRun(Build.java:171) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1488) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236) Caused by: java.net.URISyntaxException: Illegal character in path at index 89: http://localhost:8081/artifactory/plugins-snapshot-local/com/common/${version}/artfactname-version.war;build.name=artfactname;build.timestamp=1343909154981;build.number=44;vcs.revision=9036 at java.net.URI$Parser.fail(URI.java:2825) at java.net.URI$Parser.checkChars(URI.java:2998) at java.net.URI$Parser.parseHierarchical(URI.java:3082) at java.net.URI$Parser.parse(URI.java:3030) at java.net.URI.<init>(URI.java:595) at java.net.URI.create(URI.java:857) ... 13 more Finished: FAILURE I think this is big improvement with small effort. I realy dont want to mess with maven/ivy for this projects.

    Jenkins JIRA | 5 years ago | Evgeni Wachnowezki
    java.lang.IllegalArgumentException
  3. 0

    Erro no envio do caso de teste para ALM

    GitHub | 4 years ago | estivalet
    br.gov.frameworkdemoiselle.behave.exception.BehaveException: java.lang.IllegalArgumentException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 5#142351589

    GitHub | 2 years ago | Argoday
    java.lang.IllegalArgumentException: Illegal character in path at index 43: http://172.17.42.1:4160/v1/data/.my/he/test file ☘.txt (Illegal character in path at index 43: http://172.17.42.1:4160/v1/data/.my/he/test file ☘.txt)
  6. 0

    URL Exception with HTTPPUT DefaultHttpClient android

    Stack Overflow | 5 months ago | Pragadees
    java.lang.IllegalArgumentException: Illegal character in query at index 92: http://76.174.207.208:7048/DynamicsNAV90/OData/Company%28%27YGD%27%29/e_SignOrder?$filter=No eq '005'
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.URISyntaxException

    Illegal character in path at index 89: http://localhost:8081/artifactory/plugins-snapshot-local/com/common/${version}/artfactname-version.war;build.name=artfactname;build.timestamp=1343909154981;build.number=44;vcs.revision=9036

    at java.net.URI$Parser.fail()
  2. Java RT
    URI.create
    1. java.net.URI$Parser.fail(URI.java:2825)
    2. java.net.URI$Parser.checkChars(URI.java:2998)
    3. java.net.URI$Parser.parseHierarchical(URI.java:3082)
    4. java.net.URI$Parser.parse(URI.java:3030)
    5. java.net.URI.<init>(URI.java:595)
    6. java.net.URI.create(URI.java:857)
    6 frames
  3. Apache HttpClient
    HttpPut.<init>
    1. org.apache.http.client.methods.HttpPut.<init>(HttpPut.java:68)
    1 frame
  4. org.jfrog.build
    ArtifactoryBuildInfoClient.deployArtifact
    1. org.jfrog.build.client.ArtifactoryBuildInfoClient.createHttpPutMethod(ArtifactoryBuildInfoClient.java:559)
    2. org.jfrog.build.client.ArtifactoryBuildInfoClient.tryChecksumDeploy(ArtifactoryBuildInfoClient.java:533)
    3. org.jfrog.build.client.ArtifactoryBuildInfoClient.uploadFile(ArtifactoryBuildInfoClient.java:501)
    4. org.jfrog.build.client.ArtifactoryBuildInfoClient.deployArtifact(ArtifactoryBuildInfoClient.java:291)
    4 frames
  5. org.jfrog.hudson
    ArtifactoryGenericConfigurator$1.tearDown
    1. org.jfrog.hudson.generic.GenericArtifactsDeployer.deploy(GenericArtifactsDeployer.java:69)
    2. org.jfrog.hudson.generic.ArtifactoryGenericConfigurator$1.tearDown(ArtifactoryGenericConfigurator.java:225)
    2 frames
  6. Hudson
    Executor.run
    1. hudson.model.Build$BuildExecution.doRun(Build.java:171)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
    3. hudson.model.Run.execute(Run.java:1488)
    4. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
    5. hudson.model.ResourceController.execute(ResourceController.java:88)
    6. hudson.model.Executor.run(Executor.java:236)
    6 frames