在Windows中配置Artifactory Jenkins错误

时间:2017-05-10 14:41:54

标签: artifactory

在Windows上我安装了 Artifactory 4.11.0和jenkins 1.643 。 两者都单独运行。我还安装了 artifactory插件2.10.4 并尝试通过提供默认凭据进行配置,并且在使用测试连接时检查它是否会引发以下错误。

我该怎么办?我是否必须在Artifactory中配置一些特殊的东西?

请参阅以下错误

Stack trace
 javax.servlet.ServletException: java.lang.LinkageError: loader constraint violation: when resolving method 
        "org.apache.http.impl.client.HttpClientBuilder.setDefaultCredentialsProvider
        (Lorg/apache/http/client/CredentialsProvider;)Lorg/apache/http/impl/client/HttpClientBuilder;" 
        the class loader (instance of hudson/ClassicPluginStrategy$AntClassLoader2) of the current class,
        org/jfrog/build/client/PreemptiveHttpClient, and the class loader 
       (instance of hudson/ClassicPluginStrategy$AntClassLoader2) for resolved class,
        org/apache/http/impl/client/HttpClientBuilder, have different Class objects for the type 
        he.http.impl.client.HttpClientBuilder.setDefaultCredentialsProvider
        (Lorg/apache/http/client/CredentialsProvider;)Lorg/apache/http/impl/client/HttpClientBuilder;
        used in the signature
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)


at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)

at java.lang.reflect.Method.invoke(Unknown Source)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746)
... 59 more

0 个答案:

没有答案