Protocol not Supported for Vault pluggin

Hi,

I am trying to get the latest version of TeamCity to work with the Vault plugin. Unfortunately, when I try to add a repository and test the connection I am gettting the following error message (logging enabled using the documentation)

2009-12-11 13:49:32,516]   WARN [on=editVcsRoot ] -      jetbrains.buildServer.VCS - Error occurred in test connection
jetbrains.buildServer.vcs.VcsException: Exception occured while trying to connect to Vault server. See original message below:
The server uses a protocol that is not supported by this client.
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connect(VaultConnection.java:63)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.testConnection(VaultConnection.java:104)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultVcsSupport.testConnection(VaultVcsSupport.java:230)
 at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(EditVcsRootsController.java:105)
 at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(BaseFormXmlController.java:38)
 at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:29)
 at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(BaseFormXmlController.java:36)
 at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:61)
 at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
 at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:25)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.SetThreadNameFilter.runChainWithModifiedThreadName(SetThreadNameFilter.java:20)
 at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:10)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:7)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
 at java.lang.Thread.run(Thread.java:595)
Caused by: System.Exception: The server uses a protocol that is not supported by this client. ---> System.Web.Services.Protocols.SoapException: 1021 : FailServiceVersionNotSupported
 at system.Web.Services.Protocols.SoapHttpClientProtocol.__CreateClass__0x0000000a(SoapHttpClientProtocol.cs)
 at system.Web.Services.Protocols.SoapHttpClientProtocol.ReceiveResponse(SoapHttpClientProtocol.cs:295)
 at system.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(SoapHttpClientProtocol.cs:346)
 at VaultClientNetLib.ClientService.VaultService.ValidateServiceVersions(Unknown Source)
 at VaultClientNetLib.VaultConnection.Login(Unknown Source)
 at VaultClientOperationsLib.ClientInstance.Login(Unknown Source)
 at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:3396)
 at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:3526)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connectNotForce(VaultConnection.java:74)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connect(VaultConnection.java:56)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.testConnection(VaultConnection.java:104)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultVcsSupport.testConnection(VaultVcsSupport.java:230)
 at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(EditVcsRootsController.java:105)
 at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(BaseFormXmlController.java:38)
 at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:29)
 at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(BaseFormXmlController.java:36)
 at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:61)
 at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
 at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:25)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.SetThreadNameFilter.runChainWithModifiedThreadName(SetThreadNameFilter.java:20)
 at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:10)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:7)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
 at java.lang.Thread.run(Thread.java:595)

 at system.Web.Services.Protocols.SoapHttpClientProtocol.__CreateClass__0x0000000a(SoapHttpClientProtocol.cs)
 at system.Web.Services.Protocols.SoapHttpClientProtocol.ReceiveResponse(SoapHttpClientProtocol.cs:295)
 at system.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(SoapHttpClientProtocol.cs:346)
 at VaultClientNetLib.ClientService.VaultService.ValidateServiceVersions(Unknown Source)
 at VaultClientNetLib.VaultConnection.Login(Unknown Source)
 at VaultClientOperationsLib.ClientInstance.Login(Unknown Source)
 at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:3396)
 at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:3526)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connectNotForce(VaultConnection.java:74)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connect(VaultConnection.java:56)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.testConnection(VaultConnection.java:104)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultVcsSupport.testConnection(VaultVcsSupport.java:230)
 at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(EditVcsRootsController.java:105)
 at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(BaseFormXmlController.java:38)
 at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:29)
 at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(BaseFormXmlController.java:36)
 at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:61)
 at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
 at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:25)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.SetThreadNameFilter.runChainWithModifiedThreadName(SetThreadNameFilter.java:20)
 at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:10)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:7)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
 at java.lang.Thread.run(Thread.java:595)
   --- End of inner exception stack trace ---
 at clr.System.ExceptionStaticWrapper.ExceptionCtor(Unknown Source)
 at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:3407)
 at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:3526)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connectNotForce(VaultConnection.java:74)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connect(VaultConnection.java:56)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.testConnection(VaultConnection.java:104)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultVcsSupport.testConnection(VaultVcsSupport.java:230)
 at jetbrains.buildServer.controllers.admin.projects.EditVcsRootsController.doPost(EditVcsRootsController.java:105)
 at jetbrains.buildServer.controllers.BaseFormXmlController$1.handleRequest(BaseFormXmlController.java:38)
 at jetbrains.buildServer.controllers.AjaxRequestProcessor.processRequest(AjaxRequestProcessor.java:29)
 at jetbrains.buildServer.controllers.BaseFormXmlController.doHandle(BaseFormXmlController.java:36)
 at jetbrains.buildServer.controllers.BaseController.handleRequestInternal(BaseController.java:61)
 at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
 at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
 at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:875)
 at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807)
 at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571)
 at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:511)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at jetbrains.buildServer.rootDispatcher.TeamCityDispatcherServlet.service(TeamCityDispatcherServlet.java:25)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.SetThreadNameFilter.runChainWithModifiedThreadName(SetThreadNameFilter.java:20)
 at jetbrains.buildServer.web.SetThreadNameFilter.doFilter(SetThreadNameFilter.java:10)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at jetbrains.buildServer.web.ResponseFragmentFilter.doFilter(ResponseFragmentFilter.java:7)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
 at java.lang.Thread.run(Thread.java:595)

 at clr.System.ExceptionStaticWrapper.ExceptionCtor(Unknown Source)
 at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:3407)
 at VaultClientIntegrationLib.ServerOperations.Login(ServerOperations.cs:3526)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connectNotForce(VaultConnection.java:74)
 at jetbrains.buildServer.buildTriggers.vcs.vault.VaultConnection.connect(VaultConnection.java:56)
 ... 35 more



The URL that I'm using is the same one that the vault client is using to connect to the server. TeamCity is running on a Windows 2003 R2 server. The SourceGear Vault server is installed on a separate machine and the Vauld client is not installed on the local server where TeamCity is running.

Could you please let me know if there is a way to troubleshoot this and get it to work against our Source Control software?

Kind Regards,
Christos Matskas
1 comment
Comment actions Permalink

Hello Christos,

Are you sure that Vault Java API jars (the ones that you've put to <TeamCity web application>/WEB-INF/lib folder) are of the same version as your Vault server?
For example, if the server version is 5.0.2, it's essential to use Vault Java API version 5.0.2 (obtained from Java Command Line Client 5.0.2).
Seems in your case the versions differ.

0

Please sign in to leave a comment.