After upgrade RAM to 7.5.2.2 ramsession.put() is not working fine
Hi,
I had a recent upgrade of RAM from 7.5.1.1 to 7.5.2.2 version?
When creating an asset using Java API, I get the following error:
com.ibm.ram.common.data.exception.RAMRuntimeException: Expected End Of Central Directory Record signature! at com.ibm.ram.client.LocalArchiveFolderArtifact.getUnzippedFolder(LocalArchiveFolderArtifact.java:119)
at com.ibm.ram.client.LocalArchiveFolderArtifact.getChildren(LocalArchiveFolderArtifact.java:337) at com.ibm.ram.internal.client.util.ClientValidationManager.validateArtifactExistence(ClientValidationManager.java:477) at com.ibm.ram.internal.client.util.ClientValidationManager.doValidate(ClientValidationManager.java:466) at com.ibm.ram.common.util.ValidationManager.validate(ValidationManager.java:260) at com.ibm.ram.common.util.ValidationManager.validate(ValidationManager.java:201) at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3153) at com.ibm.ram.client.RAMSession.put(RAMSession.java:5093) at colruyt.jdp.commandline.cobol.CobolPublishNewImplementationAsset.createNewImplementationAssetVersion(CobolPublishNewImplementationAsset.java:441) Snippet used:
session.put(asset, new NullProgressMonitor());
I can't find what is the root cause for this? Can some let me know what is the problem and solution for the same?
Thanks and Regards,
|
2 answers
Hi,
According to the stack trace you post, I think there are exceptions wrapped by this RAMRuntimeException. Could you pls offer the completed exception stack trace? Also, it sound like the behavior works fine with 7511 API, did you try with 7511 API to verify? Thanks Comments
Vijay Reddy Gaddam
commented May 22 '15, 5:53 a.m.
Yes I tried with 7511, It was fine there |
Hi Lin,
complete stacktrace:
com.ibm.ram.common.data.exception.RAMRuntimeException: Expected End Of Central Directory Record signature! at com.ibm.ram.client.LocalArchiveFolderArtifact.getUnzippedFolder(LocalArchiveFolderArtifact.java:119) at com.ibm.ram.client.LocalArchiveFolderArtifact.getChildren(LocalArchiveFolderArtifact.java:337) at com.ibm.ram.internal.client.util.ClientValidationManager.validateArtifactExistence(ClientValidationManager.java:477) at com.ibm.ram.internal.client.util.ClientValidationManager.doValidate(ClientValidationManager.java:466) at com.ibm.ram.common.util.ValidationManager.validate(ValidationManager.java:260) at com.ibm.ram.common.util.ValidationManager.validate(ValidationManager.java:201) at com.ibm.ram.client.RAMSession.putAsset(RAMSession.java:3153) at com.ibm.ram.client.RAMSession.put(RAMSession.java:5093) at colruyt.jdp.commandline.cobol.CobolPublishNewImplementationAsset.createNewImplementationAssetVersion(CobolPublishNewImplementationAsset.java:441) at colruyt.jdp.commandline.cobol.CobolPublishNewImplementationAsset.run(CobolPublishNewImplementationAsset.java:197) at colruyt.jdp.commandline.Program.startup(Program.java:21) at colruyt.jdp.commandline.Main.run(Main.java:74) at colruyt.jdp.commandline.Main.main(Main.java:44) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) Caused by: java.util.zip.ZipException: Expected End Of Central Directory Record signature! at com.ibm.ram.io.zip.BasicZipFile.locateCentralDirectory(BasicZipFile.java:772) at com.ibm.ram.io.zip.BasicZipFile.mountCentralDirectory(BasicZipFile.java:461) at com.ibm.ram.io.zip.BasicZipFile.init(BasicZipFile.java:420) at com.ibm.ram.io.zip.BasicZipFile.<init>(BasicZipFile.java:207) at com.ibm.ram.client.LocalArchiveFolderArtifact.unzip(LocalArchiveFolderArtifact.java:490) at com.ibm.ram.client.LocalArchiveFolderArtifact.getUnzippedFolder(LocalArchiveFolderArtifact.java:108) ... 17 more |
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.