-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 4.3.0
-
Fix Version/s: 4.3.0
-
Component/s: Automation
-
Tags:
Currently, when having an Automation Script with only :
function run(input, params) { }
The build of the project end up in a 500 error :
Caused by: com.nuxeo.studio.core.api.exception.StudioException: Failed to build feature with type 'scriptedOperation' and id 'cc' at com.nuxeo.studio.core.buildservices.BuildServiceImpl.doBuild(BuildServiceImpl.java:149) ~[nuxeo-studio-ui-4.0-SNAPSHOT.jar:?] at com.nuxeo.studio.core.buildservices.BuildServiceImpl.build(BuildServiceImpl.java:107) ~[nuxeo-studio-ui-4.0-SNAPSHOT.jar:?] ... 88 more Caused by: java.lang.IllegalArgumentException: Adding text to an XML document must not be null at org.dom4j.DocumentFactory.createText(DocumentFactory.java:166) ~[dom4j-2.1.3.jar:?] at org.dom4j.tree.AbstractElement.addText(AbstractElement.java:807) ~[dom4j-2.1.3.jar:?] at org.dom4j.tree.AbstractElement.setText(AbstractElement.java:1023) ~[dom4j-2.1.3.jar:?] at com.nuxeo.studio.core.builders.AutomationScriptingFeatureBuilder.createScriptingExtension(AutomationScriptingFeatureBuilder.java:58) ~[nuxeo-studio-ui-4.0-SNAPSHOT.jar:?] at com.nuxeo.studio.core.builders.AutomationScriptingFeatureBuilder.build(AutomationScriptingFeatureBuilder.java:39) ~[nuxeo-studio-ui-4.0-SNAPSHOT.jar:?] at com.nuxeo.studio.core.builders.AutomationScriptingFeatureBuilder.build(AutomationScriptingFeatureBuilder.java:28) ~[nuxeo-studio-ui-4.0-SNAPSHOT.jar:?] at com.nuxeo.studio.core.buildservices.BuildServiceImpl.doBuild(BuildServiceImpl.java:146) ~[nuxeo-studio-ui-4.0-SNAPSHOT.jar:?] at com.nuxeo.studio.core.buildservices.BuildServiceImpl.build(BuildServiceImpl.java:107) ~[nuxeo-studio-ui-4.0-SNAPSHOT.jar:?] ... 88 more
- Is referenced in