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

4 visualizaciones (últimos 30 días)
Tadesse Assefa
Tadesse Assefa el 25 de Nov. de 2019
Respondida: Kritika Bansal el 16 de En. de 2020
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)

Respuestas (1)

Kritika Bansal
Kritika Bansal el 16 de En. de 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.

Categorías

Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by