It's all about the answers!

Ask a question

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


Álvaro Alonso (35127) | asked Nov 22 '19, 9:41 a.m.

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

One answer



permanent link
David Lafreniere (4.8k7) | answered Dec 02 '19, 12:10 p.m.
FORUM MODERATOR / JAZZ DEVELOPER
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

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.