Skip navigation
sigget
Currently Being Moderated

Unable to create documents in CMIS repositories

Oct 10, 2011 7:07 AM

Tags: #alfresco #cmis

Hi,

 

I'm developing a CMIS repository and am unable to create documents in it using Adobe Drive. I have tried both version 2 and 3. I have also tried it against the public Alfresco CMIS server at http://cmis.alfresco.com/cmisatom (http://cmis.alfresco.com/) and I see the same problem there.

 

I am using Adobe Drive for Mac, have not tested it on Windows.

 

I am able to create and delete folders, read documents but cannot create files either by saving from a program or with command line (echo 'test' > test.xml).

 

My implementation is based on Apache Chemistry latest trunk. Running the CMIS workbench which is part of Apache Chemistry I am able to create documents on both my own server implementation and the public Alfresco server.

 

When testing it now against Alfresco public server running Alfresco 4.x i see the folllowing in the logs:

 

This is from the system log:

 

10/10/11 3:37:15 PMmds[27](Error) FMW: FMW FSE_CREATE_DIR uid/gid -1 /Volumes/Main Repository/00/(A Document Being Saved By TextEdit)
10/10/11 3:37:23 PMmds[27](Error) FMW: FMW FSE_CONTENT_MODIFIED uid/gid -1 /Volumes/Main Repository/00/(A Document Being Saved By TextEdit)/TestDocument.txt
10/10/11 3:37:23 PMmds[27](Error) FMW: FMW FSE_CHOWN uid/gid -1 /Volumes/Main Repository/00/(A Document Being Saved By TextEdit)/TestDocument.txt
10/10/11 3:37:23 PMmds[27](Error) FMW: FMW FSE_XATTR_MODIFIED uid/gid -1 /Volumes/Main Repository/00/(A Document Being Saved By TextEdit)/TestDocument.txt
10/10/11 3:37:23 PMmds[27](Error) FMW: FMW FSE_STAT_CHANGED uid/gid -1 /Volumes/Main Repository/00/(A Document Being Saved By TextEdit)/TestDocument.txt
10/10/11 3:37:27 PMmds[27](Error) FMW: FMW FSE_RENAME(2) uid/gid -1 /Volumes/Main Repository/00/TestDocument.txt

 

This is from CS5ServiceManager_java.log:

 

2011/10/10 15:36:54,628 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/TestDocument.txt

2011/10/10 15:36:55,895 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/TestDocument.txt

2011/10/10 15:36:56,768 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/TestDocument.txt

2011/10/10 15:36:57,651 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /.TemporaryItems

2011/10/10 15:36:58,530 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /.TemporaryItems

2011/10/10 15:36:59,417 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /.TemporaryItems

2011/10/10 15:37:07,697 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /.TemporaryItems

2011/10/10 15:37:07,697 [ConnectionHandler-kernel] ERROR AbstractHandler - java.lang.NullPointerException

com.adobe.drive.biz.filesystem.FileSystemException: java.lang.NullPointerException

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.run(FileSys temService.java:1680)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.create(File SystemService.java:867)

    at com.adobe.drive.internal.ncomm.filesystem.CreateHandler.handleRequest (CreateHandler.java:69)

    at com.adobe.drive.internal.ncomm.filesystem.AbstractHandler$1.call(Abst ractHandler.java:204)

    at com.adobe.drive.model.context.Context.run(Context.java:88)

    at com.adobe.drive.internal.ncomm.filesystem.AbstractHandler.handleWithC ontext(AbstractHandler.java:200)

    at com.adobe.drive.internal.ncomm.filesystem.AbstractHandler.handle(Abst ractHandler.java:66)

    at com.adobe.csi.internal.ncomm.NCommDelegate.execute(NCommDelegate.java :107)

    at com.adobe.versioncue.internal.nativecomm.host.Host.execute(Host.java: 200)

    at com.adobe.versioncue.internal.nativecomm.host.ConnectionHandler.handl eRequest(ConnectionHandler.java:162)

    at com.adobe.versioncue.internal.nativecomm.host.ConnectionHandler.run(C onnectionHandler.java:81)

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

Caused by: java.lang.NullPointerException

    at com.adobe.drive.internal.biz.filesystem.FileSystemService$10.execute( FileSystemService.java:892)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService$10.execute( FileSystemService.java:868)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService$FSCallable. run(FileSystemService.java:1767)

    at com.adobe.drive.data.internal.persistence.PersistenceRunner.run(Persi stenceRunner.java:119)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.run(FileSys temService.java:1666)

    ... 11 more

2011/10/10 15:37:08,577 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/(A Document Being Saved By TextEdit)

2011/10/10 15:37:09,469 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/(A Document Being Saved By TextEdit)

2011/10/10 15:37:12,275 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/(A Document Being Saved By TextEdit)

2011/10/10 15:37:19,023 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/(A Document Being Saved By TextEdit)/TestDocument.txt

2011/10/10 15:37:19,910 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/(A Document Being Saved By TextEdit)/TestDocument.txt

2011/10/10 15:37:20,826 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/(A Document Being Saved By TextEdit)/TestDocument.txt

2011/10/10 15:37:23,556 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/(A Document Being Saved By TextEdit)/TestDocument.txt

2011/10/10 15:37:24,648 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/TestDocument.txt

2011/10/10 15:37:25,555 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/TestDocument.txt

2011/10/10 15:37:27,157 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /00/TestDocument.txt

2011/10/10 15:37:29,184 [ConnectionHandler-kernel] ERROR AbstractHandler - com.adobe.drive.data.model.DriveException: com.adobe.drive.connector.api.exception.RemoteIOException: Failed to get content http://cmis.alfresco.com/cmisatom/371554cd-ac06-40ba-98b8-e6b60275cca7 /content/t.png?id=workspace%3A%2F%2FSpacesStore%2Fceab2e4d-0334-4c31-8 d88-069b880d9522%3B1.0

com.adobe.drive.biz.filesystem.FileSystemException: com.adobe.drive.data.model.DriveException: com.adobe.drive.connector.api.exception.RemoteIOException: Failed to get content http://cmis.alfresco.com/cmisatom/371554cd-ac06-40ba-98b8-e6b60275cca7 /content/t.png?id=workspace%3A%2F%2FSpacesStore%2Fceab2e4d-0334-4c31-8 d88-069b880d9522%3B1.0

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.wrapExcepti on(FileSystemService.java:1629)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.readPreviou sVersionContent(FileSystemService.java:729)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.read(FileSy stemService.java:755)

    at com.adobe.drive.internal.ncomm.filesystem.ReadHandler.handleRequest(R eadHandler.java:72)

    at com.adobe.drive.internal.ncomm.filesystem.AbstractHandler$1.call(Abst ractHandler.java:204)

    at com.adobe.drive.model.context.Context.run(Context.java:88)

    at com.adobe.drive.internal.ncomm.filesystem.AbstractHandler.handleWithC ontext(AbstractHandler.java:200)

    at com.adobe.drive.internal.ncomm.filesystem.AbstractHandler.handle(Abst ractHandler.java:66)

    at com.adobe.csi.internal.ncomm.NCommDelegate.execute(NCommDelegate.java :107)

    at com.adobe.versioncue.internal.nativecomm.host.Host.execute(Host.java: 200)

    at com.adobe.versioncue.internal.nativecomm.host.ConnectionHandler.handl eRequest(ConnectionHandler.java:162)

    at com.adobe.versioncue.internal.nativecomm.host.ConnectionHandler.run(C onnectionHandler.java:81)

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

Caused by: com.adobe.drive.data.model.DriveException: com.adobe.drive.connector.api.exception.RemoteIOException: Failed to get content http://cmis.alfresco.com/cmisatom/371554cd-ac06-40ba-98b8-e6b60275cca7 /content/t.png?id=workspace%3A%2F%2FSpacesStore%2Fceab2e4d-0334-4c31-8 d88-069b880d9522%3B1.0

    at com.adobe.drive.internal.data.manager.DataManager$ReadConnectorProvid er.read(DataManager.java:8548)

    at com.adobe.drive.internal.data.cache.ProviderNode.read(ProviderNode.ja va:75)

    at com.adobe.drive.internal.data.cache.CacheNode.fillCache(CacheNode.jav a:231)

    at com.adobe.drive.internal.data.cache.CacheNode.singleRead(CacheNode.ja va:377)

    at com.adobe.drive.internal.data.cache.CacheNode.read(CacheNode.java:165 )

    at com.adobe.drive.internal.data.cache.ContentCache.read(ContentCache.ja va:102)

    at com.adobe.drive.internal.data.manager.DataManager.read(DataManager.ja va:3392)

    at com.adobe.drive.internal.biz.filesystem.FileSystemService.read(FileSy stemService.java:751)

    ... 10 more

Caused by: com.adobe.drive.connector.api.exception.RemoteIOException: Failed to get content http://cmis.alfresco.com/cmisatom/371554cd-ac06-40ba-98b8-e6b60275cca7 /content/t.png?id=workspace%3A%2F%2FSpacesStore%2Fceab2e4d-0334-4c31-8 d88-069b880d9522%3B1.0

    at com.adobe.drive.connector.cmis.helper.DelayedFileHandle.downloadFile( DelayedFileHandle.java:172)

    at com.adobe.drive.connector.cmis.helper.DelayedFileHandle.read(DelayedF ileHandle.java:105)

    at com.adobe.drive.connector.cmis.handler.ReadHandler.execute(ReadHandle r.java:66)

    at com.adobe.drive.connector.cmis.handler.ReadHandler.execute(ReadHandle r.java:31)

    at com.adobe.drive.internal.data.manager.DataManager$ReadConnectorProvid er.read(DataManager.java:8536)

    ... 17 more

2011/10/10 15:38:01,603 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /cmislib DocumentTest 1286476513.25/Contents

2011/10/10 15:38:02,458 [ConnectionHandler-kernel] ERROR GetAssetsHandler - asset not found: /cmislib DocumentTest 1286476513.25/Contents

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points