It's all about the answers!

Ask a question

Explaination of repotools return codes


Sam Sultana (5611311) | asked Jul 15 '09, 8:04 a.m.
Hi,

We are running the repotols -export command as part of our migration process going from RTC v1.x to RTC v2.x and we are getting a return code '44' when repotools finishes, but there are no messages?

If repotools has finished successfully then we would expect a return code of '0'.

So, the question is, does anyone have a list of the repotools return codes, or can tell us what a return code of '44' is, and do we have a problem?

regards,

Sam Sultana.

5 answers



permanent link
Christophe Elek (2.9k13021) | answered Jul 15 '09, 8:04 a.m.
JAZZ DEVELOPER
sam_sultana@uk.ibm-dot-com.no-spam.invalid (frit) wrote in news:h3kgrk$bng
$1@localhost.localdomain:

So, the question is, does anyone have a list of the repotools return
codes, or can tell us what a return code of '44' is, and do we have a
problem?

looking at the code...
- The app has 2 main rc (1=fail,0 =good)
- each command returns its own list of rc

For instance : isServerRunning...
// Return Codes
private static final int RC_SERVER_IS_NOT_RUNNING = 0;
private static final int RC_SERVER_IS_RUNNING = 1;

For Export, I do not see 44
// Error Return Codes
private static final int RC_TO_FILE_EXISTS = 1;
private static final int RC_SERVER_IS_RUNNING = 2;
private static final int RC_DATABASE_DOES_NOT_EXIST = 3;
private static final int RC_FAILED_TO_LOGIN = 4;
private static final int RC_COMPONENT_VERSION_MISMATCH = 5;
private static final int RC_FAILED_TO_EXPORT_DATA = 6;

it will return 0 if everything works fine

*********

ca you paste/attach the repotools.log generate ?

--
Christophe Elek
Jazz L3
IBM Software Group - Rational

permanent link
Sam Sultana (5611311) | answered Jul 15 '09, 9:12 a.m.
Hi Christophe,

Thank you for your quick response...

When we run the repotools -export command on a RTC v1.0.1.1 we definitely get a RC of '44'. Looking in the repotools script we see that it calls a large number of java classes and it is not obivous where it is getting the rc (1=fail,0 =good) let alone the rc '44' that we see?!

When we look at the 'repotools_export.log' we see no errors (See Below).

regards,

Sam Sultana.

2009-07-15 08:46:43,836 repotools -export toFile=/jazztemp/jazz212.export.tar
2009-07-15 08:46:43,843 Repo Tools, Version 1.0.1.1 - M20090225-1543
2009-07-15 08:46:43,845 Provisioning using "./provision_profiles".
2009-07-15 08:46:56,490 Rational Jazz Team Server - Standard
2009-07-15 08:46:56,513 Loading configuration from "file:teamserver.properties".
2009-07-15 08:46:57,987 Attempting Initial Database Connection Using
Db Name/Location: //jazz212.hursley.ibm.com:19906/JAZZ:fullyMaterializeLobData=false;user=xxxxxxxx;password=xxxxxxxx;
2009-07-15 08:46:58,754 Initial database connection successful
Db Product Name: DB2/AIX64
Db Product Version: SQL09050
Db URL: jdbc:db2://jazz212.hursley.ibm.com:19906/JAZZ
Jdbc Driver Name: IBM DB2 JDBC Universal Driver Architecture
Jdbc Driver Version: 3.6.60
2009-07-15 08:46:59,250 CRJAZ8192E: Fulltext Index Location: /jazzhome/jazz212/JazzTeamServer/server/WORKITEM_INDEX/fulltext_index/
2009-07-15 08:47:07,113 The user "ADMIN" has logged in to the database "//jazz212.hursley.ibm.com:19906/JAZZ:fullyMaterializeLobData=false;user=xxxxxxxx;password=xxxxxxxx;".
2009-07-15 08:47:07,133 Exporting the data from the database "//jazz212.hursley.ibm.com:19906/JAZZ:fullyMaterializeLobData=false;user=xxxxxxxx;password=xxxxxxxx;" to the file "/jazztemp/jazz212.export.tar".
2009-07-15 08:47:07,134 Using encoding "ISO-8859-1"
2009-07-15 08:47:07,338
2009-07-15 08:47:07,342 Exporting all the items present in the repository in offline mode.
2009-07-15 08:47:07,343
2009-07-15 08:47:07,425 Exporting com.ibm.team.repository/ChangeEvent.
2009-07-15 08:47:15,394 Exported 1008 ChangeEvent items in 7968 ms.

2009-07-15 08:47:15,398 Exporting com.ibm.team.repository/LicenseType.
2009-07-15 08:47:15,442 Exported 9 LicenseType items in 44 ms.

2009-07-15 08:47:15,447 Exporting com.ibm.team.repository/LicenseAssignment.
2009-07-15 08:47:15,803 Exported 61 LicenseAssignment items in 356 ms.

2009-07-15 08:47:15,813 Exporting com.ibm.team.repository/ContributorDetails.
2009-07-15 08:47:16,665 Exported 44 ContributorDetails items in 852 ms.

2009-07-15 08:47:16,670 Exporting com.ibm.team.repository/AuditableBaseline.
2009-07-15 08:47:16,672 Exported 0 AuditableBaseline items in 2 ms.

2009-07-15 08:47:16,674 Exporting com.ibm.team.repository/RepositoryRoot.
2009-07-15 08:47:16,806 Exported 1 RepositoryRoot items in 132 ms.

2009-07-15 08:47:16,810 Exporting com.ibm.team.repository/Contributor.
2009-07-15 08:47:17,479 Exported 47 Contributor items in 669 ms.

2009-07-15 08:47:17,486 Exporting com.ibm.team.process/ProcessChangeEventCheck.
2009-07-15 08:47:17,496 Exported 1 ProcessChangeEventCheck items in 9 ms.

2009-07-15 08:47:17,506 Exporting com.ibm.team.process/ProjectArea.
2009-07-15 08:47:18,281 Exported 3 ProjectArea items in 775 ms.

2009-07-15 08:47:18,285 Exporting com.ibm.team.process/TeamArea.
2009-07-15 08:47:18,851 Exported 19 TeamArea items in 566 ms.

2009-07-15 08:47:18,856 Exporting com.ibm.team.process/ProcessDefinition.
2009-07-15 08:47:19,016 Exported 6 ProcessDefinition items in 160 ms.

2009-07-15 08:47:19,019 Exporting com.ibm.team.process/ProcessDomainDefinition.
2009-07-15 08:47:19,020 Exported 0 ProcessDomainDefinition items in 1 ms.

2009-07-15 08:47:19,024 Exporting com.ibm.team.process/DevelopmentLine.
2009-07-15 08:47:19,073 Exported 5 DevelopmentLine items in 49 ms.

2009-07-15 08:47:19,081 Exporting com.ibm.team.process/Iteration.
2009-07-15 08:47:19,240 Exported 20 Iteration items in 159 ms.

2009-07-15 08:47:19,244 Exporting com.ibm.team.process/IterationType.
2009-07-15 08:47:19,259 Exported 1 IterationType items in 15 ms.

2009-07-15 08:47:19,265 Exporting com.ibm.team.process/ProcessAttachment.
2009-07-15 08:47:26,806 Exported 398 ProcessAttachment items in 7541 ms.

2009-07-15 08:47:26,809 Exporting com.ibm.team.interop/SyncInfo.
2009-07-15 08:47:26,810 Exported 0 SyncInfo items in 1 ms.

2009-07-15 08:47:26,815 Exporting com.ibm.team.interop/ExternalRepositoryConnection.
2009-07-15 08:47:26,816 Exported 0 ExternalRepositoryConnection items in 1 ms.

2009-07-15 08:47:26,822 Exporting com.ibm.team.interop/ExternalProxy.
2009-07-15 08:47:26,823 Exported 0 ExternalProxy items in 1 ms.

2009-07-15 08:47:26,826 Exporting com.ibm.team.interop/SyncRule.
2009-07-15 08:47:26,827 Exported 0 SyncRule items in 1 ms.

2009-07-15 08:47:26,832 Exporting com.ibm.team.interop/ExternalState.
2009-07-15 08:47:26,833 Exported 0 ExternalState items in 1 ms.

2009-07-15 08:47:26,836 Exporting com.ibm.team.workitem/Deliverable.
2009-07-15 08:47:26,837 Exported 0 Deliverable items in 1 ms.

2009-07-15 08:47:26,846 Exporting com.ibm.team.workitem/WorkItem.
2009-07-15 08:47:28,380 Exported 92 WorkItem items in 1534 ms.

2009-07-15 08:47:28,448 Exporting com.ibm.team.workitem/Category.
2009-07-15 08:47:28,622 Exported 24 Category items in 174 ms.

2009-07-15 08:47:28,625 Exporting com.ibm.team.workitem/Attribute.
2009-07-15 08:47:29,079 Exported 95 Attribute items in 453 ms.

2009-07-15 08:47:29,081 Exporting com.ibm.team.workitem/Attachment.
2009-07-15 08:47:29,117 Exported 2 Attachment items in 36 ms.

2009-07-15 08:47:29,119 Exporting com.ibm.team.opaque/Opaque.
2009-07-15 08:47:29,121 Exported 0 Opaque items in 2 ms.

2009-07-15 08:47:29,129 Exporting com.ibm.team.scm/Workspace.
2009-07-15 08:47:29,225 Exported 17 Workspace items in 96 ms.

2009-07-15 08:47:29,291 Exporting com.ibm.team.scm/Configuration.
2009-07-15 08:47:29,624 Exported 38 Configuration items in 333 ms.

2009-07-15 08:47:29,640 Exporting com.ibm.team.scm/ChangeHistory.
2009-07-15 08:47:29,906 Exported 40 ChangeHistory items in 266 ms.

2009-07-15 08:47:29,910 Exporting com.ibm.team.scm/ComponentEntry.
2009-07-15 08:47:30,034 Exported 29 ComponentEntry items in 124 ms.

2009-07-15 08:47:30,037 Exporting com.ibm.team.scm/Suspended.
2009-07-15 08:47:30,038 Exported 0 Suspended items in 1 ms.

2009-07-15 08:47:30,040 Exporting com.ibm.team.scm/BaselineSet.
2009-07-15 08:47:30,074 Exported 7 BaselineSet items in 34 ms.

2009-07-15 08:47:30,076 Exporting com.ibm.team.scm/HistoricBasis.
2009-07-15 08:47:30,106 Exported 6 HistoricBasis items in 30 ms.

2009-07-15 08:47:30,110 Exporting com.ibm.team.scm/RepositoryProgressMonitor.
2009-07-15 08:47:30,111 Exported 0 RepositoryProgressMonitor items in 1 ms.

2009-07-15 08:47:30,114 Exporting com.ibm.team.scm/ContributorSuspendRecord.
2009-07-15 08:47:30,115 Exported 0 ContributorSuspendRecord items in 1 ms.

2009-07-15 08:47:30,118 Exporting com.ibm.team.scm/FolderLastModifiedInWorkspaceEntry.
2009-07-15 08:47:30,119 Exported 0 FolderLastModifiedInWorkspaceEntry items in 1 ms.

2009-07-15 08:47:30,123 Exporting com.ibm.team.scm/ChangeSet.
2009-07-15 08:47:30,409 Exported 13 ChangeSet items in 286 ms.

2009-07-15 08:47:30,412 Exporting com.ibm.team.scm/Component.
2009-07-15 08:47:30,462 Exported 9 Component items in 50 ms.

2009-07-15 08:47:30,464 Exporting com.ibm.team.scm/Baseline.
2009-07-15 08:47:30,523 Exported 11 Baseline items in 59 ms.

2009-07-15 08:47:30,533 Exporting com.ibm.team.scm/Folder.
2009-07-15 08:47:30,717 Exported 41 Folder items in 184 ms.

2009-07-15 08:47:30,719 Exporting com.ibm.team.scm/Versionable.
2009-07-15 08:47:30,720 Exported 0 Versionable items in 1 ms.

2009-07-15 08:47:30,723 Exporting com.ibm.team.apt/IterationPlanRecord.
2009-07-15 08:47:30,807 Exported 7 IterationPlanRecord items in 84 ms.

2009-07-15 08:47:30,811 Exporting com.ibm.team.workitem.query/QueryDescriptor.
2009-07-15 08:47:31,194 Exported 49 QueryDescriptor items in 383 ms.

2009-07-15 08:47:31,197 Exporting com.ibm.team.apt.resource/ContributorAbsence.
2009-07-15 08:47:31,246 Exported 8 ContributorAbsence items in 49 ms.

2009-07-15 08:47:31,249 Exporting com.ibm.team.apt.resource/ContributorResourceDetails.
2009-07-15 08:47:31,321 Exported 6 ContributorResourceDetails items in 73 ms.

2009-07-15 08:47:31,324 Exporting com.ibm.team.apt.resource/WorkResourceDetails.
2009-07-15 08:47:31,394 Exported 12 WorkResourceDetails items in 70 ms.

2009-07-15 08:47:31,397 Exporting com.ibm.team.foundation.wiki/WikiPageAttachment.
2009-07-15 08:47:31,424 Exported 2 WikiPageAttachment items in 27 ms.

2009-07-15 08:47:31,427 Exporting com.ibm.team.foundation.wiki/WikiPage.
2009-07-15 08:47:31,674 Exported 8 WikiPage items in 247 ms.

2009-07-15 08:47:31,678 Exporting com.ibm.team.dashboard/Dashboard.
2009-07-15 08:47:31,849 Exported 21 Dashboard items in 171 ms.

2009-07-15 08:47:31,852 Exporting com.ibm.team.dashboard/DashboardContributorInfo.
2009-07-15 08:47:31,966 Exported 29 DashboardContributorInfo items in 114 ms.

2009-07-15 08:47:31,970 Exporting com.ibm.team.build/CompileContribution.
2009-07-15 08:47:31,971 Exported 0 CompileContribution items in 1 ms.

2009-07-15 08:47:31,973 Exporting com.ibm.team.build/JUnitTestSuiteContribution.
2009-07-15 08:47:31,975 Exported 0 JUnitTestSuiteContribution items in 2 ms.

2009-07-15 08:47:31,977 Exporting com.ibm.team.build/BuildEngineActivity.
2009-07-15 08:47:31,978 Exported 0 BuildEngineActivity items in 1 ms.

2009-07-15 08:47:31,981 Exporting com.ibm.team.build/JUnitTestClass.
2009-07-15 08:47:31,982 Exported 0 JUnitTestClass items in 1 ms.

2009-07-15 08:47:31,984 Exporting com.ibm.team.build/BuildAverageData.
2009-07-15 08:47:31,986 Exported 0 BuildAverageData items in 2 ms.

2009-07-15 08:47:31,988 Exporting com.ibm.team.build/CompilePackage.
2009-07-15 08:47:31,990 Exported 0 CompilePackage items in 2 ms.

2009-07-15 08:47:31,993 Exporting com.ibm.team.build/BuildResultContributions.
2009-07-15 08:47:31,995 Exported 0 BuildResultContributions items in 2 ms.

2009-07-15 08:47:31,998 Exporting com.ibm.team.build/BuildActivities.
2009-07-15 08:47:31,999 Exported 0 BuildActivities items in 1 ms.

2009-07-15 08:47:32,002 Exporting com.ibm.team.build/BuildResult.
2009-07-15 08:47:32,003 Exported 0 BuildResult items in 1 ms.

2009-07-15 08:47:32,006 Exporting com.ibm.team.build/BuildEngine.
2009-07-15 08:47:32,007 Exported 0 BuildEngine items in 1 ms.

2009-07-15 08:47:32,010 Exporting com.ibm.team.build/BuildDefinition.
2009-07-15 08:47:32,011 Exported 0 BuildDefinition items in 1 ms.

2009-07-15 08:47:32,014 Exporting com.ibm.team.build/BuildRequest.
2009-07-15 08:47:32,015 Exported 0 BuildRequest items in 1 ms.

2009-07-15 08:47:32,018 Exporting com.ibm.team.process.simplefile/SimpleFile.
2009-07-15 08:47:32,019 Exported 0 SimpleFile items in 1 ms.

2009-07-15 08:47:32,022 Exporting com.ibm.team.analysis/AnalysisContribution.
2009-07-15 08:47:32,023 Exported 0 AnalysisContribution items in 1 ms.

2009-07-15 08:47:32,026 Exporting com.ibm.team.links/AuditableLink.
2009-07-15 08:47:32,227 Exported 36 AuditableLink items in 201 ms.

2009-07-15 08:47:32,231 Exporting com.ibm.team.reports/ReportDescriptor.
2009-07-15 08:47:41,289 Exported 46 ReportDescriptor items in 9058 ms.

2009-07-15 08:47:41,292 Exporting com.ibm.team.reports/FolderDescriptor.
2009-07-15 08:47:41,307 Exported 3 FolderDescriptor items in 15 ms.

2009-07-15 08:47:41,310 Exporting com.ibm.team.reports/ReportQueryDescriptor.
2009-07-15 08:47:41,392 Exported 23 ReportQueryDescriptor items in 82 ms.

2009-07-15 08:47:41,394 Exporting com.ibm.team.scm.svn/SvnRepository.
2009-07-15 08:47:41,395 Exported 0 SvnRepository items in 1 ms.

2009-07-15 08:47:41,398 Exporting com.ibm.team.filesystem/FileItem.
2009-07-15 08:47:46,909 Exported 205 FileItem items in 5511 ms.

2009-07-15 08:47:46,915 Exporting raw data for Jazz Data Warehouse Migration Handler.
2009-07-15 08:47:57,663 Exported raw data for Jazz Data Warehouse Migration Handler in 10748 ms.

2009-07-15 08:47:57,664
Validating exported items...
2009-07-15 08:47:57,665 Validating exported items for "com.ibm.team.workitem"...
2009-07-15 08:47:57,665 Validating exported items for "com.ibm.team.interop"...
2009-07-15 08:47:57,666 Validating exported items for "com.ibm.team.process"...
2009-07-15 08:47:57,666 Validating exported items for "com.ibm.team.opaque"...
2009-07-15 08:47:57,666 Validating exported items for "com.ibm.team.repository"...
2009-07-15 08:47:57,667 Validating exported items for "com.ibm.team.apt"...
2009-07-15 08:47:57,667 Validating exported items for "com.ibm.team.scm"...
2009-07-15 08:47:57,668 Validating exported items for "com.ibm.team.workitem.query"...
2009-07-15 08:47:57,668 Validating exported items for "com.ibm.team.apt.resource"...
2009-07-15 08:47:57,668 Validating exported items for "com.ibm.team.dashboard"...
2009-07-15 08:47:57,669 Validating exported items for "com.ibm.team.foundation.wiki"...
2009-07-15 08:47:57,669 Validating exported items for "com.ibm.team.build"...
2009-07-15 08:47:57,669 Validating exported items for "com.ibm.team.analysis"...
2009-07-15 08:47:57,670 Validating exported items for "com.ibm.team.process.simplefile"...
2009-07-15 08:47:57,670 Validating exported items for "com.ibm.team.reports"...
2009-07-15 08:47:57,670 Validating exported items for "com.ibm.team.links"...
2009-07-15 08:47:57,670 Validating exported items for "com.ibm.team.scm.svn"...
2009-07-15 08:47:57,671 Validating exported items for "com.ibm.team.filesystem"...
2009-07-15 08:47:57,671 Finished validating exported items in 7ms.
2009-07-15 08:47:57,672

2009-07-15 08:47:57,672 Exported 2502 elements in 50334 ms.
2009-07-15 08:47:57,672 com.ibm.team.workitem
2009-07-15 08:47:57,672 Attribute : 95 items, 95 item states exported in 453ms.
2009-07-15 08:47:57,673 WorkItem : 92 items, 232 item states exported in 1534ms.
2009-07-15 08:47:57,673 Category : 24 items, 34 item states exported in 174ms.
2009-07-15 08:47:57,673 Deliverable : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,674 Attachment : 2 items, 2 item states exported in 36ms.
2009-07-15 08:47:57,674 com.ibm.team.interop
2009-07-15 08:47:57,674 SyncRule : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,674 ExternalProxy : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,674 ExternalState : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,675 SyncInfo : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,675 ExternalRepositoryConnection : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,675 com.ibm.team.process
2009-07-15 08:47:57,675 IterationType : 1 items, 1 item states exported in 15ms.
2009-07-15 08:47:57,676 ProjectArea : 3 items, 52 item states exported in 775ms.
2009-07-15 08:47:57,676 TeamArea : 19 items, 83 item states exported in 566ms.
2009-07-15 08:47:57,676 DevelopmentLine : 5 items, 9 item states exported in 49ms.
2009-07-15 08:47:57,676 ProcessDefinition : 6 items, 6 item states exported in 160ms.
2009-07-15 08:47:57,677 ProcessAttachment : 398 items, 398 item states exported in 7541ms.
2009-07-15 08:47:57,677 Iteration : 20 items, 28 item states exported in 159ms.
2009-07-15 08:47:57,677 ProcessDomainDefinition : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,677 ProcessChangeEventCheck : 1 items, 1 item states exported in 9ms.
2009-07-15 08:47:57,678 com.ibm.team.opaque
2009-07-15 08:47:57,678 Opaque : 0 items, 0 item states exported in 2ms.
2009-07-15 08:47:57,678 com.ibm.team.repository
2009-07-15 08:47:57,678 Contributor : 47 items, 116 item states exported in 669ms.
2009-07-15 08:47:57,679 ContributorDetails : 44 items, 96 item states exported in 852ms.
2009-07-15 08:47:57,679 LicenseAssignment : 61 items, 61 item states exported in 356ms.
2009-07-15 08:47:57,679 RepositoryRoot : 1 items, 8 item states exported in 132ms.
2009-07-15 08:47:57,679 ChangeEvent : 1008 items, 1008 item states exported in 7968ms.
2009-07-15 08:47:57,680 AuditableBaseline : 0 items, 0 item states exported in 2ms.
2009-07-15 08:47:57,680 LicenseType : 9 items, 9 item states exported in 44ms.
2009-07-15 08:47:57,680 com.ibm.team.apt
2009-07-15 08:47:57,680 IterationPlanRecord : 7 items, 19 item states exported in 84ms.
2009-07-15 08:47:57,681 com.ibm.team.scm
2009-07-15 08:47:57,681 ChangeHistory : 40 items, 40 item states exported in 266ms.
2009-07-15 08:47:57,681 ContributorSuspendRecord : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,681 Component : 9 items, 10 item states exported in 50ms.
2009-07-15 08:47:57,681 Suspended : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,682 Baseline : 11 items, 11 item states exported in 59ms.
2009-07-15 08:47:57,682 ChangeSet : 13 items, 28 item states exported in 286ms.
2009-07-15 08:47:57,682 HistoricBasis : 6 items, 6 item states exported in 30ms.
2009-07-15 08:47:57,682 BaselineSet : 7 items, 7 item states exported in 34ms.
2009-07-15 08:47:57,683 ComponentEntry : 29 items, 29 item states exported in 124ms.
2009-07-15 08:47:57,683 Configuration : 38 items, 38 item states exported in 333ms.
2009-07-15 08:47:57,683 Versionable : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,683 Workspace : 17 items, 17 item states exported in 96ms.
2009-07-15 08:47:57,684 FolderLastModifiedInWorkspaceEntry : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,684 RepositoryProgressMonitor : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,684 Folder : 41 items, 41 item states exported in 184ms.
2009-07-15 08:47:57,684 com.ibm.team.workitem.query
2009-07-15 08:47:57,685 QueryDescriptor : 49 items, 54 item states exported in 383ms.
2009-07-15 08:47:57,685 com.ibm.team.apt.resource
2009-07-15 08:47:57,685 WorkResourceDetails : 12 items, 13 item states exported in 70ms.
2009-07-15 08:47:57,685 ContributorResourceDetails : 6 items, 10 item states exported in 73ms.
2009-07-15 08:47:57,686 ContributorAbsence : 8 items, 9 item states exported in 49ms.
2009-07-15 08:47:57,686 com.ibm.team.dashboard
2009-07-15 08:47:57,686 Dashboard : 21 items, 21 item states exported in 171ms.
2009-07-15 08:47:57,686 DashboardContributorInfo : 29 items, 29 item states exported in 114ms.
2009-07-15 08:47:57,686 com.ibm.team.foundation.wiki
2009-07-15 08:47:57,687 WikiPage : 8 items, 36 item states exported in 247ms.
2009-07-15 08:47:57,687 WikiPageAttachment : 2 items, 2 item states exported in 27ms.
2009-07-15 08:47:57,687 com.ibm.team.build
2009-07-15 08:47:57,687 BuildResult : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,688 CompileContribution : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,688 BuildRequest : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,688 BuildEngine : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,688 BuildResultContributions : 0 items, 0 item states exported in 2ms.
2009-07-15 08:47:57,689 BuildActivities : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,689 CompilePackage : 0 items, 0 item states exported in 2ms.
2009-07-15 08:47:57,689 JUnitTestClass : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,689 BuildEngineActivity : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,690 JUnitTestSuiteContribution : 0 items, 0 item states exported in 2ms.
2009-07-15 08:47:57,690 BuildAverageData : 0 items, 0 item states exported in 2ms.
2009-07-15 08:47:57,690 BuildDefinition : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,690 com.ibm.team.analysis
2009-07-15 08:47:57,691 AnalysisContribution : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,691 com.ibm.team.process.simplefile
2009-07-15 08:47:57,691 SimpleFile : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,691 com.ibm.team.reports
2009-07-15 08:47:57,692 ReportDescriptor : 46 items, 46 item states exported in 9058ms.
2009-07-15 08:47:57,692 FolderDescriptor : 3 items, 3 item states exported in 15ms.
2009-07-15 08:47:57,692 ReportQueryDescriptor : 23 items, 23 item states exported in 82ms.
2009-07-15 08:47:57,692 com.ibm.team.links
2009-07-15 08:47:57,692 AuditableLink : 36 items, 36 item states exported in 201ms.
2009-07-15 08:47:57,693 com.ibm.team.scm.svn
2009-07-15 08:47:57,693 SvnRepository : 0 items, 0 item states exported in 1ms.
2009-07-15 08:47:57,693 com.ibm.team.filesystem
2009-07-15 08:47:57,693 FileItem : 205 items, 208 item states exported in 5511ms.
2009-07-15 08:47:57,694
2009-07-15 08:47:57,694 Export completed successfully.
2009-07-15 08:47:57,694 The user "ADMIN" has logged out of the database "//jazz212.hursley.ibm.com:19906/JAZZ:fullyMaterializeLobData=false;user=xxxxxxxx;password=xxxxxxxx;".



sam_sultana@uk.ibm-dot-com.no-spam.invalid (frit) wrote in news:h3kgrk$bng
$1@localhost.localdomain:

So, the question is, does anyone have a list of the repotools return
codes, or can tell us what a return code of '44' is, and do we have a
problem?

looking at the code...
- The app has 2 main rc (1=fail,0 =good)
- each command returns its own list of rc

For instance : isServerRunning...
// Return Codes
private static final int RC_SERVER_IS_NOT_RUNNING = 0;
private static final int RC_SERVER_IS_RUNNING = 1;

For Export, I do not see 44
// Error Return Codes
private static final int RC_TO_FILE_EXISTS = 1;
private static final int RC_SERVER_IS_RUNNING = 2;
private static final int RC_DATABASE_DOES_NOT_EXIST = 3;
private static final int RC_FAILED_TO_LOGIN = 4;
private static final int RC_COMPONENT_VERSION_MISMATCH = 5;
private static final int RC_FAILED_TO_EXPORT_DATA = 6;

it will return 0 if everything works fine

*********

ca you paste/attach the repotools.log generate ?

--
Christophe Elek
Jazz L3
IBM Software Group - Rational

permanent link
Christophe Elek (2.9k13021) | answered Jul 16 '09, 1:10 a.m.
JAZZ DEVELOPER
sam_sultana@uk.ibm-dot-com.no-spam.invalid (frit) wrote in news:h3kl7m$dg0
$2@localhost.localdomain:

it is not obivous
where it is getting the rc (1=fail,0 =good) let alone the rc '44'
that we see?!


This is in com.ibm.team.repotools.rcp.AbstractCommand and
com.ibm.team.repotools.rcp.internal.command.ExportCommand.

As an FYI, there was a discussion about RC here
https://jazz.net/jazz/web/projects/Rational%20Team%
20Concert#action=com.ibm.team.workitem.viewWorkItem&id=61713

If you can add
echo rc=%ERRORLEVEL% this will list the rc, I trust you it is 44, but then
we prove it :)

--
Christophe Elek
Jazz L3
IBM Software Group - Rational

permanent link
Christophe Elek (2.9k13021) | answered Jul 16 '09, 9:47 p.m.
JAZZ DEVELOPER
sam_sultana@uk.ibm-dot-com.no-spam.invalid (frit) wrote in news:h3kgrk$bng
$1@localhost.localdomain:

So, the question is, does anyone have a list of the repotools return
codes, or can tell us what a return code of '44' is, and do we have a
problem?

As a summary
- There is no list of return code for each command but we should create a
list (wi 87843)
- In 1.0, teh RC code where not consistent between command nor with
expected 0/1 rc code
- the 44 rc code for the export means success (rc=300 in the code)

--
Christophe Elek
Jazz L3
IBM Software Group - Rational

permanent link
Sam Sultana (5611311) | answered Jul 17 '09, 8:11 a.m.
Hi Christphe,

Thanks for your response and the pointer to the raised Defect.

But just to clariy anyone else...

Each of the Repotools functions issue different return code depending on whether they were successful or not.

In the case of the...

repotools -export toFile=/

... command the if it is successful it returns a return code of 300 and a return code of 301 if unsuccessful.

Now as we are running on AIX, and AIX can only issue a return code in the range 0 - 255, then return code issued is the modulas of the return code issued and the range of return codes permitted, therefore in this...

If the Return Code issued by the repotools -export is 300 then...

300 - 256 = 44

and if it was 301 then...

301 - 256 - 45

So in this instance if you get a '44' return code then it completed successfully.




sam_sultana@uk.ibm-dot-com.no-spam.invalid (frit) wrote in news:h3kgrk$bng
$1@localhost.localdomain:

So, the question is, does anyone have a list of the repotools return
codes, or can tell us what a return code of '44' is, and do we have a
problem?

As a summary
- There is no list of return code for each command but we should create a
list (wi 87843)
- In 1.0, teh RC code where not consistent between command nor with
expected 0/1 rc code
- the 44 rc code for the export means success (rc=300 in the code)

--
Christophe Elek
Jazz L3
IBM Software Group - Rational

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.