"java.lang.RuntimeException: Invalid remote: origin" when cloning a repository via Business Central in BRMS/BPM Suite

Solution In Progress - Updated -

Issue

  • When I clone a repository via [Authoring]->[Administration]->[Repositories]->[Clone repository] in Business Central, I get an error popup:
Can't clone repository. java.lang.RuntimeException: java.lang.RuntimeException: Invalid remote: origin

server.log has the error like this:

11:58:50,134 ERROR [org.guvnor.structure.backend.repositories.RepositoryServiceImpl] (http-127.0.0.1:8080-5) Error during create repository: java.lang.RuntimeException: java.lang.RuntimeException: Invalid remote: origin
    at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:283) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:197) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.createRepository(RepositoryServiceImpl$Proxy$_$$_WeldClientProxy.java) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    ...
Caused by: java.lang.RuntimeException: Invalid remote: origin
    at org.guvnor.structure.backend.repositories.git.GitRepositoryBuilder.createFileSystem(GitRepositoryBuilder.java:139) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.git.GitRepositoryBuilder.build(GitRepositoryBuilder.java:61) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.git.GitRepositoryFactoryHelper.newRepository(GitRepositoryFactoryHelper.java:64) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.git.GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.newRepository(GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.java) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.RepositoryFactoryImpl.newRepository(RepositoryFactoryImpl.java:61) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.RepositoryFactoryImpl$Proxy$_$$_WeldClientProxy.newRepository(RepositoryFactoryImpl$Proxy$_$$_WeldClientProxy.java) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:96) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    at org.guvnor.structure.backend.repositories.RepositoryServiceImpl.createRepository(RepositoryServiceImpl.java:279) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    ... 40 more
Caused by: java.lang.RuntimeException: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
    at org.uberfire.java.nio.fs.jgit.util.JGitUtil.cloneRepository(JGitUtil.java:289) [uberfire-nio2-jgit-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]
    at org.uberfire.java.nio.fs.jgit.JGitFileSystemProvider.newFileSystem(JGitFileSystemProvider.java:713) [uberfire-nio2-jgit-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]
    at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:117) [uberfire-nio2-api-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]
    at org.uberfire.java.nio.file.FileSystems.newFileSystem(FileSystems.java:83) [uberfire-nio2-api-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]
    at org.uberfire.io.impl.AbstractIOService.newFileSystem(AbstractIOService.java:244) [uberfire-io-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]
    at org.uberfire.ext.metadata.io.IOServiceIndexedImpl.newFileSystem(IOServiceIndexedImpl.java:198) [uberfire-metadata-commons-io-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]
    at org.guvnor.structure.backend.repositories.git.GitRepositoryBuilder.createFileSystem(GitRepositoryBuilder.java:130) [guvnor-structure-backend-6.5.0.Final-redhat-2.jar:6.5.0.Final-redhat-2]
    ... 47 more
Caused by: org.eclipse.jgit.api.errors.InvalidRemoteException: Invalid remote: origin
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:131) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:202) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:135) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.uberfire.java.nio.fs.jgit.util.JGitUtil.cloneRepository(JGitUtil.java:274) [uberfire-nio2-jgit-0.9.0.Final-redhat-3.jar:0.9.0.Final-redhat-3]
    ... 53 more
Caused by: org.eclipse.jgit.errors.NoRemoteRepositoryException: file:///home/user1/parent1/parent2/repository1: not found.
    at org.eclipse.jgit.transport.TransportLocal$1.open(TransportLocal.java:131) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.eclipse.jgit.transport.TransportBundleFile$1.open(TransportBundleFile.java:106) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.eclipse.jgit.transport.Transport.open(Transport.java:565) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.eclipse.jgit.transport.Transport.open(Transport.java:442) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.eclipse.jgit.transport.Transport.open(Transport.java:323) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.eclipse.jgit.transport.Transport.open(Transport.java:292) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:119) [org.eclipse.jgit-4.4.1.201607150455-r.jar:4.4.1.201607150455-r]
    ... 56 more

Environment

  • Red Hat JBoss BRMS
    • 6.4.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In