Quantcast
Viewing all articles
Browse latest Browse all 5661

Error when retrieving a universe on remote CMS

Hello,

 

I am building a small Java tool to retrieve universe from a CMS and store them locally to explore them (tables, folder, objects...).

 

I have been following the examples, and am doing the following :

 

SlContext context = SlContext.create();
IEnterpriseSession ieOrig = CrystalEnterprise.getSessionMgr().logon(userName, password, cmsName, authType);
context.getService(CmsSessionService.class).setSession(ieOrig);
CmsResourceService service = context.getService(CmsResourceService.class);
String localPath = System.getProperty("user.home")+"/workInProgress/"+datetime+"/";
File output = new File(localPath);
if (!output.exists())     output.mkdirs();
String universePath = service.retrieveUniverse("/Universes/UniverseTest.unx",  localPath, true);

 

But, I have always the same problem, on any universe I try to retrieve :

 

com.sap.tools.commons.exception.NestedException: C:\Windows\ConnectionTest.cns (Access is denied)

  at com.businessobjects.mds.repository.metadata.RepoArchive.unzip(RepoArchive.java:508)

  at com.businessobjects.mds.repository.metadata.MetaDataRepository.unzip(MetaDataRepository.java:543)

  at com.businessobjects.mds.publishing.internal.services.DefaultPublishingService.extractPublishedResource(DefaultPublishingService.java:561)

  at com.sap.sl.sdk.authoring.cms.internal.services.CmsRetrieveService.retrieveUniverseLocally(CmsRetrieveService.java:164)

  at com.sap.sl.sdk.authoring.cms.internal.services.CmsRetrieveService.retrieveUniverse(CmsRetrieveService.java:100)

  at com.sap.sl.sdk.authoring.cms.internal.services.CmsResourceServiceImpl.retrieveUniverse(CmsResourceServiceImpl.java:251)

  at com.landsbankinn.unxextractor.ExtractFromUniverse.run(ExtractFromUniverse.java:293)

  at java.lang.Thread.run(Thread.java:745)

Caused by: java.io.FileNotFoundException: C:\Windows\ConnectionTest.cns (Access is denied)

  at java.io.FileOutputStream.open(Native Method)

  at java.io.FileOutputStream.<init>(FileOutputStream.java:221)

  at java.io.FileOutputStream.<init>(FileOutputStream.java:171)

  at com.businessobjects.mds.resource.archive.Archive.unzip(Archive.java:388)

  at com.businessobjects.mds.repository.metadata.RepoArchive.unzip(RepoArchive.java:505)

  ... 7 more

 

 

There are absolutely no reason it tries to store the universe in C:\Windows!

The localPath variable is correct (C:/Users/MyUser/workInProgress/) and I have adequate rights to create objects in this folder (The output.mkdirs() step is completely OK, proving I have write accesses).

 

Any ideas?

 

Client and platform Versions : 4.1 SP3p4

Java 7


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>