Refresh document in workspaces when added from automation client

yayo_
Confirmed Champ
Confirmed Champ

Hi at all,

I have a problem with nuxeo automation client used for adding new documents... When i add new documents with blob attached (like in the example: http://doc.nuxeo.com/display/NXDOC/Using+Nuxeo+Automation+Client) i can't see new documents added in the user interface, the only way i can use is to logoff and login again and the documents appears... I need to call some other operation to refresh and show new content? I have tried to use

nuxeosession.newRequest("Seam.Refresh").setInput(new PathRef(pathtoworkspace)).execute();

or

nuxeosession.newRequest("Seam.Refresh").execute();

But every time throw exception

Caused by: org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling$RemoteThrowable: Failed to invoke operation Seam.Refresh

P.s. Nuxeo is DM 5.5

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

Any errors in the log server side?

yayo_
Confirmed Champ
Confirmed Champ

So is confirmed that if i add a doc using the automation client it must be showed immediately from web interface?

Prakash_Vidja
Champ in-the-making
Champ in-the-making

I am Also Facing Same Issue,