[ 
http://jira.nuxeo.org/browse/NXP-1708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_29689
 ] 

Dragos Mihalache commented on NXP-1708:
---------------------------------------

Implemented  required API for the test. Also a sample client app using the 
required api in nuxeo-io-sample-test (under sandbox).
There is a problem while performing a
StreamSource.copyTo(..) that needs to connect to the live nuxeo server to 
retrieve the exported zip file.
This is the error:

java.lang.reflect.UndeclaredThrowableException
        at $Proxy10.createDownloadSession(Unknown Source)
        at 
org.nuxeo.runtime.services.streaming.RemoteInputStream.fillBytes(RemoteInputStream.java:118)
        at 
org.nuxeo.runtime.services.streaming.RemoteInputStream.read(RemoteInputStream.java:93)
        at java.io.InputStream.read(InputStream.java:89)
        at org.nuxeo.common.utils.FileUtils.copy(FileUtils.java:76)
        at 
org.nuxeo.runtime.services.streaming.AbstractStreamSource.copyTo(AbstractStreamSource.java:56)
        at 
org.nuxeo.runtime.services.streaming.AbstractStreamSource.copyTo(AbstractStreamSource.java:52)
        at 
org.nuxeo.ecm.platform.io.sample.IOHelper.downloadToFile(IOHelper.java:106)
        at 
org.nuxeo.ecm.platform.io.sample.IOHelper.exportDocumentZip(IOHelper.java:73)
        at 
org.nuxeo.ecm.platform.io.sample.IOSampleClientApp.run(IOSampleClientApp.java:87)
        at 
org.nuxeo.runtime.util.NXRuntimeApplication.start(NXRuntimeApplication.java:57)
        at 
org.nuxeo.ecm.platform.io.sample.IOSampleClientApp.main(IOSampleClientApp.java:135)
Caused by: org.jboss.remoting.InvalidConfigurationException: Can not handle 
invocation request because there are no ServerInvocationHandlers registered.  
Please add via xml configuration or via the Connector's addInvocationHandler() 
method.
        at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:824)
        at 
org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:72)
        at org.jboss.remoting.Client.invoke(Client.java:525)
        at org.jboss.remoting.Client.invoke(Client.java:488)
        at org.jboss.remoting.Client.invoke(Client.java:473)
        at 
org.nuxeo.runtime.remoting.transporter.TransporterClient.invoke(TransporterClient.java:240)
        ... 12 more


Running against 5.2 (trunk) version of nuxeo and having this config:

# runtime remoting config
org.nuxeo.runtime.server.enabled=true
org.nuxeo.runtime.server.port=62474
org.nuxeo.runtime.server.host=${org.nuxeo.ecm.instance.host}

# streaming config
org.nuxeo.runtime.streaming.isServer=true
org.nuxeo.runtime.streaming.serverLocator=socket://${org.nuxeo.ecm.instance.host}:3233

 

> IO tests
> --------
>
>                 Key: NXP-1708
>                 URL: http://jira.nuxeo.org/browse/NXP-1708
>             Project: Nuxeo Enterprise Platform 5
>          Issue Type: Task
>            Reporter: Dragos Mihalache
>            Assignee: Dragos Mihalache
>
> These tests should be remote since they use the service from Apogee/RCP.
> The tests should be done againts a 5.1 version as this is the version
> they are using.
> Here is the list of tests they asked for :
> 1 - public void ExportDocumentZip(DocumentModel resource, String
> urlExport) throws Exception;
> Export the document tree and incomming/outgoing relations in a zip file
> located at urlExport.
> > > 
> 2 - public void ImportDocumentZip1(DocumentModel resource, String
> urlExport) throws Exception;
> Import a Zip archive (the one exported by first test:) below resource
> DocumentModel.
> The existing documents must be overwritten.
> The client does not describe what "existing document means".
> You can probabbly just consider that a document with the same type, the
> same path and the same title is a candidate for overwritting.
> 3 - same as 2 but without overwrite : this tests should generate
> duplicated data
> In 2 and 3 : the relation should be recreated only is existing target
> documents exists ...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to