ClearCase UCM

I'm having problems with Team City using ClearCase UCM ( 7.0.1.1-FIX02)

Our ClearCase Server is Installed on a Windows OS.

I have a VM with windows 2003 and installed ClearCase and Latest Team City.
I configured the windows services with a network account that has admin rights for clearcase and used that same account to create a snapshot view.


On the VCS Root Configuration I entered C:\snapshot\clearcase_cm_290test\javaOA as the View Path which is the snapshot view.
Configured as UCM , I clicked Test and it passed. Saved the configuration.

Now when I try to build it I get the following errors: ( I searched the forums first before posting, but didn't find a solution that worked)



: Could not get project sources: for build #5
: jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule '.=>C:/snapshot/test' failed with erorr: java.io.IOException: cleartool: Error: Unable to access "C:\snapshot\clearcase_cm_290test\javaOA@@\main\javaPRODint\CQ200100Java_Int\2": No such file or directory.

jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule '.=>C:/snapshot/test' failed with erorr: java.io.IOException: cleartool: Error: Unable to access "C:\snapshot\clearcase_cm_290test\javaOA@@\main\javaPRODint\CQ200100Java_Int\2": No such file or directory.

at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:25)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:74)
at jetbrains.buildServer.serverSide.impl.projectSources.SmallPatchCache.getCachedCleanPatch(SmallPatchCache.java:25)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl.buildCleanPatch(PatchCacheImpl.java:44)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:58)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:127)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:75)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:185)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$FastClassByCGLIB$$a84db719.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:696) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:5) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:578) at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$EnhancerByCGLIB$$9380710c.buildPatch(]]>)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:27)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
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: jetbrains.buildServer.vcs.VcsException: java.io.IOException: cleartool: Error: Unable to access "C:\snapshot\clearcase_cm_290test\javaOA@@\main\javaPRODint\CQ200100Java_Int\2": No such file or directory.

at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCParseUtil.readDirectoryVersionContent(CCParseUtil.java:44)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersionsInternal(ClearCaseConnection.java:74)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:36)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheElement.processAllVersions(CacheElement.java:18)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:289)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:28)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:123)
at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:33)
... 22 more
Caused by: java.io.IOException: cleartool: Error: Unable to access "C:\snapshot\clearcase_cm_290test\javaOA@@\main\javaPRODint\CQ200100Java_Int\2": No such file or directory.

at jetbrains.buildServer.buildTriggers.vcs.clearcase.process.InteractiveProcess.executeAndReturnProcessInput(InteractiveProcess.java:44)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.executeAndReturnProcessInput(ClearCaseConnection.java:17)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.listDirectoryContent(ClearCaseConnection.java:62)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCParseUtil.readDirectoryVersionContent(CCParseUtil.java:24)
... 29 more
: Could not get project sources
: Error while applying patch: Getting sources for checkout rule '.=>C:/snapshot/test' failed with erorr: java.io.IOException: c...

14 comments
Comment actions Permalink

hello,
you should create a checkout rule for each folder under the view path of your snapshot.


For example :
C:\your\snapshot\view\path\

under it you have 2 folders : folder1 and folder2
and one file : file.txt

Here is the checkout rules you should put :
folder1 => folder1
folder2 => folder2
file.txt => file.txt

regards

0
Comment actions Permalink

Thanks for the reply, I'll try this out.

0
Comment actions Permalink

: Could not get project sources: for build #6
: jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule 'model=>model' failed with erorr: Cannot get version in view 'C:\snapshot\clearcase_cm_290test\javaOA\model' for the directory C:\snapshot\clearcase_cm_290test\javaOA\model
jetbrains.buildServer.vcs.VcsException: Getting sources for checkout rule 'model=>model' failed with erorr: Cannot get version in view 'C:\snapshot\clearcase_cm_290test\javaOA\model' for the directory C:\snapshot\clearcase_cm_290test\javaOA\model
at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:25)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:74)
at jetbrains.buildServer.serverSide.impl.projectSources.SmallPatchCache.getCachedCleanPatch(SmallPatchCache.java:25)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchCacheImpl.buildCleanPatch(PatchCacheImpl.java:44)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:58)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:127)
at jetbrains.buildServer.serverSide.impl.projectSources.PatchComposer.buildPatch(PatchComposer.java:75)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:185)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$FastClassByCGLIB$$a84db719.invoke() at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:696) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at jetbrains.buildServer.serverSide.impl.auth.TeamCityMethodSecurityInterceptor.invoke(TeamCityMethodSecurityInterceptor.java:5) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.Cglib2AopProxy$FixedChainStaticTargetInterceptor.intercept(Cglib2AopProxy.java:578) at jetbrains.buildServer.serverSide.impl.BuildTypeImpl$$EnhancerByCGLIB$$9380710c.buildPatch(]]>)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:27)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
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: jetbrains.buildServer.vcs.VcsException: Cannot get version in view 'C:\snapshot\clearcase_cm_290test\javaOA\model' for the directory C:\snapshot\clearcase_cm_290test\javaOA\model
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.prepare(ClearCaseConnection.java:182)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:268)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.structure.CacheElement.processAllVersions(CacheElement.java:18)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.processAllVersions(ClearCaseConnection.java:289)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:28)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:123)
at jetbrains.buildServer.vcs.VcsSupportUtil.buildPatch(VcsSupportUtil.java:33)
... 22 more
: Could not get project sources
: Error while applying patch: Getting sources for checkout rule 'model=>model' failed with erorr: Cannot get version in view 'C...

0
Comment actions Permalink

Gabriel,

Can you please run the command "cleartool catcs" in the command line and attach/write here its output?

0
Comment actions Permalink

Microsoft Windows
(C) Copyright 1985-2003 Microsoft Corp.


C:\snapshot>dir
Volume in drive C has no label.
Volume Serial Number is A00B-7081

Directory of C:\snapshot

10/15/2008 10:09 AM . 10/15/2008 10:09 AM

.. 10/14/2008 04:06 PM clearcase_cm_290test 10/15/2008 12:44 PM test 0 File(s) 0 bytes 4 Dir(s) 80,685,268,992 bytes free C:\snapshot>cd clearcase_cm_290test C:\snapshot\clearcase_cm_290test>]]> cleartool catcs
ucm
identity UCM.Stream oid:f80775f6.81784a0b.998f.52:57:6a:a5:c4:b7@vobuuid:0960a302.c837474f.bb6b.7e:f1:0d:41:99:31
1

  1. ONLY EDIT THIS CONFIG SPEC IN THE INDICATED "CUSTOM" AREAS

#

  1. This config spec was automatically generated by the UCM stream

  2. "clearcase_cm_290test" at 2008-10-14T16:06:57-05:00.

#


  1. Select checked out versions

element * CHECKEDOUT

  1. Component selection rules...


element "[e19d83c7014a4ee1a61163bc2cfd87f1=\javaOA]/..." .../clearcase_cm_290test/LATEST
element "[e19d83c7014a4ee1a61163bc2cfd87f1=\javaOA]/..." 2.9.0.21.4926 -mkbranch clearcase_cm_290test
element "[e19d83c7014a4ee1a61163bc2cfd87f1=\javaOA]/..." /main/0 -mkbranch clearcase_cm_290test


end ucm

#UCMCustomElemBegin - DO NOT REMOVE - ADD CUSTOM ELEMENT RULES AFTER THIS LINE
#UCMCustomElemEnd - DO NOT REMOVE - END CUSTOM ELEMENT RULES

  1. Non-included component backstop rule: no checkouts

element * /main/0 -ucm -nocheckout

#UCMCustomLoadBegin - DO NOT REMOVE - ADD CUSTOM LOAD RULES AFTER THIS LINE
load \javaOA

C:\snapshot\clearcase_cm_290test>

0
Comment actions Permalink

Gabriel,

Sorry for the delay in replying. Can you also please run following commands and write theirs output?

cleartool lsstream -fmt %En#--#%[found_bls]p
cleartool lsvtree -obs -all C:\snapshot\clearcase_cm_290test\javaOA\model

0
Comment actions Permalink

C:\snapshot\clearcase_cm_290test>cleartool lsstream -fmt %En#--#%found_blsp
clearcase_cm_290test#--#ound_blsp
C:\snapshot\clearcase_cm_290test>cleartool lsvtree -obs -all C:\snapshot\clearcase_cm_290test\javaOA\model
C:\snapshot\clearcase_cm_290test\javaOA\model@@\main
C:\snapshot\clearcase_cm_290test\javaOA\model@@\main\0
C:\snapshot\clearcase_cm_290test\javaOA\model@@\main\javaPRODint
C:\snapshot\clearcase_cm_290test\javaOA\model@@\main\javaPRODint\0
C:\snapshot\clearcase_cm_290test\javaOA\model@@\main\javaPRODint\1 (ipower_10, ipower_6, ipower_5, javaPROD_252co
deaddition)

C:\snapshot\clearcase_cm_290test>

0
Comment actions Permalink

Gabriel,

Sorry, first command in my post was changed because there was no escaping.

There is right one:
cleartool lsstream -fmt %En#--#%\[found_bls]p

Can you run it please?

0
Comment actions Permalink

C:\snapshot\clearcase_cm_290test>cleartool lsstream -fmt %En#--#%[found_bls]p
clearcase_cm_290test#--#2.9.0.21.4926
C:\snapshot\clearcase_cm_290test>

0
Comment actions Permalink

Gabriel,

Sorry for the delay in replying. I've wrote some workaround for the TeamCity ClearCase integration. Please see your issue in the tracker for more info. Thank you for your help.

Edited by: Maxim Manuylov on Oct 29, 2008 3:30 PM

0
Comment actions Permalink

We have tested the new patch and now get the following errors for the stream whenever a new baseline is created.

Checking changes for checkout rule '../thirdParty=>../thirdParty' failed with erorr: jetbrains.buildServer.vcs.VcsException: cleartool: Error: Database identifier (dbid) not found in database: "\ipowerJava".
« Hide details jetbrains.buildServer.vcs.VcsException: Checking changes for checkout rule '../thirdParty=>../thirdParty' failed with erorr: jetbrains.buildServer.vcs.VcsException: cleartool: Error: Database identifier (dbid) not found in database: "\ipowerJava".

at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:32)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.collectBuildChanges(ClearCaseSupport.java:550)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:69)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.loadChanges(VcsChangesLoader.java:5)
at jetbrains.buildServer.vcs.impl.VcsManagerImpl.loadChanges(VcsManagerImpl

Checking changes for checkout rule '../src=>../src' failed with erorr: jetbrains.buildServer.vcs.VcsException: cleartool: Error: Could not create prefix map cleartool: Error: Unable to access VOB, replica uuid "4d1c7653.0aa74b7a.a9e8.d2:e7:38:f0:c0:3c": Filename too long cleartool: Error: Could not determine stream for view
« Hide details jetbrains.buildServer.vcs.VcsException: Checking changes for checkout rule '../src=>../src' failed with erorr: jetbrains.buildServer.vcs.VcsException: cleartool: Error: Could not create prefix map
cleartool: Error: Unable to access VOB, replica uuid "4d1c7653.0aa74b7a.a9e8.d2:e7:38:f0:c0:3c": Filename too long
cleartool: Error: Could not determine stream for view

at jetbrains.buildServer.vcs.VcsSupportUtil.collectBuildChanges(VcsSupportUtil.java:32)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.collectBuildChanges(ClearCaseSupport.java:550)
at jetbrains.buildServer.buildTriggers.vcs.VcsChangesLoader.collectBuildChanges(VcsChangesLoader.java:69)

0
Comment actions Permalink

Now I get the following error in localhost.2008-11-14.log. TeamCity does not function at all now.

Nov 14, 2008 10:48:31 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'clearcase' defined in file : Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class : Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: jetbrains/buildServer/TeamCityExtension
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:231)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:957)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:869)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:413)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:735)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:369)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
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.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class : Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: jetbrains/buildServer/TeamCityExtension
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:98)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:225)
... 40 more
Caused by: java.lang.NoClassDefFoundError: jetbrains/buildServer/TeamCityExtension
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.]]>(ClearCaseSupport.java:72)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:83)
... 42 more

0

Please sign in to leave a comment.