Is ClearCase support already available for use?

I cann't start working project with ClearCase vcs. In both 3776 and 3811 I have the same result :

java.util.MissingResourceException: Can't find bundle for base name messages.ExecutionBundle, locale ru_RU
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at com.intellij.execution.ExecutionBundle.getBundle(ExecutionBundle.java:38)
at com.intellij.execution.ExecutionBundle.message(ExecutionBundle.java:31)
at com.intellij.execution.configurations.GeneralCommandLine.checkWorkingDirectory(GeneralCommandLine.java:122)
at com.intellij.execution.configurations.GeneralCommandLine.createProcess(GeneralCommandLine.java:103)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.]]>(ClearCaseConnection.java:108)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.createConnection(ClearCaseSupport.java:56)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:42)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:143)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:84)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:3)
at java.lang.Thread.run(Unknown Source)

As I see, TW-1553 is about it. Can you say, when it will be fixed and possibly how can I fix it myself not waiting for your next build? (in TW-1553 there is correct message sample, how it was gotten?)

And one more question about configuration. Needn't I specify password for ClearCase user and if it is true where can I set this attribute?

Thank you.

7 comments
Comment actions Permalink

Thank you for answer.

At last I found myself that to fix this exception I need to copy resources from build agent to server (I wonder how do you test your builds before releasing).

But this was the simplest problem I met.

In ClearCase it is typical situation when you have several streams (not brunches) (Development, Integration, Perfomance). In this case files have its versions in several streams.

So, I tried to start build on development stream and patch building process failed trying to get version of file from integration stream (of course it is unavailable for development stream. WHY patch provider do this???)

When I tried to start build on integration stream I got unhandled exception:

INFO - Server.vcs.patches.PatcherImpl - Cannot apply patch: java.lang.NullPointerException
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:39)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:42)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:143)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:84)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:3)
at java.lang.Thread.run(Thread.java:595)

Do you really think that you realised ClearCase support?

0
Comment actions Permalink

Yaroslav,

In the next EAP there will be reworked support of ClearCase and I hope it will resolve your problems.
Please watch this forum or http://www.jetbrains.net/confluence/display/TW/Download+Latest page for update.

Kind regards,
KIR

0
Comment actions Permalink

Thank you for answer, Kirill, and thank you for quick deffects fixing.

Problems I noted are not reproduced in 3914, but there is another one.

jetbrains.buildServer.vcs.VcsException: cleartool: Error: Unable to access "C:\VIEWS\Project\user_Project_Dev\Cmp_Project@@\main\Project_Dev\3": No such file or directory.

jetbrains.buildServer.vcs.VcsException: cleartool: Error: Unable to access "C:\VIEWS\Project\user_Project_Dev\Cmp_Project@@\main\Project_Dev\3": No such file or directory.

at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.readFromProcessInput(ClearCaseConnection.java:144)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.listDirectoryContent(ClearCaseConnection.java:138)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCParseUtil.readDirectoryVersionContent(CCParseUtil.java:88)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.exportDirectory(CCPatchProvider.java:6)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:26)
at jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:48)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:87)
at jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:475)
at jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:24)
at java.lang.Thread.run(Unknown Source)

This is an exception sample for development stream. (For integration stream there is the same one with only the difference in version number - \main\Project_Int\1).

As I know ClearCase, strings "\main\Project_Dev\3" and "\main\Project_Int\1" are versions but not names of file or directory as it reported in exception.

Could you explain what can be a reason of such deffect? (I cann't detail on what file/directory it happens because this information is not logged)

I also noticed strange behavior of "Test connection" action on ClearCase settings page. After I press button "Test connection" there is no message about test result and all controls on the page become non-editable/non-clickable (both textboxes, both buttons "Test Connection" and "Save", link "Cancel"). I see no exceptions in logs.

And on more question, is it possible to verbose log for ClearCase? (provide logger settings or system variables)

Thank you

0
Comment actions Permalink

Hi Yaroslav,

please rerun the server with -Dcc.log.commands=true option.

Vcs log file will contain all information about commans were run on the
server.
Please attach it after the exception occcured.

Thanks!
--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Yaroslav" <2007temporary@rambler.ru> wrote in message
news:27109547.1174157308733.JavaMail.itn@is.intellij.net...

Thank you for answer, Kirill, and thank you for quick deffects fixing.

>

Problems I noted are not reproduced in 3914, but there is another one.

>

jetbrains.buildServer.vcs.VcsException: cleartool: Error: Unable to access
"C:\VIEWS\Project\user_Project_Dev\Cmp_Project@@\main\Project_Dev\3": No
such file or directory.

>

jetbrains.buildServer.vcs.VcsException: cleartool: Error: Unable to access
"C:\VIEWS\Project\user_Project_Dev\Cmp_Project@@\main\Project_Dev\3": No
such file or directory.

>

at
jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.readFromProcessInput(ClearCaseConnection.java:144)
at
jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseConnection.listDirectoryContent(ClearCaseConnection.java:138)
at
jetbrains.buildServer.buildTriggers.vcs.clearcase.CCParseUtil.readDirectoryVersionContent(CCParseUtil.java:88)
at
jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.exportDirectory(CCPatchProvider.java:6)
at
jetbrains.buildServer.buildTriggers.vcs.clearcase.CCPatchProvider.buildPatch(CCPatchProvider.java:26)
at
jetbrains.buildServer.buildTriggers.vcs.clearcase.ClearCaseSupport.buildPatch(ClearCaseSupport.java:48)
at
jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:87)
at
jetbrains.buildServer.serverSide.impl.BuildTypeImpl.buildPatch(BuildTypeImpl.java:475)
at
jetbrains.buildServer.serverSide.impl.BuildStarter$3.run(BuildStarter.java:24)
at java.lang.Thread.run(Unknown Source)

>

This is an exception sample for development stream. (For integration
stream there is the same one with only the difference in version number -
\main\Project_Int\1).

>

As I know ClearCase, strings "\main\Project_Dev\3" and
"\main\Project_Int\1" are versions but not names of file or directory as
it reported in exception.

>

Could you explain what can be a reason of such deffect? (I cann't detail
on what file/directory it happens because this information is not logged)

>

I also noticed strange behavior of "Test connection" action on ClearCase
settings page. After I press button "Test connection" there is no message
about test result and all controls on the page become
non-editable/non-clickable (both textboxes, both buttons "Test Connection"
and "Save", link "Cancel"). I see no exceptions in logs.

>

And on more question, is it possible to verbose log for ClearCase?
(provide logger settings or system variables)

>

Thank you



0
Comment actions Permalink

Good day, Olesya.

Thank you for help.

The problem was in wrong view name I provided (I specified "C:\VIEWS\Project\user_Project_Dev\Cmp_Project", but cleartool expected "C:\VIEWS\Project\user_Project_Dev\Cmp_Project\.". I didn't know about this fine point and I think it will be nice if you reflect it in your FAQ).

I'm sorry for my importunity, but I stil have some questions.

1) What kind of ClearCase views (Snapshot or Dynamic) I need to use with your plugin? I found disadvantages in both of them. a) When I use Snapshot view then patch builder fails if there added files. It fails, because it tries to work with such files through local view (when it tries to get version tree for such file it uses name of local view to build file's full name under source control), but files were added in another one and cann't be resolved in a such way. b) When I use Dynamic view then I have to use 'Clean all files before build' feature to keep files of build agents up-to-date.
Please, answer what strategy should I prefer? (and may be I do something wrong?)

2) It is impossible to create valid "Ipr runner" configuration. Configuration page accepts only absolute path (C:\VIEWS\Project\user_Project_Dev\Cmp_Project\Source\Project.ipr), but not relative as it captioned. But in case when I provide full path ("C:\VIEWS\Project\user_Project_Dev\Cmp_Project\Source\Project.ipr") then build fails because it looks at this path as relative and appends to another root path. Is it really deffect or I do smth wrong?

3) I donn't see support for delayed commit for ClearCase from IDEA side. Is it normal situation?

Thank you.

0
Comment actions Permalink

1) Now plugin supports snapshot views only. What CC version do you use? In
my ClearCase view without "\." at the end works fine as well as aded files.
I think there might be some version incompatibility...

2) At the moment CC plugin does not support getContent (the method IPR
runner is based on), but it will be fixed in the next EAP.

3) Delayed commit support depends on CC plugin on IDEA side. As I know the
latest IDEA and the latest CC plugin bundled with IDEA should support
chanegs view and submit, so delayed commit has to work. You can ask IDEA
team if it's truth.

Thanks for your patience!
--
Olesya Smirnova
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


"Yaroslav" <2007temporary@rambler.ru> wrote in message
news:28007187.1174317666008.JavaMail.itn@is.intellij.net...

Good day, Olesya.

>

Thank you for help.

>

The problem was in wrong view name I provided (I specified
"C:\VIEWS\Project\user_Project_Dev\Cmp_Project", but cleartool expected
"C:\VIEWS\Project\user_Project_Dev\Cmp_Project\.". I didn't know about
this fine point and I think it will be nice if you reflect it in your
FAQ).

>

I'm sorry for my importunity, but I stil have some questions.

>

1) What kind of ClearCase views (Snapshot or Dynamic) I need to use with
your plugin? I found disadvantages in both of them. a) When I use Snapshot
view then patch builder fails if there added files. It fails, because it
tries to work with such files through local view (when it tries to get
version tree for such file it uses name of local view to build file's full
name under source control), but files were added in another one and cann't
be resolved in a such way. b) When I use Dynamic view then I have to use
'Clean all files before build' feature to keep files of build agents
up-to-date.
Please, answer what strategy should I prefer? (and may be I do something
wrong?)

>

2) It is impossible to create valid "Ipr runner" configuration.
Configuration page accepts only absolute path
(C:\VIEWS\Project\user_Project_Dev\Cmp_Project\Source\Project.ipr), but
not relative as it captioned. But in case when I provide full path
("C:\VIEWS\Project\user_Project_Dev\Cmp_Project\Source\Project.ipr") then
build fails because it looks at this path as relative and appends to
another root path. Is it really deffect or I do smth wrong?

>

3) I donn't see support for delayed commit for ClearCase from IDEA side.
Is it normal situation?

>

Thank you.



0
Comment actions Permalink

1) Version info of my ClearCase software:
C:\>cleartool -version
ClearCase version 2003.06.00 (Fri Apr 18 13:06:18 2003)
clearcase patch p2003.06.01 (Fri Sep 5 11:59:28 2003)
clearcase patch p2003.06.12 (Fri Nov 7 11:59:28 2003)
clearcase patch p2003.06.14 (Fri Oct 8 11:59:28 2004)
clearcase patch p2003.06.15 (Fri Apr 9 11:59:28 2005)
clearcase patch p2003.06.16 (Fri Jul 1 11:59:28 2005)
@(#) MVFS version 2003.06.10+ (Thu Jan 27 04:26:46 2005)
cleartool 2003.06.10+ (Fri Jun 3 21:18:43 2005)
db_server 2003.06.10+ (Fri May 6 22:12:48 2005)
VOB database schema version: 54

Needness of suffix "\." I discovered looking at "Properties of Element" for Cmp_Project folder from my view ("C:\VIEWS\Project\user_Project_Dev\Cmp_Project"). Its name there is "C:\VIEWS\Project\user_Project_Dev\Cmp_Project\.@@". May be this is some naming policy.

About Snapshot view and Added Files - I donn't think that the problem is in version. Can you change a little a way of retrieval of new files (for instance, through dynamic view)?

Thank you.

0

Please sign in to leave a comment.