Error while running LiveScript on Matlab Distributed Computing Server

Hi there,
I wrote a liveScript ('report.mlx') and I would like to run it on Matlab Distributed computing server (MDCS) and save it as a PDF. I use 1 worker to run the code at the bottom. As a first step, I execute the code on my local machine, everything went fine. Then I ran a job on MDCS to execute and save the report.mlx but this is not working, I got a warning about an error:
Task with properties:
ID: 1
State: finished
Function: @parallel.internal.cluster.executeFunction
Parent: Job 850
StartDateTime: 25-Oct-2017 10:18:27
Running Duration: 0 days 0h 0m 17s
Error:
Warnings: Error occurred while executing the listener callback for event RUNTIME_ERROR_THROWN defined for class matlab.internal.editor.RegionEvaluator:
Error: File: OutputPackager.p Line: 241 Column: 0
Arguments to IMPORT must either end with ".*" or else specify a fully qualified class name: "com.mathworks.mde.cmdwin.XCmdWndView" fails this test.
Error in matlab.internal.editor.OutputsManager/addErrorEventToOutOfBandOutputs
Error in matlab.internal.editor.OutputsManager/handleRuntimeError
Error in matlab.internal.editor.OutputsManager>@(varargin)obj.handleRuntimeError(varargin{:})
Error in matlab.internal.editor.RegionEvaluator/eventRethrow
Error in matlab.internal.editor.RegionEvaluator>@(varargin)obj.eventRethrow(varargin{:})
Error in matlab.internal.editor.Evaluator/evalFile
Error in matlab.internal.editor.Evaluator/evaluateFile
Error in matlab.internal.editor.RegionEvaluator/evaluateRegions
Error in matlab.internal.editor.evaluateRegions
Error in matlab.internal.editor.EvaluationOutputsService.evalRegions
Error in matlab.internal.liveeditor.LiveEditorUtilities.execute (line 33)
matlab.internal.editor.EvaluationOutputsService.evalRegions(editorId, uuid, regionDataList, fullFileText, firstFunctionLineNumber, false, true, fileName, -1);
Error in matlab.internal.liveeditor.LiveEditorUtilities.openAndExecute (line 12)
executionTime = LiveEditorUtilities.execute(javaRichDocument, fileName);
Error in publishReport (line 15)
[javaRichDocument, cleanupObj, executionTime] = LiveEditorUtilities.openAndExecute(which(sourceFileName))
Error in parallel.internal.cluster.executeFunction (line 36)
feval(fcn, fcnArgsIn{:});
Error in parallel.internal.evaluator.evaluateWithNoErrors (line 16)
feval(fcn, args{:});
Error in parallel.internal.evaluator.MJSStreamingEvaluator/evaluate (line 40)
[out, errOut] = parallel.internal.evaluator.evaluateWithNoErrors( fcn, nOut, args );
Error in dctEvaluateTask>iEvaluateTask/nEvaluateTask (line 307)
[output, errOutput, cellTextOutput{end+1}] = evaluator.evaluate(fcn, nOut, args);
Error in dctEvaluateTask>iEvaluateTask (line 152)
nEvaluateTask();
Error in dctEvaluateTask (line 64)
[resultsFcn, taskPostFcn, taskEvaluatedOK] = iEvaluateTask(job, task, runprop);
Error in distcomp_evaluate_task>iDoTask (line 144)
dctEvaluateTask(postFcns, finishFcn);
Error in distcomp_evaluate_task (line 66)
iDoTask(handlers, postFcns);
Warning Stack: RegionEvaluator>RegionEvaluator.eventRethrow (line 0)
RegionEvaluator>@(varargin)obj.eventRethrow(varargin{:}) (line 0)
Evaluator>Evaluator.evalFile (line 0)
Evaluator>Evaluator.evaluateFile (line 0)
RegionEvaluator>RegionEvaluator.evaluateRegions (line 0)
evaluateRegions (line 0)
EvaluationOutputsService>EvaluationOutputsService.evalRegions (line 0)
execute (line 33)
openAndExecute (line 12)
publishReport (line 15)
The code is below:
sourceFileName = 'report.mlx';
destinationFile = 'report.pdf';
import matlab.internal.liveeditor.LiveEditorUtilities;
% Opens the file in a headless mode
[javaRichDocument, cleanupObj, executionTime] = LiveEditorUtilities.openAndExecute(which(sourceFileName));
% Saves the contents into the file
LiveEditorUtilities.saveas(javaRichDocument, destinationFile)
Thank you for your help !

Réponses (0)

Catégories

En savoir plus sur MATLAB Parallel Server dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by