Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

2.0.0.1M2 Build Engine VersionMismatchException

Hey folks, we've just upgrade to RTC 2.0.0.1M2 (skipping 2.0.0 due to errors importing some of our processes caused by this Jazz Foundation bug). We believe that our repository is successfully migrated and our clients and server seem to be working fine. However, I've just upgraded the build engine to the 2.0.0.1M2 build system available for download and we're getting an error when trying to run one of our builds (posted below).

As far as I can tell, it blows up on it looks like the version id in the 2.0.0.1M2 Build System download is set incorrectly (somewhere it's getting 1.0.0.1 M3, but we were previously using server 1.0.1.1 so I don't know where its coming from), but I'm afraid that this might be configured somewhere else and I'm missing it. We've got the 2.0.0.1M2 server, client, and build system up and running - am I missing a step somewhere to upgrade our build engine, build definitions, and build scripts?


The offending Ant code:


<target name="fetch-master-scripts" if="team.scm.fetchDestination">
<delete dir="${masterWorkspace}" />
<mkdir dir="${masterWorkspace} " />

<teamAccept repositoryAddress="${repositoryAddress}" buildResultUUID="${buildResultUUID}" userId="${jazz.user}" password="${jazz.password}" workspaceUUID="${masterStreamUUID}" verbose="true" />
<teamFetch repositoryAddress="${repositoryAddress}" userId="${jazz.user}" password="${jazz.password}" workspaceUUID="${masterStreamUUID}" destination="${masterWorkspace}" verbose="true" />
</target>

<taskdef name="teamAccept" classname="com.ibm.team.build.ant.task.TeamAcceptTask" onerror="ignore">
</taskdef>

<taskdef name="teamFetch" classname="com.ibm.team.build.ant.task.TeamFetchTask" onerror="ignore">
</taskdef>


The error:

The buildResultUUID attribute is set, but will not be used if snapshotName is not set.
Not using a proxy to reach https://jazzrepo:9443/jazz/
com.ibm.team.repository.common.transport.VersionMismatchException: CRJAZ1176I There is a version mismatch for the "com.ibm.team.repository.common.internal.IRepositoryRemoteService" service. The server version is "7" while the client version is "6". Both client and server version must match. Check the overall version of the client using Help->About and ensure it is compatible with server version "1.0.0.1 M3" and build id "I20090814-1409".
at com.ibm.team.repository.transport.client.ClientHttpUtil.throwHttpClientError(ClientHttpUtil.java:333)
at com.ibm.team.repository.transport.client.ClientHttpUtil.executeHttpMethod(ClientHttpUtil.java:299)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeCancelableHttpMethod(RemoteTeamService.java:514)
at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:504)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:449)
at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:184)
at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43)
at $Proxy0.describe(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:149)
at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:84)
at $Proxy0.describe(Unknown Source)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1342)
at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1)
at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1129)
at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:76)
at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1122)
at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1335)
at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:536)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.getTeamRepository(AbstractTeamBuildTask.java:231)
at com.ibm.team.build.ant.task.TeamAcceptTask.doExecute(TeamAcceptTask.java:141)
at com.ibm.team.build.ant.task.AbstractTeamBuildTask.execute(AbstractTeamBuildTask.java:433)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: com.ibm.team.repository.common.transport.TeamServiceException: CRJAZ0098I The com.ibm.team.repository.common.internal.IRepositoryRemoteService{/jazz/service/com.ibm.team.repository.common.internal.IRepositoryRemoteService} service failed. The server returned the http error 400 (Bad Request). Examine any further details here or look in the server log files for more information on how to resolve the issue.
at com.ibm.team.repository.transport.client.ClientHttpUtil.throwHttpClientError(ClientHttpUtil.java:326)
... 41 more
Caused by: com.ibm.team.repository.common.transport.VersionMismatchException: CRJAZ1176I There is a version mismatch for the "com.ibm.team.repository.common.internal.IRepositoryRemoteService" service. The server version is "7" while the client version is "6". Both client and server version must match. Check the overall version of the client using Help->About and ensure it is compatible with server version "1.0.0.1 M3" and build id "I20090814-1409".
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doCompareClientServerVersions(AbstractTeamServerServlet.java:1523)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.compareClientServerVersions(AbstractTeamServerServlet.java:1503)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1404)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180)
at org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111)
at org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:121)
at com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:54)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:810)
at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(MarshallerUtil.java:326)
at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeExceptions(MarshallerUtil.java:296)
at com.ibm.team.repository.common.internal.marshal.util.MarshallerUtil.decodeFault(MarshallerUtil.java:261)
at com.ibm.team.repository.transport.client.ClientHttpUtil.constructExceptionFromFault(ClientHttpUtil.java:460)
at com.ibm.team.repository.transport.client.ClientHttpUtil.appendNestedException(ClientHttpUtil.java:439)
at com.ibm.team.repository.transport.client.ClientHttpUtil.throwHttpClientError(ClientHttpUtil.java:329)
... 41 more

BUILD FAILED
C:\jazz_builds\Reasoning_System\Reasoning System Build Scripts\build.xml:25: com.ibm.team.repository.common.transport.VersionMismatchException: CRJAZ1176I There is a version mismatch for the "com.ibm.team.repository.common.internal.IRepositoryRemoteService" service. The server version is "7" while the client version is "6". Both client and server version must match. Check the overall version of the client using Help->About and ensure it is compatible with server version "1.0.0.1 M3" and build id "I20090814-1409".


Thanks!

0 votes



One answer

Permanent link
The problem was that the Ant page of the build definition was referring to the 1.0 version of the build toolkit.
For more details, see 93448: VersionMismatchException running teamAccept task after upgrading to 2.0.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Aug 27 '09, 12:16 p.m.

Question was seen: 5,019 times

Last updated: Aug 27 '09, 12:16 p.m.

Confirmation Cancel Confirm