When I try to run a simple plot script, I get the following error?

5 visualizzazioni (ultimi 30 giorni)
Unable to initialize connector: null
java.lang.IllegalStateException: Error initializing Connector implementation
at com.mathworks.matlabserver.connector.api.Connector.getImpl(Connector.java:22)
at com.mathworks.matlabserver.connector.api.Connector.ensureServiceOn(Connector.java:137)
at com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.setMessageService(IsEditorExecutingFeature.java:69)
at com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.publish(IsEditorExecutingFeature.java:55)
at com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.setEditorIsExecuting(IsEditorExecutingFeature.java:51)
at com.mathworks.mde.embeddedoutputs.RegionEvaluator.markEditorAsExecuting(RegionEvaluator.java:379)
Error using matlab.internal.editor.evaluateCode
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.editor.plugins.editordataservice.IsEditorExecutingFeature.setMessageService(IsEditorExecutingFeature.java:73)
at
com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.publish(IsEditorExecutingFeature.java:55)
at
com.mathworks.mde.editor.plugins.editordataservice.IsEditorExecutingFeature.setEditorIsExecuting(IsEditorExecutingFeature.java:51)
at
com.mathworks.mde.embeddedoutputs.RegionEvaluator.markEditorAsExecuting(RegionEvaluator.java:379)

Risposte (1)

Kritika Bansal
Kritika Bansal il 16 Gen 2020
Hi,
You can try a couple of things to fix it:.
1.Type the following command in MATLAB command prompt to see if you have the connector installed:
which -all connector
2. If you don't see any connectors installed, run MATLAB as administrator and install the connectors.
3. Also there may be a possibility that the path to the connector folder is not added, try adding it manually.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by