MKS Import Problem "Invalid File Path"

thomas.keller
Posts: 2
Joined: Fri Feb 13, 2015 2:39 pm

MKS Import Problem "Invalid File Path"

Postby thomas.keller » Fri Feb 13, 2015 2:58 pm

Hi all!

I'm using the SVN importer version 1.4 to import an MKS 2009 repository via API. This is my configuration (relevant parts only):

Code: Select all

srcprovider=mks
import_dump_into_svn=yes
#existing_svnrepos=yes
clear_svn_parent_dir=yes
use_only_last_revision_content=no
file_description_property_key=description
use_file_copy=no
full.dump.file=SVN-%0%-Image.%date%%1%.dmp
incr.dump.file=incr_dump_%date%%0%.dmp
incr.history.file=incr_history.txt
list.files.to=files_%date%.txt
dump.file.sizelimit.mb=400
trunk_path=trunk
branches_path=branches
tags_path=tags
svnimporter_user_name=SvnImporter
only_trunk=no
svnadmin.executable=C:\Migration\Apache-Subversion-1.8.11\bin\svnadmin.exe
svnadmin.repository_path=C:\Migration\SVN
svnadmin.parent_dir=.
svnadmin.tempdir=c:/temp/local
svnclient.executable=C:\Migration\Apache-Subversion-1.8.11\bin\svn.exe
svnadmin.verbose_exec=yes
#svnadmin.import_timeout=1800000
svnadmin.path_not_exist_signature=non-existent in that revision
#svnadmin.path_not_exist_signature=existiert nicht in dieser Revision

mks.class=org.polarion.svnimporter.mksprovider.MksProvider
mks.executable=C:/Program Files (x86)/MKS/IntegrityClient/bin/si.exe
mks.log.dateformat=dd.MM.yyyy HH:mm:ss
mks.log.datelocale=de
mks.log.encoding=ibm866
mks.tempdir=c:/temp/local
mks.cache=c:/temp/local/cache
mks.verbose_exec=no
mks.RegraftRevisions=yes
mks.NoAutoLoadRootProjects=no
mks.NoAutoPromoteToRoot=yes
mks.changePackageIDToMap=MKSmapJIRA.csv
mks.svn.RepoURLPrefix=file:///c/Migration/SVN
mks.RootProjects=rootProjects.txt
mks.projects=projectsToMigrate.txt
mks.tag.option=label_with_number
mks.orphan.branches=yes
mks.exec.limit=200
mks.exec.continue=no
mks.exec.delay=15000
mks.root.dir=
mks.no.split.branch.on.delete=yes
mks.user=<...>
mks.password=<...>
mks.hostname=<...>
mks.port=7001
mks.API.MajorVersion=4
mks.API.MinorVersion=10
mks.API.Retries=10
mks.Use.API=yes


Now the importer seems to run over the project's history, but when it comes to committing the gathered info to my local repository, it immediately exits with

Code: Select all

org.polarion.svnimporter.mksprovider.MksException: java.io.FileNotFoundException: c:\temp\local\tmp\.project (File not found)


probably because of an earlier "Invalid file path" notice from MKS. (.project is a Eclipse project file that is a member of the MKS repository)

What is weird is that the directories beneath c:\temp are populated, but do not contain any files. Here is the relevant snippet from the log file:

Code: Select all

15:31:42,297 [main]  INFO MksSubproject:84 - MKS model finalized for Project path:/projects/<...>/project.pj State:MKS_MODEL_DONE Sub-State:COMMIT_PROCESSING_COMPLETE
15:31:42,297 [main]  INFO Model:84 - Summary:
15:31:42,297 [main]  INFO Model:84 -  Files: 4
15:31:42,297 [main]  INFO Model:84 -  Revisions: 7
15:31:42,297 [main]  INFO Model:84 -  Commits: 11
15:31:42,297 [main]  INFO MksProvider:84 - SVN Translate
15:31:42,312 [main]  INFO FileCache:84 - baseDir=c:\temp\local\cache
15:31:42,315 [main]  INFO MksProvider:84 - SVN Translating /projects/<...>/project.pj
...more entries like the above...
15:31:42,323 [main]  INFO MksProvider:84 - Svn model has been created for /projects/<...>/project.pj
15:31:42,323 [main]  INFO MksProvider:84 - total number of revisions in svn model: 44
15:31:42,323 [main]  INFO MksProvider:84 - Generating svn repository MyConvertedRepository
15:31:42,641 [main] FATAL MksContentRetriever:104 - Invalid file path
15:31:42,641 [main] FATAL MksContentRetriever:104 - getRevisionFileAPI: MKS API Exception see last logged message. MKS Exception id:null
15:31:42,641 [main] FATAL MksContentRetriever:104 - getRevisionFileAPI: Mks API Execution Failures
15:31:42,643 [main] ERROR Main:96 - EXCEPTION CAUGHT: org.polarion.svnimporter.mksprovider.MksException: java.io.FileNotFoundException: c:\temp\local\tmp\.project (Das System kann die angegebene Datei nicht finden)
   at org.polarion.svnimporter.mksprovider.internal.MksContentRetriever.getContent(MksContentRetriever.java:110)
   at org.polarion.svnimporter.svnprovider.internal.actions.SvnAddFile.calculateLengthAndChecksum(SvnAddFile.java:104)
   at org.polarion.svnimporter.svnprovider.internal.actions.SvnAddFile.dump(SvnAddFile.java:83)
   at org.polarion.svnimporter.svnprovider.internal.SvnRevision.dump(SvnRevision.java:125)
   at org.polarion.svnimporter.svnprovider.SvnDump.dump(SvnDump.java:218)
   at org.polarion.svnimporter.svnprovider.SvnDump.dump(SvnDump.java:233)
   at org.polarion.svnimporter.mksprovider.MksProvider.svnDump(MksProvider.java:2016)
   at org.polarion.svnimporter.mksprovider.MksProvider.svnTranslate(MksProvider.java:1984)
   at org.polarion.svnimporter.mksprovider.MksProvider.processPostToDo(MksProvider.java:1888)
   at org.polarion.svnimporter.mksprovider.MksProvider.multiRepoDump(MksProvider.java:1859)
   at org.polarion.svnimporter.main.Main.multiRepoDump(Main.java:201)
   at org.polarion.svnimporter.main.Main.run(Main.java:92)
   at org.polarion.svnimporter.main.Main.main(Main.java:53)
Caused by: java.io.FileNotFoundException: c:\temp\local\tmp\.project (Das System kann die angegebene Datei nicht finden)
   at java.io.FileInputStream.open(Native Method)
   at java.io.FileInputStream.<init>(Unknown Source)
   at org.polarion.svnimporter.common.FileCache.put(FileCache.java:85)
   at org.polarion.svnimporter.mksprovider.internal.MksContentRetriever.getContent(MksContentRetriever.java:106)
   at org.polarion.svnimporter.svnprovider.internal.actions.SvnAddFile.calculateLengthAndChecksum(SvnAddFile.java:104)
   at org.polarion.svnimporter.svnprovider.internal.actions.SvnAddFile.dump(SvnAddFile.java:83)
   at org.polarion.svnimporter.svnprovider.internal.SvnRevision.dump(SvnRevision.java:125)
   at org.polarion.svnimporter.svnprovider.SvnDump.dump(SvnDump.java:218)
   at org.polarion.svnimporter.svnprovider.SvnDump.dump(SvnDump.java:233)
   at org.polarion.svnimporter.mksprovider.MksProvider.svnDump(MksProvider.java:2016)
   at org.polarion.svnimporter.mksprovider.MksProvider.svnTranslate(MksProvider.java:1984)
   at org.polarion.svnimporter.mksprovider.MksProvider.processPostToDo(MksProvider.java:1888)
   at org.polarion.svnimporter.mksprovider.MksProvider.multiRepoDump(MksProvider.java:1859)
   at org.polarion.svnimporter.main.Main.multiRepoDump(Main.java:201)
   at org.polarion.svnimporter.main.Main.run(Main.java:92)
   at org.polarion.svnimporter.main.Main.main(Main.java:53)

15:31:42,644 [main]  INFO historyLogger:84 - duration: 37 seconds


Any hints how I could resolve this issue?

Thanks in advance,
Thomas.

thomas.keller
Posts: 2
Joined: Fri Feb 13, 2015 2:39 pm

Re: MKS Import Problem "Invalid File Path"

Postby thomas.keller » Tue Mar 31, 2015 7:06 am

Has anybody a small hint how I could continue...?

rounakpr
Posts: 1
Joined: Mon Jul 18, 2016 11:49 am

Re: MKS Import Problem "Invalid File Path"

Postby rounakpr » Mon Jul 18, 2016 1:42 pm

Hello Thomas,

Did you get any success with this, i am also stuck in same situation and looking for some quick help.


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 2 guests