Uploaded image for project: 'Nuxeo Studio'
  1. Nuxeo Studio
  2. NXS-6307

Fix studio project build with "empty" Automation Script

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.3.0
    • Component/s: Automation

      Description

      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
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: