It's all about the answers!

Ask a question

Z-Mass import tool failing with Java Exception


Amit Saxena (3111516) | asked Nov 14 '11, 4:14 a.m.
I am trying to use Z Mass import tool to import the PDS from z/OS server . The command and mapping file i am using is as below.

/RTC/usr/lpp/jazz/v3.0/scmtools/eclipse> scm zimport --hlq GENTRAN --mapfile /u/amit/zOS-MassImport-zmappingFile.txt --projectarea GenTran -s GentranZ66Stream -r <jazz> -u <RTC> -P <RTC>


The dry run works fine but it fails on import. First time it hanged and second time it throws below error.

SEVERE: com.ibm.team.filesystem.client.FileSystemException: Error getting sharing descriptor
com.ibm.team.filesystem.client.FileSystemException: Error getting sharing path
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.getPathForShareRoot(SharingMetadata2.java:2575)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaStore.isShareRoot(CopyFileAreaStore.java:2106)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileArea.getShare(CopyFileArea.java:180)
at com.ibm.team.filesystem.client.internal.share.ShareVersionables.determineOverlaps(ShareVersionables.java:740)
at com.ibm.team.filesystem.client.internal.share.ShareOperation.buildOverlapRequest(ShareOperation.java:1113)
at com.ibm.team.filesystem.client.internal.share.ShareOperation.doShare(ShareOperation.java:983)
at com.ibm.team.filesystem.client.internal.share.ShareOperation.access$1(ShareOperation.java:886)
at com.ibm.team.filesystem.client.internal.share.ShareOperation$1.run(ShareOperation.java:845)
at com.ibm.team.filesystem.rcp.core.internal.resources.ResourceSharingManager$1.run(ResourceSharingManager.java:76)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at com.ibm.team.filesystem.rcp.core.internal.resources.ResourceSharingManager.runWithinFileSystemLock(ResourceSharingManager.java:88)
at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:164)
at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.runWithinFileSystemLock(FileSystemOperation.java:144)
at com.ibm.team.filesystem.client.internal.share.ShareOperation.execute(ShareOperation.java:852)
at com.ibm.team.filesystem.client.internal.operations.FileSystemOperation.run(FileSystemOperation.java:89)
at com.ibm.teamz.internal.zimport.cli.subcommand.ZImportCommand.doRun(ZImportCommand.java:423)
at com.ibm.teamz.internal.zimport.cli.subcommand.ZImportCommand.run(ZImportCommand.java:217)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:651)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.doStart(SubcommandLauncher.java:398)
at com.ibm.team.filesystem.cli.core.internal.SubcommandLauncher.run(SubcommandLauncher.java:175)
at com.ibm.team.filesystem.cli.core.internal.Application.start(Application.java:39)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Caused by: com.ibm.team.internal.repository.rcp.dbhm.DBHMException: com.ibm.team.internal.repository.rcp.dbhm.BadHeapException: Not a heap file
at com.ibm.team.internal.repository.rcp.dbhm.PersistentDiskBackedHashMap.newPersistentBTreeHeap(PersistentDiskBackedHashMap.java:120)
at com.ibm.team.internal.repository.rcp.dbhm.PersistentDiskBackedHashMap.initFromFile(PersistentDiskBackedHashMap.java:79)
at com.ibm.team.internal.repository.rcp.dbhm.PersistentDiskBackedHashMap.<init>(PersistentDiskBackedHashMap.java:72)
at com.ibm.team.filesystem.client.internal.SharingDescriptorsMap.<init>(SharingDescriptorsMap.java:28)
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.initDescriptors(SharingMetadata2.java:1786)
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.getPathForShareRoot(SharingMetadata2.java:2562)
... 33 more
Caused by: com.ibm.team.internal.repository.rcp.dbhm.BadHeapException: Not a heap file
at com.ibm.team.internal.repository.rcp.dbhm.PersistentBTreeHeap.init(PersistentBTreeHeap.java:70)
at com.ibm.team.internal.repository.rcp.dbhm.PersistentBTreeHeap.<init>(PersistentBTreeHeap.java:38)
at com.ibm.team.internal.repository.rcp.dbhm.PersistentDiskBackedHashMap.newPersistentBTreeHeap(PersistentDiskBackedHashMap.java:118)
... 38 more
Problem running 'zimport':
CRHTC0610E An error occurred while sharing the components

One answer



permanent link
John Riendeau (46626) | answered Nov 14 '11, 9:12 a.m.
JAZZ DEVELOPER
This indicates that your metadata has been corrupted. My guess is that you hard-stopped the first zimport execution that appeared to have hung; however, it hadn't really hung -- it was still in the middle of executing, and terminating it in the middle caused the metadata to become corrupted.

You could try changing the value of your SCM_WORK environment variable to another directory, or, if there's nothing in your current SCM_WORK that you need to save, just deleting that directory.

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.