Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

bitbucket.git.notfound[Bitbucket, 2.11.0, 2.12.2]

lamella July 2, 2024

When I tried to upgrade the dependency on Bitbucket in my Bitbucket plugin from 5.16.0 to 7.21.23, I encountered this issue (ps: Due to Bitbucket 8. x no longer supporting Windows, I chose version 7.21.23)

[INFO] 2024-07-03 11:07:41,124 INFO  [spring-startup]  c.a.s.i.h.s.WindowsHookScriptCommandLineFactory Found GNU bash at D:\program\dev\Git\bin\bash.exe
[INFO] 2024-07-03 11:07:48,762 WARN [spring-startup] c.a.s.i.s.g.b.DefaultGitBinaryHelper D:\program\dev\Git\cmd\git.exe will be ignored because it is world-writable and could be exploited.
[INFO] 2024-07-03 11:07:51,251 ERROR [spring-startup] c.a.j.s.w.s.JohnsonDispatcherServlet SpringMVC dispatcher [springMvc] could not be started
[INFO] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'localGitPullRequestCommandFactory' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Unsatisfied dependency expressed through method 'gitPullRequestCommandFactory' parameter 7; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'localPullRequestRefHelper' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Unsatisfied dependency expressed through method 'pullRequestRefHelper' parameter 7; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gitPullRequestPorcelain' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.scm.git.pull.GitPullRequestPorcelain]: Factory method 'gitPullRequestPorcelain' threw exception; nested exception is com.atlassian.bitbucket.scm.git.GitNotFoundException: bitbucket.git.notfound[Bitbucket, 2.11.0, 2.12.2]
[INFO] at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800)
[INFO] at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:921)
[INFO] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583)
[INFO] at javax.servlet.GenericServlet.init(GenericServlet.java:143)
[INFO] at java.lang.Thread.run(Thread.java:748)
[INFO] ... 18 frames trimmed
[INFO] Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'localPullRequestRefHelper' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Unsatisfied dependency expressed through method 'pullRequestRefHelper' parameter 7; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gitPullRequestPorcelain' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.scm.git.pull.GitPullRequestPorcelain]: Factory method 'gitPullRequestPorcelain' threw exception; nested exception is com.atlassian.bitbucket.scm.git.GitNotFoundException: bitbucket.git.notfound[Bitbucket, 2.11.0, 2.12.2]
[INFO] ... 6 common frames omitted
[INFO] Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gitPullRequestPorcelain' defined in com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.scm.git.pull.GitPullRequestPorcelain]: Factory method 'gitPullRequestPorcelain' threw exception; nested exception is com.atlassian.bitbucket.scm.git.GitNotFoundException: bitbucket.git.notfound[Bitbucket, 2.11.0, 2.12.2]
[INFO] at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658)
[INFO] ... 5 common frames omitted
[INFO] Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.scm.git.pull.GitPullRequestPorcelain]: Factory method 'gitPullRequestPorcelain' threw exception; nested exception is com.atlassian.bitbucket.scm.git.GitNotFoundException: bitbucket.git.notfound[Bitbucket, 2.11.0, 2.12.2]
[INFO] at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)
[INFO] ... 5 common frames omitted
[INFO] Caused by: com.atlassian.bitbucket.scm.git.GitNotFoundException: bitbucket.git.notfound[Bitbucket, 2.11.0, 2.12.2]
[INFO] at com.atlassian.stash.internal.scm.git.DefaultGitScmConfig.lambda$resolveException$1(DefaultGitScmConfig.java:657)
[INFO] at io.atlassian.fugue.Either$LeftProjection.map(Either.java:770)
[INFO] at com.atlassian.stash.internal.scm.git.DefaultGitScmConfig.resolveException(DefaultGitScmConfig.java:652)
[INFO] at com.atlassian.stash.internal.scm.git.DefaultGitScmConfig.getVersion(DefaultGitScmConfig.java:544)
[INFO] at com.atlassian.stash.internal.scm.git.pull.ShinyGitPullRequestPorcelain.<init>(ShinyGitPullRequestPorcelain.java:54)
[INFO] at com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring.gitPullRequestPorcelain(GitWiring.java:746)
[INFO] at com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring$$EnhancerBySpringCGLIB$$c4270519.CGLIB$gitPullRequestPorcelain$29(<generated>)
[INFO] at com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring$$EnhancerBySpringCGLIB$$c4270519$$FastClassBySpringCGLIB$$67d7a4b7.invoke(<generated>)
[INFO] at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)
[INFO] at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331)
[INFO] at com.atlassian.stash.internal.scm.git.GitWiring$LocalWiring$$EnhancerBySpringCGLIB$$c4270519.gitPullRequestPorcelain(<generated>)
[INFO] ... 5 common frames omitted

I am certain that my git installation is working properly and that the environment variables have been configured properly

image.png

 

Is there any relationship between the amps version I am currently using, which is 8.1.2 and JDK8? Here is my startup command:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Applications\Atlassian\atlassian-plugin-sdk-8.2.7\bin\atlas-debug.bat --product "bitbucket" > ../log/bitbucket.txt

I have introduced the following three dependencies related to Bitbucket:

<dependency>
<groupId>com.atlassian.bitbucket.server</groupId>
<artifactId>bitbucket-web-common</artifactId>
<scope>provided</scope>
<version>${bitbucket.version}</version>
</dependency>
<dependency>
<groupId>com.atlassian.bitbucket.server</groupId>
<artifactId>bitbucket-api</artifactId>
<scope>provided</scope>
<version>${bitbucket.version}</version>
</dependency>
<dependency>
<groupId>com.atlassian.bitbucket.server</groupId>
<artifactId>bitbucket-spi</artifactId>
<scope>provided</scope>
<version>${bitbucket.version}</version>
</dependency>

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events