2017-02-23 202 views
0

我得到这个错误:AOP配置似乎无效

"AOP configuration seems to be invalid: tried calling method [public abstract com.atlassian.bitbucket.scm.git.command.GitCommandBuilderFactory com.atlassian.bitbucket.scm.git.GitScm.getCommandBuilderFactory()] on target [[email protected]]; nested exception is java.lang.IllegalArgumentException: object is not an instance of declaring class"

从理论上说,可能是什么问题呢?我的代码编译得很好,这是一个运行时异常。

感谢。

回答

0

修复了这个问题。这是由于不兼容的依赖关系。

我不得不在pom.xml中添加与我的bitbucket版本相同的版本号,并且它工作正常。

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