Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openAndConvert on .mlx file fails in CircleCI environment: org.apache.commons.lang.NotImplementedException: Connector is not running #3

Open
apjanke opened this issue Sep 11, 2021 · 0 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed testing
Milestone

Comments

@apjanke
Copy link
Member

apjanke commented Sep 11, 2021

I'm trying to set up some basic tests of ExportMlx in CircleCI. This is my first CI that I'm getting ExportMlx running on.

Opening the .mlx Live Script files with matlab.internal.liveeditor.openAndConvert is failing with this error:


	Sponsored License -- for use in support of a program or activity sponsored by MathWorks.
	Not for government, commercial or other non-sponsored organizational use.

Exporting: ExportMlx doc file: UserGuide.mlx
Exporting: /home/circleci/project/docs/UserGuide.mlx -> /home/circleci/project/docs/UserGuide.tex
[�Warning: The current message service state: "connected"]� 
[�> In matlab.internal.liveeditor.LiveEditorUtilities.open>handleTimeOutException (line 169)
In matlab.internal.liveeditor.LiveEditorUtilities.open>openUsingCEF (line 143)
In matlab.internal.liveeditor.LiveEditorUtilities.open (line 33)
In matlab.internal.liveeditor.openAndConvert (line 18)
In janklab.exportmlx.mlx2latex (line 54)
In janklab.exportmlx.livescript2markdown (line 33)
In exportmlx_gendoco (line 19)
In exportmlx_launchtests (line 11)
In command_11438 (line 2)
In mdcsbatch (line 58)]� 
{�Error using matlab.internal.liveeditor.LiveEditorUtilities.open>openUsingCEF
(line 139)
Java exception occurred:
org.apache.commons.lang.NotImplementedException: Connector is not running. Use
Connector.ensureServiceOn() to ensure it is running before using it.
	at
        com.mathworks.messageservice.MessageServiceFactory.getBuilder(MessageServiceFactory.java:39)
        	at
        com.mathworks.messageservice.MessageServiceFactory.getMessageService(MessageServiceFactory.java:17)
        	at
        com.mathworks.mde.liveeditor.widget.rtc.RichDocument.publish(RichDocument.java:789)
        	at
        com.mathworks.mde.liveeditor.widget.rtc.RichDocument.setContentAsync(RichDocument.java:501)

Error in matlab.internal.liveeditor.LiveEditorUtilities.open (line 33)
[javaRichDocument, cleanupObj, webWindow] = openUsingCEF(fileName, reuse,
timeout, webWindow);

Error in matlab.internal.liveeditor.openAndConvert (line 18)
[javaRichDocument, cleanupObj, webwindow] =
LiveEditorUtilities.open(sourceFileName); %#ok<ASGLU>

Error in janklab.exportmlx.mlx2latex (line 54)
matlab.internal.liveeditor.openAndConvert(char(inMlxFile), char(outTexFile));

Error in janklab.exportmlx.livescript2markdown (line 33)
latexRslt = janklab.exportmlx.mlx2latex(mlxFile);

Error in exportmlx_gendoco (line 19)
    janklab.exportmlx.livescript2markdown(mlxFile);

Error in exportmlx_launchtests (line 11)
exportmlx_gendoco;

Error in command_11438 (line 2)
addpath dev-kit; exportmlx_launchtests
}� 

Exited with code exit status 1

failed mlx openAndConvert in CI environment.txt

That might be a real problem: That looks like some service required by the Matlab desktop isn't running. That could be because in the CI environment, matlab runs in a headless/nodisplay mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed testing
Projects
None yet
Development

No branches or pull requests

1 participant