Is it possbile to use both cmisfeature and embeddedAutomationServerFeature in the same tests ; ("No operation was bound on ID: Document.Export exception)

I would like to use both CmisFeature and EmbeddedAutomationServerFeature in the same tests.

From the logs, deployment seems to run fine but I later encounter the following exception when trying to open an httpautomationsession :

Any Idea ?

type hereWARN  [btpool0-2 - /automation/] [WebEngineExceptionMapper] Exception in JAX-RS processing
org.nuxeo.ecm.automation.OperationCompoundException: No operation was bound on ID: Document.Export
No operation was bound on ID: Document.Export

    at org.nuxeo.ecm.automation.OperationCompoundExceptionBuilder.newThrowable(OperationCompoundExceptionBuilder.java:27)
    at org.nuxeo.ecm.automation.OperationCompoundExceptionBuilder.throwOnError(OperationCompoundExceptionBuilder.java:47)
    at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.getDocumentation(OperationServiceImpl.java:492)
    at org.nuxeo.ecm.automation.jaxrs.io.operations.AutomationInfo.<init>(AutomationInfo.java:37)
    at org.nuxeo.ecm.automation.server.jaxrs.AutomationResource.doGet(AutomationResource.java:115)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:497)
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
    at 
0 votes

1 answers

1949 views

ANSWER

It seems that "org.nuxeo.ecm.platform.rendition.core" is one part of the problem : When I try to deploy individual components of Cmisfeature I have the previous error throwed except when "org.nuxeo.ecm.platform.rendition.core" is commented out.

That's not enough though as i stil encounter errors when I try a cmis operation against the injected session (it seems rendition service is needed for cmis tests) …

02/10/2016



Answering to myself after some heuristic attempts …

Under 7.10 the following setting allows to use both cmis and http automation apis in the same tests.

@RunWith(FeaturesRunner.class)
@Features({
    AuditFeature.class,
    CmisFeatureSessionAtomPub.class,
    EmbeddedAutomationServerFeature.class,

})


@Deploy({
    "org.nuxeo.ecm.actions", 
    "org.nuxeo.ecm.core.mimetype",
    "org.nuxeo.ecm.core.opencmis.impl", 
    "org.nuxeo.ecm.core.opencmis.tests", 
    "org.nuxeo.ecm.core.opencmis.bindings",
    "org.nuxeo.ecm.platform.filemanager.api", 
    "org.nuxeo.ecm.platform.filemanager.core", 
    "org.nuxeo.ecm.platform.filemanager.core.listener",  
    "org.nuxeo.ecm.platform.login",  
    "org.nuxeo.ecm.platform.types.api", 
    "org.nuxeo.ecm.platform.types.core",
    "org.nuxeo.ecm.platform.rendition.api", 
    "org.nuxeo.ecm.platform.rendition.core:OSGI-INF/rendition-schemas-contrib.xml",
    "org.nuxeo.ecm.platform.rendition.core:OSGI-INF/rendition-service.xml",

    "org.nuxeo.ecm.platform.web.common",
    "org.nuxeo.ecm.platform.ws",   

    "org.nuxeo.ecm.platform.thumbnail",
    "org.nuxeo.ecm.platform.url.api",
    "org.nuxeo.ecm.platform.url.core",
    "org.nuxeo.ecm.platform.convert", 
    "org.nuxeo.ecm.platform.commandline.executor",
     "org.nuxeo.ecm.directory.types.contrib",
     "org.nuxeo.ecm.core.query", 
     "org.nuxeo.ecm.platform.thumbnail:OSGI-INF/thumbnail-core-types-contrib.xml", 
     "org.nuxeo.ecm.core.opencmis.tests.tests:OSGI-INF/disable-filemanager-icon-listener.xml",
    "org.nuxeo.ecm.core.opencmis.tests.tests:OSGI-INF/validation-contrib.xml",

        })
@LocalDeploy({ 
    .....,
        ......

    })
@Jetty(port=18080)
public class TestEmbeddedServerFeatureWithCmis {
...
}
0 votes