java.io.IOException: cleartool: Error: Operation "get cleartext" failed on Uncataloged Elements?

Good afternoon,

one of my colleagues uncatalogued several elements in our clearcase repository and ever since that, TeamCity is failing to create new builds with the following error:

Build errors

[13:06:52]: Patch is broken, can be found in file: D:\TeamCity\BuildAgents\2\temp\cache\temp39418patch_155
[13:06:52]: Failed to build patch for build 29 {build id=155}, VCS root: clearcase: V:\medct5i_fors37ba_irma_integration_dynamic\PM_CT\DevelopmentPhase\Implementation\Applications\Cali-MERO_2.0 {id=9}, due to error: java.io.IOException: cleartool: Error: Operation "get cleartext" failed: not a ClearCase object.


.. Now having a look at the teamcity-vcs.log file reveals e.g. this entry:
[2010-01-20 13:03:37,807]   INFO [pool executor 7] - .clearcase.ClearCaseConnection - interactive execute: cleartool get -to D:\TeamCity\temp\cc_6006temp V:\medct5i_fors37ba_irma_integration_dynamic\PM_CT\DevelopmentPhase\Implementation\Applications\Cali-MERO_2.0\.@@\main\74\DocumentGeneration\.@@\main\3\ConfigDeltaXml\.@@\main\14\compare-withkeys.dxp@@\main\3
[2010-01-20 13:03:37,947]   INFO [pool executor 7] - .clearcase.ClearCaseConnection - interactive execute: cleartool quit
[2010-01-20 13:03:38,338]  DEBUG [pool executor 7] -      jetbrains.buildServer.VCS - VCS connection problem in build configuration iRMA :: BuildTasks - Integration: Failed for the root 'medct5i_fors37ba_irma_integration_dynamic' #9: cleartool: Error: Operation "get cleartext" failed: not a ClearCase object.

jetbrains.buildServer.vcs.VcsException: java.io.IOException: cleartool: Error: Operation "get cleartext" failed: not a ClearCase object.

 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.loadFile(CCPatchProvider.java:171)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.access$200(CCPatchProvider.java:31)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider$2.processFile(CCPatchProvider.java:111)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheProcessor.processAllRevisions(CacheProcessor.java:71)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheElement.processAllVersionsInternal(CacheElement.java:178)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheElement.processAllVersions(CacheElement.java:96)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:673)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:52)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatchForConnection(ClearCaseSupport.java:324)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:311)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport$9.buildPatch(ClearCaseSupport.java:830)
 at jetbrains.buildServer.serverSide.impl.projectSources.BuildPatchUtil$1.buildPatch(BuildPatchUtil.java:2)
 at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:83)
 at jetbrains.buildServer.serverSide.impl.projectSources.BuildPatchUtil.buildPatch(BuildPatchUtil.java:1)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildCleanPatchToStream(PatchComposer.java:114)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.access$100(PatchComposer.java:151)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer$2.constructPatch(PatchComposer.java:2)
 at jetbrains.buildServer.serverSide.impl.projectSources.SmallPatchCache.getCachedCleanPatch(SmallPatchCache.java:32)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl.requestCachedPatch(PatchCacheImpl.java:16)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.getOrMakeCacheableCleanPatch(PatchComposer.java:99)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.makePatch(PatchComposer.java:109)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatchForRoot(PatchComposer.java:43)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:67)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:398)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$FastClassByCGLIB$$a84db719.invoke(<generated>)
 at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
 at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
 at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:1)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:582)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$EnhancerByCGLIB$$8cdbea8a.buildPatch(<generated>)
 at jetbrains.buildServer.serverSide.impl.BuildStarter$2.call(BuildStarter.java:6)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
 at java.util.concurrent.FutureTask.run(FutureTask.java:123)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: cleartool: Error: Operation "get cleartext" failed: not a ClearCase object.

 at jetbrains.buildServer.buildTriggers.vcs.clearcase.process.InteractiveProcess.executeAndReturnProcessInput(InteractiveProcess.java:64)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection$ClearCaseInteractiveProcess.copyFileContentTo(ClearCaseConnection.java:1032)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.loadFileContent(ClearCaseConnection.java:311)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.loadFile(CCPatchProvider.java:141)
 ... 37 more
[2010-01-20 13:03:38,338]   WARN [pool executor 7] -      jetbrains.buildServer.VCS - Failed to build patch for build 29 {build id=155}, VCS root: clearcase: V:\medct5i_fors37ba_irma_integration_dynamic\PM_CT\DevelopmentPhase\Implementation\Applications\Cali-MERO_2.0 {id=9}, due to error: java.io.IOException: cleartool: Error: Operation "get cleartext" failed: not a ClearCase object.

jetbrains.buildServer.vcs.VcsException: java.io.IOException: cleartool: Error: Operation "get cleartext" failed: not a ClearCase object.

 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.loadFile(CCPatchProvider.java:171)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.access$200(CCPatchProvider.java:31)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider$2.processFile(CCPatchProvider.java:111)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheProcessor.processAllRevisions(CacheProcessor.java:71)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheElement.processAllVersionsInternal(CacheElement.java:178)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheElement.processAllVersions(CacheElement.java:96)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:673)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:52)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatchForConnection(ClearCaseSupport.java:324)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:311)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport$9.buildPatch(ClearCaseSupport.java:830)
 at jetbrains.buildServer.serverSide.impl.projectSources.BuildPatchUtil$1.buildPatch(BuildPatchUtil.java:2)
 at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:83)
 at jetbrains.buildServer.serverSide.impl.projectSources.BuildPatchUtil.buildPatch(BuildPatchUtil.java:1)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildCleanPatchToStream(PatchComposer.java:114)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.access$100(PatchComposer.java:151)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer$2.constructPatch(PatchComposer.java:2)
 at jetbrains.buildServer.serverSide.impl.projectSources.SmallPatchCache.getCachedCleanPatch(SmallPatchCache.java:32)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl.requestCachedPatch(PatchCacheImpl.java:16)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.getOrMakeCacheableCleanPatch(PatchComposer.java:99)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.makePatch(PatchComposer.java:109)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatchForRoot(PatchComposer.java:43)
 at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:67)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:398)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$FastClassByCGLIB$$a84db719.invoke(<generated>)
 at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
 at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
 at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:1)
 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:582)
 at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$EnhancerByCGLIB$$8cdbea8a.buildPatch(<generated>)
 at jetbrains.buildServer.serverSide.impl.BuildStarter$2.call(BuildStarter.java:6)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
 at java.util.concurrent.FutureTask.run(FutureTask.java:123)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
 at java.lang.Thread.run(Thread.java:595)
Caused by: java.io.IOException: cleartool: Error: Operation "get cleartext" failed: not a ClearCase object.

 at jetbrains.buildServer.buildTriggers.vcs.clearcase.process.InteractiveProcess.executeAndReturnProcessInput(InteractiveProcess.java:64)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection$ClearCaseInteractiveProcess.copyFileContentTo(ClearCaseConnection.java:1032)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.loadFileContent(ClearCaseConnection.java:311)
 at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.loadFile(CCPatchProvider.java:141)
 ... 37 more
[2010-01-20 13:03:48,400]   INFO [pool executor 8] -      jetbrains.buildServer.VCS - Requesting patch: root=clearcase: V:\medct5i_fors37ba_irma_integration_dynamic\PM_CT\DevelopmentPhase\Implementation\Applications\Cali-MERO_2.0 {id=9}, cleanPatch=true, prevVersion=null, newVersion=19-January-2010.17:28:40, buildType=iRMA :: BuildTasks - Integration {id=bt10}, buildId=155
[2010-01-20 13:03:48,400]  DEBUG [pool executor 8] -      jetbrains.buildServer.VCS - root details: medct5i_fors37ba_irma_integration_dynamic {TYPE=BASE; cc-view-path=V:\medct5i_fors37ba_irma_integration_dynamic; rel-path=.\PM_CT\DevelopmentPhase\Implementation\Applications\Cali-MERO_2.0; teamcity:vcsRootName=medct5i_fors37ba_irma_integration_dynamic; vcs=clearcase; ; ver:1}
[2010-01-20 13:03:48,400]   INFO [pool executor 8] -      jetbrains.buildServer.VCS - Building clean patch for caching: root=clearcase:




.. in this particular case the file "compare-withkeys.dxp" does not longer exist. Looking at the view manually, it does in fact exactly like it's supposed to.. not sure why TeamCity even tries to get/refresh on uncataloged elements...


Now what can I do?


Cheers,
-J
3 comments
Comment actions Permalink

Just as a quick note: Detaching, deleting and re-creating the vcs root/entry in TeamCity (without changing the CC-View itself) temporarily fixed this.. but this cannot be the normal workflow after uncataloging and element, right?

-J

0
Comment actions Permalink

Hello,

Just as a quick note: Detaching, deleting and re-creating the vcs root/entry in TeamCity (without changing the CC-View itself) temporarily fixed this.. but this cannot be the normal workflow after uncataloging and element, right?

As a workaround you can click "Enforce Clean Checkout" instead of recreating VCS root. This will build the clean patch.

Can you please provide me full "teamcity-vcs.log" and "teamcity-clearcase.log" files for investigating this problem?

0
Comment actions Permalink

Maxim,

will do asap (I'm at the home office right now).... Should I file a bug report for that in the meantime?

-J

0

Please sign in to leave a comment.