Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56730

Illegal character in opaque part when using JCasC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Jenkins 2.164.1
      Jenkins Configuration as Code 1.8
      openjdk 11.0.2

      When I put jenkins.yaml in my Jenkins_Home (C:\Jenkins), I get an error message upon restarting Jenkins with JCasC installed. Renaming it to jenkins-local.yaml fixes the issue - at least in so far as allowing Jenkins to start up. This is happening on Windows 10 (1709).

      java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Jenkins\jenkins.yaml
      	at java.base/java.net.URI$Parser.fail(URI.java:2915)
      	at java.base/java.net.URI$Parser.checkChars(URI.java:3086)
      	at java.base/java.net.URI$Parser.parse(URI.java:3122)
      	at java.base/java.net.URI.<init>(URI.java:600)
      	at java.base/java.net.URI.create(URI.java:881)
      Caused: java.lang.IllegalArgumentException: Illegal character in opaque part at index 2: C:\Jenkins\jenkins.yaml
      	at java.base/java.net.URI.create(URI.java:883)
      	at io.jenkins.plugins.casc.ConfigurationAsCode.isSupportedURI(ConfigurationAsCode.java:528)
      	at io.jenkins.plugins.casc.ConfigurationAsCode.getStandardConfigSources(ConfigurationAsCode.java:281)
      	at io.jenkins.plugins.casc.ConfigurationAsCode.configure(ConfigurationAsCode.java:274)
      	at io.jenkins.plugins.casc.ConfigurationAsCode.init(ConfigurationAsCode.java:266)
      Caused: java.lang.reflect.InvocationTargetException
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
      Caused: java.lang.Error
      	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
      	at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
      	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1096)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Caused: org.jvnet.hudson.reactor.ReactorException
      	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
      	at jenkins.InitReactorRunner.run(InitReactorRunner.java:48)
      	at jenkins.model.Jenkins.executeReactor(Jenkins.java:1130)
      	at jenkins.model.Jenkins.<init>(Jenkins.java:932)
      	at hudson.model.Hudson.<init>(Hudson.java:85)
      	at hudson.model.Hudson.<init>(Hudson.java:81)
      	at hudson.WebAppMain$3.run(WebAppMain.java:233)
      Caused: hudson.util.HudsonFailedToLoad
      	at hudson.WebAppMain$3.run(WebAppMain.java:250)
      

            ewel Ewelina Wilkosz
            mark_h Mark Hermon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: