hudson.plugins.git.GitException: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null

Jenkins JIRA | Mark Waite | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    I configured a job with the git 2.0 plugin to checkout to a specific subdirectory and to prune stale branches. That pair of configuration settings cause the initial git operations to fail with both git command line and jgit implementations. The stack trace for the command line implementation is: {noformat} Started by user anonymous Building remotely on alan-pc in workspace C:\J\workspace\git-multi-subdir-prune Pruning obsolete local branches FATAL: Command "config --get remote.origin.url" returned status code 1: stdout: stderr: hudson.plugins.git.GitException: Command "config --get remote.origin.url" returned status code 1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:940) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:921) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:865) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:875) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteUrl(CliGitAPIImpl.java:603) at hudson.plugins.git.GitAPI.getRemoteUrl(GitAPI.java:61) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.prune(CliGitAPIImpl.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Unknown Source) {noformat} The stack trace for the jgit implementation is: {noformat} Started by an SCM change Started by user anonymous Building remotely on waite2011 in workspace D:\J\workspace\git-multi-jgit-subdir-prune Pruning obsolete local branches FATAL: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null hudson.plugins.git.GitException: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null at org.jenkinsci.plugins.gitclient.JGitAPIImpl.prune(JGitAPIImpl.java:869) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Unknown Source) Caused by: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null at org.eclipse.jgit.transport.URIish.<init>(URIish.java:205) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.listRemoteBranches(JGitAPIImpl.java:879) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.prune(JGitAPIImpl.java:857) ... 16 more {noformat}

    Jenkins JIRA | 3 years ago | Mark Waite
    hudson.plugins.git.GitException: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null
  2. 0

    I configured a job with the git 2.0 plugin to checkout to a specific subdirectory and to prune stale branches. That pair of configuration settings cause the initial git operations to fail with both git command line and jgit implementations. The stack trace for the command line implementation is: {noformat} Started by user anonymous Building remotely on alan-pc in workspace C:\J\workspace\git-multi-subdir-prune Pruning obsolete local branches FATAL: Command "config --get remote.origin.url" returned status code 1: stdout: stderr: hudson.plugins.git.GitException: Command "config --get remote.origin.url" returned status code 1: stdout: stderr: at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:940) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:921) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:865) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:875) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.getRemoteUrl(CliGitAPIImpl.java:603) at hudson.plugins.git.GitAPI.getRemoteUrl(GitAPI.java:61) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.prune(CliGitAPIImpl.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Unknown Source) {noformat} The stack trace for the jgit implementation is: {noformat} Started by an SCM change Started by user anonymous Building remotely on waite2011 in workspace D:\J\workspace\git-multi-jgit-subdir-prune Pruning obsolete local branches FATAL: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null hudson.plugins.git.GitException: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null at org.jenkinsci.plugins.gitclient.JGitAPIImpl.prune(JGitAPIImpl.java:869) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1$1.run(Engine.java:63) at java.lang.Thread.run(Unknown Source) Caused by: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null at org.eclipse.jgit.transport.URIish.<init>(URIish.java:205) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.listRemoteBranches(JGitAPIImpl.java:879) at org.jenkinsci.plugins.gitclient.JGitAPIImpl.prune(JGitAPIImpl.java:857) ... 16 more {noformat}

    Jenkins JIRA | 3 years ago | Mark Waite
    hudson.plugins.git.GitException: java.net.URISyntaxException: Cannot parse Git URI-ish: The uri was empty or null
  3. 0

    how to solve WARNING: Illegal character in path at index 23

    Stack Overflow | 5 years ago | chemic
    java.net.URISyntaxException: Illegal character in path at index 23: file:/D:/Project/Secret Project/Hobic Project EE/Hobic/dist/gfdeploy/Hobic/Hobic-war_war/WEB-INF/lib/jstl-1.2.jar
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Configurar o RichFaces 4 com GlassFish 3

    Google Groups | 6 years ago | Renan Ribeiro
    java.net.URISyntaxException: Illegal character in path at index 56: >> file:/Users/renanoliveira/NetBeansProjects/trunk/Mercado Livre/build/ >> web/WEB-INF/lib/antlr-2.7.6.jar >> at java.net.URI$Parser.fail(URI.java:2809) >> at java.net.URI$Parser.checkChars(URI.java:2982) >> at java.net.URI$Parser.parseHierarchical(URI.java:3066) >> at java.net.URI$Parser.parse(URI.java:3014) >> at java.net.URI.<init>(URI.java:578) >> at java.net.URL.toURI(URL.java:918) >> at >> >> com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java: >> 268) >> at >> >> com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java: >> 202) >> at >> >> com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java: >> 150) >> at >> >> com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java: >> 604) >> at >> >> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java: >> 368) >> at >> >> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java: >> 240) >> at >> org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java: >> 370) >> at com.sun.enterprise.v3.admin.CommandRunnerImpl >> $1.execute(CommandRunnerImpl.java:355) >> at >> >> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java: >> 370) >> at >> >> com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java: >> 1067) >> at com.sun.enterprise.v3.admin.CommandRunnerImpl.access >> $1200(CommandRunnerImpl.java:96) >> at com.sun.enterprise.v3.admin.CommandRunnerImpl >> $ExecutionContext.execute(CommandRunnerImpl.java:1247) >> at com.sun.enterprise.v3.admin.CommandRunnerImpl >> $ExecutionContext.execute(CommandRunnerImpl.java:1235) >> at >> com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java: >> 465) >> at >> com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java: >> 222) >> at >> com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java: >> 168) >> at >> com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java: >> 117) >> at >> >> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java: >> 234) >> at >> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java: >> 822) >> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java: >> 719) >> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java: >> 1013) >> at >> >> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java: >> 225) >> at >> >> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java: >> 137) >> at >> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java: >> 104) >> at >> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java: >> 90) >> at >> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java: >> 79) >> at >> >> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java: >> 54) >> at >> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java: >> 59) >> at com.sun.grizzly.ContextTask.run(ContextTask.java:71)

    Root Cause Analysis

    1. java.net.URISyntaxException

      Cannot parse Git URI-ish: The uri was empty or null

      at org.eclipse.jgit.transport.URIish.<init>()
    2. JGit - Core
      URIish.<init>
      1. org.eclipse.jgit.transport.URIish.<init>(URIish.java:205)
      1 frame
    3. org.jenkinsci.plugins
      JGitAPIImpl.prune
      1. org.jenkinsci.plugins.gitclient.JGitAPIImpl.listRemoteBranches(JGitAPIImpl.java:879)
      2. org.jenkinsci.plugins.gitclient.JGitAPIImpl.prune(JGitAPIImpl.java:857)
      2 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    5. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299)
      2. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280)
      3. hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239)
      4. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      5. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      6. hudson.remoting.Request$2.run(Request.java:326)
      7. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      7 frames
    6. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.FutureTask.run(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3 frames
    7. Hudson :: Remoting Layer
      Engine$1$1.run
      1. hudson.remoting.Engine$1$1.run(Engine.java:63)
      1 frame
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame