It's all about the answers!

Ask a question

ISandbox.allShare() exception


0
1
Michele Pegoraro (1.8k12114102) | asked Aug 26 '11, 4:48 a.m.
Hi,
I'm having an exception using ISandbox.allShares() on linux (the operation is performed by buildengine) which I don't have on windows:

[Versioning] java.lang.IllegalStateException: More than 1 metadata storage manager registered for storage type com.ibm.team.filesystem.hfs

[Versioning] at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.getMetadataFactory(CopyFileAreaManager.java:85)
[Versioning] at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.copyFileAreaExists(CopyFileAreaManager.java:140)
[Versioning] at com.ibm.team.filesystem.client.internal.SharingManager.allShares(SharingManager.java:223)
[Versioning] at com.ibm.team.filesystem.client.internal.Sandbox.allShares(Sandbox.java:60)
[Versioning] at it.nexen.antVersioning.Versioning.CheckIn(Versioning.java:232)
[Versioning] at it.nexen.antVersioning.Versioning.execute(Versioning.java:168)
[Versioning] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
[Versioning] at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
[Versioning] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
[Versioning] at java.lang.reflect.Method.invoke(Method.java:611)
[Versioning] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[Versioning] at org.apache.tools.ant.Task.perform(Task.java:348)
[Versioning] at org.apache.tools.ant.Target.execute(Target.java:357)
[Versioning] at org.apache.tools.ant.Target.performTasks(Target.java:385)
[Versioning] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
[Versioning] at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[Versioning] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[Versioning] at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
[Versioning] at org.apache.tools.ant.Main.runBuild(Main.java:758)
[Versioning] at org.apache.tools.ant.Main.startAnt(Main.java:217)
[Versioning] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
[Versioning] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


Does anybody seen this error before?

Accepted answer


permanent link
SEC Servizi (97122752) | answered Apr 10 '15, 11:41 a.m.
 We got the same exception:
java.lang.IllegalStateException: More than 1 metadata storage manager registered for storage type com.ibm.team.filesystem.hfs
	
when the Eclipse project's build classpath had a dupe reference to the library "com.ibm.team.filesystem.client_3.2.101.v20140505_2247.jar" (e.g., from Build Engine Libraries and Plain Java Client Libraries). It appears we could reference only one of these JARs at once.
Cheers.
Michele Pegoraro selected this answer as the correct answer

Comments
Michele Pegoraro commented Apr 10 '15, 11:46 a.m.

 Yes, is correct. The error happens when we use plain api and toolbox on the same build definition.

One other answer



permanent link
Michele Pegoraro (1.8k12114102) | answered May 15 '12, 1:15 p.m.
Any news on this exception?

Thanks,
Michele.

Your answer


Register or to post your answer.