Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

java.lang.NoClassDefFoundError: com.ibm.team.filesystem.common.IFileItem

Hello, im trying to get the name of a file since server side.

I get this error java.lang.NoClassDefFoundError: com.ibm.team.filesystem.common.IFileIte

IFileItem f = (IFileItem) scmService.fetchState(chngObj, null, null);


Do you know another form to get the name of a file.
I have acces to the change set.

Thanks

0 votes



One answer

Permanent link
The 'Filesystem' layer depends on the 'SCM' layer but not the other way around.
I.e. IScmService lives in 'com.ibm.team.scm.common' and the IFileItem which you are trying to cast to lives in 'com.ibm.team.filesystem.common', which it knows nothing about.

Fortunately you can just cast to an IVersionable instead of an IFileItem, which has a .getName() method

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Nov 22 '19, 9:41 a.m.

Question was seen: 1,714 times

Last updated: Dec 02 '19, 12:10 p.m.

Confirmation Cancel Confirm