Star Team support

jaschmitz
Posts: 2
Joined: Fri Aug 22, 2008 1:22 pm

Star Team support

Postby jaschmitz » Fri Aug 22, 2008 1:30 pm

Star Team support is claimed in the current version. However, there is absolutely no mention of it in the documentation. That makes it hard to know how to set the config file. Is it possible to get the help pages for the Star Team importer?

I am getting one exception reported to the command prompt. Here is a portion of the log file:

11:23:52,254 [main] INFO MainConfig:84 - ****************************************************************************
11:23:52,270 [main] INFO MainConfig:84 - *** Global options ***
11:23:52,270 [main] INFO MainConfig:84 - Mode = list files
11:23:52,270 [main] INFO MainConfig:84 - Import dump into svn = "true"
11:23:52,270 [main] INFO MainConfig:84 - Import dump only if svn repository exist = "false"
11:23:52,270 [main] INFO MainConfig:84 - Full dump path = "full_dump_%date%.txt"
11:23:52,270 [main] INFO MainConfig:84 - Incremental dump path = "incr_dump_%date%.txt"
11:23:52,270 [main] INFO MainConfig:84 - Incremental history path = "incr_history.txt"
11:23:52,270 [main] INFO MainConfig:84 - Save files list to = "files_20080821_112352.txt"
11:23:52,270 [main] INFO MainConfig:84 - Source provider's class = "org.polarion.svnimporter.stprovider.STProvider"
11:23:52,270 [main] INFO MainConfig:84 - Size limit for dump files (in MB): 400
11:23:52,270 [main] INFO STConfig:84 - *** StarTeam provider configuration ***
11:23:52,270 [main] INFO STConfig:84 - url = "<edited out>"
11:23:52,270 [main] INFO ProviderConfig:84 - svnimporter_user_name = "MediaCy"
11:23:52,270 [main] INFO ProviderConfig:84 - only_trunk = "false"
11:23:52,270 [main] INFO ProviderConfig:84 - trunk_path = "trunk"
11:23:52,270 [main] INFO ProviderConfig:84 - branches_path = "branches"
11:23:52,270 [main] INFO ProviderConfig:84 - tags_path = "tags"
11:23:52,270 [main] INFO ProviderConfig:84 - use_only_last_revision_content = "false"
11:23:52,270 [main] INFO ProviderConfig:84 - file_description_property_key = "description"
11:23:52,270 [main] INFO ProviderConfig:84 - use_file_copy = "false"
11:23:52,270 [main] INFO MainConfig:84 - ****************************************************************************
11:23:52,270 [main] INFO historyLogger:84 - **********************************************************************
11:23:52,270 [main] INFO historyLogger:84 - date: Aug 21, 2008 11:23:52 AM
11:23:52,270 [main] INFO historyLogger:84 - mode: list files
11:23:52,270 [main] INFO historyLogger:84 - src provider: class org.polarion.svnimporter.stprovider.STProvider
11:23:52,270 [main] INFO Main:84 - List files to files_20080821_112352.txt
11:23:52,395 [main] INFO historyLogger:84 - EXCEPTION CAUGHT: java.lang.ExceptionInInitializerError
at com.starbase.starteam.ClientContext.<init>(ClientContext.java:95)
at com.starbase.starteam.Server.<init>(Server.java:199)
at com.starbase.starteam.StarTeamFinder.openServer(StarTeamFinder.java:55)
at com.starbase.starteam.StarTeamFinder.openProject(StarTeamFinder.java:104)
at com.starbase.starteam.StarTeamFinder.openViewWithOverride(StarTeamFinder.java:142)
at com.starbase.starteam.StarTeamFinder.openView(StarTeamFinder.java:190)
at org.polarion.svnimporter.stprovider.STProvider.connect(STProvider.java:181)
at org.polarion.svnimporter.stprovider.STProvider.buildSTModel(STProvider.java:140)
at org.polarion.svnimporter.stprovider.STProvider.listFiles(STProvider.java:114)
at org.polarion.svnimporter.main.Main.listFiles(Main.java:158)
at org.polarion.svnimporter.main.Main.run(Main.java:80)
at org.polarion.svnimporter.main.Main.main(Main.java:49)
Caused by: com.starbase.starteam.SDKRuntimeException: The native library "StSDKNativeFileAccess_02.dll" was not found. Please verify that the StarTeam SDK is properly installed.
at com.starbase.util.NativeFileAccess.init(NativeFileAccess.java:36)
at com.starbase.util.NativeFileAccess.<init>(NativeFileAccess.java:24)
at com.starbase.util.Platform.<clinit>(Platform.java:77)
at com.starbase.starteam.ClientContext.<init>(ClientContext.java:95)
at com.starbase.starteam.Server.<init>(Server.java:199)
at com.starbase.starteam.StarTeamFinder.openServer(StarTeamFinder.java:55)
at com.starbase.starteam.StarTeamFinder.openProject(StarTeamFinder.java:104)
at com.starbase.starteam.StarTeamFinder.openViewWithOverride(StarTeamFinder.java:142)
at com.starbase.starteam.StarTeamFinder.openView(StarTeamFinder.java:190)
at org.polarion.svnimporter.stprovider.STProvider.connect(STProvider.java:181)
at org.polarion.svnimporter.stprovider.STProvider.buildSTModel(STProvider.java:140)
at org.polarion.svnimporter.stprovider.STProvider.listFiles(STProvider.java:114)
at org.polarion.svnimporter.main.Main.listFiles(Main.java:158)
at org.polarion.svnimporter.main.Main.run(Main.java:80)
at org.polarion.svnimporter.main.Main.main(Main.java:49)
Caused by: java.lang.UnsatisfiedLinkError: no StSDKNativeFileAccess_02 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.starbase.util.NativeFileAccess.init(NativeFileAccess.java:33)
at com.starbase.util.NativeFileAccess.<init>(NativeFileAccess.java:24)
at com.starbase.util.Platform.<clinit>(Platform.java:77)
at com.starbase.starteam.ClientContext.<init>(ClientContext.java:95)
at com.starbase.starteam.Server.<init>(Server.java:199)
at com.starbase.starteam.StarTeamFinder.openServer(StarTeamFinder.java:55)
at com.starbase.starteam.StarTeamFinder.openProject(StarTeamFinder.java:104)
at com.starbase.starteam.StarTeamFinder.openViewWithOverride(StarTeamFinder.java:142)
at com.starbase.starteam.StarTeamFinder.openView(StarTeamFinder.java:190)
at org.polarion.svnimporter.stprovider.STProvider.connect(STProvider.java:181)
at org.polarion.svnimporter.stprovider.STProvider.buildSTModel(STProvider.java:140)
at org.polarion.svnimporter.stprovider.STProvider.listFiles(STProvider.java:114)
at org.polarion.svnimporter.main.Main.listFiles(Main.java:158)
at org.polarion.svnimporter.main.Main.run(Main.java:80)
at org.polarion.svnimporter.main.Main.main(Main.java:49)

11:23:52,395 [main] DEBUG STProvider:80 - cleanup

This is a lot easier to read posted here than in the log file in Notepad, and it seems that I need more than just the StarTeam JAR file - can someone specify?

Thanks,
John

kobayaschi
Posts: 2
Joined: Fri Jan 09, 2009 7:07 pm

Re: Star Team support

Postby kobayaschi » Mon Jan 12, 2009 6:39 am

Hi!

Is this solved? 'cause i have the same issue.. I guess i missed something in config.proreties...

Thx.

jspencer
Posts: 2
Joined: Mon Aug 10, 2009 6:49 pm

Re: Star Team support

Postby jspencer » Mon Aug 10, 2009 7:12 pm

Does anyone know what is going on with this issue? I realize it may be a ST or Java problem....but any help on what is going on and ideas on how to fix?

jspencer
Posts: 2
Joined: Mon Aug 10, 2009 6:49 pm

Re: Star Team support

Postby jspencer » Mon Aug 10, 2009 8:50 pm

BTW, we are using 4.2.699 SP2 for the client. Assuming the server is some flavor of 4.x, and probably 4.2. I connected to our ST server, and the stSDKNtaiveFileAccess.dll existed somewhereunder STMP\???\ (maybe bin subfolder - ??), but no stsdknativefileaccess_02.dll. Right now, I think STv4.2 is just old school and not able to migrate due to SVNimport using later dlls (perhaps ST v5 or v8 has it). Unfortunately, Borland KB for StarTeam is locked down unless you pay them, so finding out what version of ST started including stsdk*_02.dll is difficult.

NickEntin
Posts: 472
Joined: Tue Oct 24, 2006 10:27 am
Location: Polarion Software GmbH, Stuttgart
Contact:

Re: Star Team support

Postby NickEntin » Thu Aug 20, 2009 1:03 pm

Hello,

this part of the importer was developed with use of StarTeam SDK 8.0.
AFAIR there was loading of the library with specified name (i.e. starteam80.jar, which exactly DLLs were loaded was already not so important). So if you downloaded SDK10.0 or so, you just need to rename the jar.
Unfortunately this importer was developed by one of our customers quite long ago and now it's quite hard to figure out what could be wrong with DLLs or what version is compatible with actual versions of ST...

Best regards,
Nick

lewisdavidcole
Posts: 1
Joined: Tue Apr 27, 2010 8:52 pm

Re: Star Team support

Postby lewisdavidcole » Tue Apr 27, 2010 8:59 pm

The problem is that the dll it is looking for is not in the java library path.
You can easily resolve the issue by setting the java.library.path variable inside the run.bat file.
Remember that you needed to copy the starteam80.jar file from you starteam installations lib directory.
Mine is located at : C:\Program Files\borland\StarTeam SDK 2005 R2\Lib
In the same directory you can find the missing dll file. So all that you need to do is add this directory as your java library path.

Here is what my run.bat file now looks like. Notice the addition of the -Djava.library.path=XXX where XXX is the StarTeam\lib folder where the dll file is located:

set JAVA_OPTS=-Xmx192m
java %JAVA_OPTS% -Djava.library.path="C:\Documents and Settings\DCole1\My Documents\Downloads\SVN\SVN-Importer\lib" -jar svnimporter.jar %1 %2 %3

Hope that helps someone and good luck!
Dave


Return to “Polarion SVN Importer (Repository Converter)”

Who is online

Users browsing this forum: No registered users and 2 guests