-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 5.8
-
Fix Version/s: 5.9.2
-
Component/s: Automation
This problem is visible when using the "DocumentPageProvider" in an automation chain triggered by an event handler.
When filling the pageSize property (to value 1 for instance), the following error is shown:
****** chain ****** Name: JenkinsReportCreation Exception: TraceException Caught error: org.nuxeo.ecm.automation.OperationException: No type adapter found for input: class java.lang.Long and output class java.lang.Integer Caused by: org.nuxeo.ecm.automation.OperationException: No type adapter found for input: class java.lang.Long and output class java.lang.Integer ****** Hierarchy calls ****** org.nuxeo.ecm.automation.core.operations.FetchContextDocument org.nuxeo.ecm.automation.core.operations.document.SetDocumentProperty org.nuxeo.ecm.automation.core.operations.document.SetDocumentProperty org.nuxeo.ecm.automation.core.operations.document.SetDocumentProperty org.nuxeo.ecm.automation.core.operations.document.SetDocumentProperty org.nuxeo.ecm.automation.core.operations.document.SetDocumentProperty org.nuxeo.ecm.automation.core.operations.document.SetDocumentProperty org.nuxeo.ecm.automation.core.operations.execution.RunOperation ****** start sub chain ****** ****** chain ****** Parent Chain ID: JenkinsReportCreation Name: RetrievePreviousJenkinsReport Exception: OperationException Caught error: No type adapter found for input: class java.lang.Long and output class java.lang.Integer Caused by: null ****** Hierarchy calls ****** org.nuxeo.ecm.automation.core.operations.FetchContextDocument org.nuxeo.ecm.automation.core.operations.SetInputAsVar org.nuxeo.ecm.automation.jsf.operations.GetCurrentDocument org.nuxeo.ecm.automation.core.operations.services.DocumentPageProviderOperation [...] Caused by: org.nuxeo.ecm.automation.OperationException: No type adapter found for input: class java.lang.Long and output class java.lang.Integer at org.nuxeo.ecm.automation.core.impl.OperationServiceImpl.getAdaptedValue(OperationServiceImpl.java:446) at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.inject(OperationTypeImpl.java:235) at org.nuxeo.ecm.automation.core.impl.OperationTypeImpl.newInstance(OperationTypeImpl.java:182)
Note that this operation can be used from client code without any issue (it's used by the select2 widgets for instance)