It's all about the answers!

Ask a question

Source change history era must not have active change sets


William Robinson (3165) | asked Feb 01 '09, 8:38 p.m.
I checked-in/delivered code; however, the jbe does not check out the code. It fails within 4 seconds with the following error.

I can unload/load the project without problems. As far as I can tell there nothing outstanding associated with the project. I have rebuilt the meta-data on my client. Nothing seems to change the error message. (Also, other projects build fine on the jbe.)



2009-02-01 20:36:59 Should build occur?
2009-02-01 20:36:59 Yes: Always build a user initiated request.
2009-02-01 20:37:04 Invoking pre-build participant "com.ibm.team.build.jazzscm"
Accepting changes into workspace "Main" ...
com.ibm.team.repository.common.TeamRepositoryException: Source change history era must not have active change sets
at com.ibm.team.scm.service.internal.utils.ChangeHistoryUtils.createParallelEra(ChangeHistoryUtils.java:355)
at com.ibm.team.scm.service.internal.utils.ChangeHistoryUtils.createParallelEra(ChangeHistoryUtils.java:285)
at com.ibm.team.scm.service.internal.ScmServiceInternal.updateComponents(ScmServiceInternal.java:4283)
at com.ibm.team.scm.service.internal.ScmService$81.run(ScmService.java:3228)
at com.ibm.team.scm.service.internal.AbstractScmService$2.run(AbstractScmService.java:346)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase$Transaction.run(RepositoryDatabase.java:455)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase.runTransaction(RepositoryDatabase.java:286)
at com.ibm.team.repository.service.internal.rdb.RepositoryDatabase.runInTransaction(RepositoryDatabase.java:241)
at com.ibm.team.repository.service.internal.TransactionService.runInTransaction(TransactionService.java:74)
at sun.reflect.GeneratedMethodAccessor93.invoke(null)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:375)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:55)
at $Proxy34.runInTransaction(null)
at com.ibm.team.scm.service.internal.AbstractScmService.runInTransaction(AbstractScmService.java:282)
at com.ibm.team.scm.service.internal.AbstractScmService.runInTransaction(AbstractScmService.java:340)
at com.ibm.team.scm.service.internal.AbstractScmService.runInTransaction(AbstractScmService.java:319)
at com.ibm.team.scm.service.internal.ScmService.updateComponents(ScmService.java:3224)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:375)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:361)
at org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:55)
at $Proxy182.updateComponents(null)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleMethod(AbstractTeamServerServlet.java:1133)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.executeMethod(AbstractTeamServerServlet.java:883)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.doPost(AbstractTeamServerServlet.java:685)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1436)
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:115)
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.RemoteTeamService.constructExceptionFromFault(RemoteTeamService.java:560)
at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:461)
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 $Proxy16.updateComponents(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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 $Proxy16.updateComponents(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy$2.run(ScmServiceInterfaceProxy.java:163)
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.scm.client.internal.ScmClientLibraryContext.callCancelableService(ScmClientLibraryContext.java:69)
at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy.invokeCancelableService(ScmServiceInterfaceProxy.java:160)
at com.ibm.team.scm.client.internal.ScmServiceInterfaceProxy.invoke(ScmServiceInterfaceProxy.java:90)
at $Proxy16.updateComponents(Unknown Source)
at com.ibm.team.scm.client.internal.FlowNodeConnection.replaceComponents(FlowNodeConnection.java:675)
at com.ibm.team.scm.client.internal.FlowNodeConnection.replaceComponents(FlowNodeConnection.java:600)
at com.ibm.team.build.internal.scm.SourceControlUtility.acceptAllFromComponents(SourceControlUtility.java:801)
at com.ibm.team.build.internal.scm.SourceControlUtility.acceptAllIncoming(SourceControlUtility.java:618)
at com.ibm.team.build.internal.scm.SourceControlUtility.acceptAllIncoming(SourceControlUtility.java:496)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.performAccept(JazzScmPreBuildParticipant.java:219)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:126)
at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:574)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:430)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.UnsupportedOperationException: Source change history era must not have active change sets
... 97 more

4 answers



permanent link
Jean-Michel Lemieux (2.5k11) | answered Feb 02 '09, 6:37 a.m.
JAZZ DEVELOPER
It looks like the build workspace has active change sets in it's history. The build workspace should be reserved for builds only, which means that it should not be directly used for day to day development work. To fix this, simply load the workspace being used for the build (eg, open the build definition and on the Jazz Source Control tab you'll get a link to the workspace) and close/discard all the change sets. Then start the build again.
Cheers,
Jean-Michel

permanent link
William Robinson (3165) | answered Feb 02 '09, 12:59 p.m.
No one uses the builders ID for developmentit only exists to run the build process.

On the team server computer, which is running the jde, I went to the jbe directory and deleted the contents of the workspace directory. I also deleted the jbes copy of the source code and restarted it. That seems to have solved it.

I can only guess that the jbe Eclipse workspace got into some strange state. I dont see how I can start the jbe Eclipse and run some kind of cleanup because it appears to be command-line only.

permanent link
Jean-Michel Lemieux (2.5k11) | answered Feb 02 '09, 7:20 p.m.
JAZZ DEVELOPER
Very strange indeed. If you ever figure out how the change sets got created in the Build users workspace, please let us know.
Cheers,
Jean-Michel

permanent link
Anuerin Diaz (4112517) | answered Feb 02 '09, 8:19 p.m.
On the team server computer, which is running the jde, I went to the jbe directory and deleted the contents of the workspace directory. I also deleted the jbes copy of the source code and restarted it. That seems to have solved it.


does the jbe workspace directory and the Build definitions load directory mean the same? for us it gets deleted when our build definition has the "delete directory before loading" enabled.

ciao!

Your answer


Register or 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.