Starteam-->SVN(svnimporter)

Moderators: chyliko, engeleb, NickEntin, ldornbusch

Starteam-->SVN(svnimporter)

Postby tony.leng » Wed May 26, 2010 1:43 pm

HI all

I get a below error,when I migrate a repo from Starteam to SVN.
[main] ERROR MainConfig:100 - can't create new instance of provider class "or
g.polarion.svnimporter.stprovider.STProvider"
java.lang.ClassNotFoundException: org.polarion.svnimporter.stprovider.STProvider
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)

#################################################################################
########################## STAR TEAM PROVIDER CONFIGURATION #####################
#################################################################################
st.class=org.polarion.svnimporter.stprovider.STProvider
### NOTE: The Star Team provider requires the external jar file to access the
### repository. The file has name starteam80.jar and can be found in the Star
### Team installation folder. Copy this jar into the importer lib folder, before
### using the Star Team provider.

st.url=usename:passwd@192.168.x.x:49201/opt/starbaseserver/
#st.url=username:password@server:port/Project/View
#st.url=username:password@server:port/Project
st.tempdir=D:/temp/starteam/temp

please suggest
thanks
tony.leng
 
Posts: 9
Joined: Wed May 26, 2010 12:59 pm

Re: Starteam-->SVN(svnimporter)

Postby kencorbin » Thu May 27, 2010 5:19 pm

Well, that is odd. The error indicates that it cant find the STprovider class. Which is nicely bundled in th stprovider.jar file in the lib subdirectory. Which is coded as being in the classpath in the jar manifest.

Ah, but that will only work if you run svnimporter from the directory where it was installed. I'll bet you are trying to run it from somewhere else.

Good luck,
-Ken
kencorbin
 
Posts: 132
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Starteam-->SVN(svnimporter)

Postby tony.leng » Fri May 28, 2010 2:48 am

hi ken
Thank you for your answer.
tony.leng
 
Posts: 9
Joined: Wed May 26, 2010 12:59 pm

Re: Starteam-->SVN(svnimporter)

Postby tony.leng » Mon May 31, 2010 1:26 am

HI ken
I have another question,"st.url=usename:passwd@192.168.x.x:49201/opt/starbaseserver/"
usename and passwd is database username?


Thank you for your answer

tony
tony.leng
 
Posts: 9
Joined: Wed May 26, 2010 12:59 pm

Re: Starteam-->SVN(svnimporter)

Postby kencorbin » Fri Jun 04, 2010 4:04 pm

Hi Tony,

I'm not at all clear what question is being asked? If there is a database supporting the StarTeam server, I can assure you that the importer has no business accessing it directly. We use the StartTeam published API which talk to the StarTeam server which may very well be using a database. But any database user/password information would be coded into the servers configuration tables. The importer has no need of it.

The importer does need a valid StarTeam account and credential information. That is probably what is being configured.

Best regards,
-Ken
kencorbin
 
Posts: 132
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Starteam-->SVN(svnimporter)

Postby tony.leng » Wed Jun 09, 2010 10:13 am

HI Ken
I tried starteam administrator account,get a below error
Exception in thread "main" java.lang.NullPointerException
at org.polarion.svnimporter.stprovider.STProvider.disconnect(STProvider.java:196)
at org.polarion.svnimporter.stprovider.STProvider.cleanup(STProvider.java:252)
at org.polarion.svnimporter.main.Main.run(Main.java:131)
at org.polarion.svnimporter.main.Main.main(Main.java:49)

view the svnimporter.log file:
23:04:54,355 [main] INFO historyLogger:84 - date: Jun 3, 2010 11:04:54 PM
23:04:54,355 [main] INFO historyLogger:84 - mode: create full dump
23:04:54,355 [main] INFO historyLogger:84 - src provider: class org.polarion.svnimporter.stprovider.STProvider
23:04:54,356 [main] INFO historyLogger:84 - creating full svn model...
23:05:06,262 [main] INFO historyLogger:84 - EXCEPTION CAUGHT: java.lang.NullPointerException
at com.starbase.starteam.StarTeamFinder.openViewWithOverride(StarTeamFinder.java:98)
at com.starbase.starteam.StarTeamFinder.openFolderWithOverride(StarTeamFinder.java:151)
at com.starbase.starteam.StarTeamFinder.openFolder(StarTeamFinder.java:172)
at org.polarion.svnimporter.stprovider.STProvider.connect(STProvider.java:179)
at org.polarion.svnimporter.stprovider.STProvider.buildSvnModel(STProvider.java:125)
at org.polarion.svnimporter.main.Main.buildFullSvnModel(Main.java:147)
at org.polarion.svnimporter.main.Main.run(Main.java:82)
at org.polarion.svnimporter.main.Main.main(Main.java:49)

svnimporter has login starteamserver I can see from the starteam clien , but it quickly logoff.
I starteam version is 5.0.

Thanks

Tony
tony.leng
 
Posts: 9
Joined: Wed May 26, 2010 12:59 pm

Re: Starteam-->SVN(svnimporter)

Postby kencorbin » Wed Jun 09, 2010 4:19 pm

Not a lot I can tell you. the starteam API through a null pointer exception while trying to open the folder identified by the "st.url" configuration setting. You might try seeing what happens when you open that folder through the Starteam client.

I wouldn't use the administrative user for this. The importer needs a low level starteam account that has read access to the projects you are trying to migrate. It won't attempt to change anything or do any kind of administrative functions whatsoever. It is possible, though unlikely, that the administrative user is not allowed to do some of the things the importer needs to do.

Good luck,
-Ken
kencorbin
 
Posts: 132
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Starteam-->SVN(svnimporter)

Postby tony.leng » Mon Jun 28, 2010 10:04 am

svnimporter can login starteamserver , but it quickly logoff.
starteam server log:
251 Sun Jun 27 22:37:19 2010 M User Tony Leng logged on from workstation TONY-C819B9F5B6
252 Sun Jun 27 22:37:20 2010 M User Tony Leng logged off
tony.leng
 
Posts: 9
Joined: Wed May 26, 2010 12:59 pm

Re: Starteam-->SVN(svnimporter)

Postby kencorbin » Mon Jun 28, 2010 4:02 pm

So what happens when you try to open that URL with the normal GU Starteam client?
kencorbin
 
Posts: 132
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Starteam-->SVN(svnimporter)

Postby tony.leng » Tue Jun 29, 2010 2:46 am

use normal starteam client login,have the same problem, but the successful logon.

starteam server log:
255 Mon Jun 28 19:12:57 2010 M User Tony Leng logged on from workstation TONY
256 Mon Jun 28 19:12:58 2010 M User Tony Leng logged off
257 Mon Jun 28 19:13:02 2010 M User Tony Leng logged on from workstation TONY
tony.leng
 
Posts: 9
Joined: Wed May 26, 2010 12:59 pm

Re: Starteam-->SVN(svnimporter)

Postby kencorbin » Tue Jul 06, 2010 3:19 pm

Not sure I understand what you mean by "having the same problem"

Quick recap. The svnimporter is trying to invoke the Starteam API to open a particular folder URL, and the API is throwing a null pointer exception.
When you try to use the regular Starteam GUI client to open that same folder, does it throw the same null pointer exception?

If yes, then you have some kind of problem with the Starteam software and/or a corrupt repository. If you still have vendor support for the product, asking them why the GUI client is throwing that exception would be a good place to start.

If no, then I would double check to make sure that the svnimporter is using the same starteamXXXX.jar file that the starteam GUI client is. The importer is hard coded to use the lib/starteam80.jar file. You have to copy the appropriate starteamXX.jar file from your client location to the lib directory and rename it.

Good luck,
-Ken
kencorbin
 
Posts: 132
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Starteam-->SVN(svnimporter)

Postby tony.leng » Fri Jul 09, 2010 8:06 am

HI ken

starteam GUI client open same folder no have null pointer exception.

I using starteam 5.0 ,starteam client directory not found starteamXXX.jar, but in the StarGate SDK /lib directory to find the starteam-sdk.jar, rename this file to starteam80.jar.Still null pointer exception.



tony
tony.leng
 
Posts: 9
Joined: Wed May 26, 2010 12:59 pm

Re: Starteam-->SVN(svnimporter)

Postby kencorbin » Fri Jul 09, 2010 2:36 pm

This is very odd. The 2005 version is old enough that it shouldn't be all that incompatible with what we have been using. There just has to be a compatible jar file somewhere in the client installation.

Do you have a system that has only the client installed, no server or SDK software? If not can you make one?

Then search the client install directories for any *.jar files and let me know what you find.

Good luck,
-Ken
kencorbin
 
Posts: 132
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Re: Starteam-->SVN(svnimporter)

Postby tony.leng » Mon Jul 12, 2010 3:03 am

HI ken
I search the client install directories not find any *. jar file.
bash-2.03# starbaseserver -version
Starbase ServerVersion: 5.0 Build number: 5.0.144
tony.leng
 
Posts: 9
Joined: Wed May 26, 2010 12:59 pm

Re: Starteam-->SVN(svnimporter)

Postby kencorbin » Mon Jul 12, 2010 4:17 am

It looks like you are searching the starteam server system, which is not what you want. The client is generally named "starteam" or "stcmd" and will be on systems where your users actually use Starteam. I downloaded the generic version of Borlands next to latest version of starteam and found the file you want on starteam-en-11.0.0-java/lib/starteam110.jar
kencorbin
 
Posts: 132
Joined: Fri Nov 16, 2007 10:30 pm
Location: Corvallis, OR

Next

Return to Polarion SVN Importer (Repository Converter)

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron