"Error using connector.ensureServiceOn" when clicking "Get Add-Ons"
10 次查看(过去 30 天)
显示 更早的评论
Asking this question in case anyone else has faced the same problem / has found a solution.
Release: R2015b 64 bit, Windows.
When clicking on "Get Add-Ons", this error message pops up on the command window:
Error using connector.ensureServiceOn
Error starting MATLAB Connector. Please check that port 31515 is available.
com.mathworks.jmi.MatlabException: Error starting MATLAB Connector. Please check that port 31515 is available.
at com.mathworks.jmi.NativeMatlab.SendMatlabMessage(Native Method)
at com.mathworks.jmi.NativeMatlab.sendMatlabMessage(NativeMatlab.java:266)
at com.mathworks.jmi.MatlabLooper.sendMatlabMessage(MatlabLooper.java:120)
at com.mathworks.jmi.Matlab.mtFevalConsoleOutput(Matlab.java:1778)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:195)
at com.mathworks.jmi.MatlabWorker.feval(MatlabWorker.java:172)
at com.mathworks.addons.ConnectorFactory$1.runOnMatlabThread(ConnectorFactory.java:37)
at com.mathworks.jmi.MatlabWorker$2.run(MatlabWorker.java:79)
at com.mathworks.jmi.NativeMatlab.dispatchMTRequests(NativeMatlab.java:475)
What I've tried:
- Allowed R2015b.exe in the Firewall for inbound and outbound connections.
- Allowed TCP port 31515 in the Firewall for inbound and outbound connections.
Still no luck.
0 个评论
采纳的回答
Dave Behera
2015-12-4
Hi,
The issue is related to the network configuration. One possible workaround is forcing JVM to use IPv4 over IPv6 by setting the java.net.preferIPv4Stack config. The following discussion page provides some relevant discussion:
To work around this issue create a new System Variable named JAVA_TOOL_OPTION, with the value -Djava.net.preferIPv4Stack=true
3 个评论
Dominik Melcher
2016-9-14
I solved the problem by deleting the MATLAB_JAVA path in my system variables.
更多回答(2 个)
AFTAB ALAM ANSARI
2017-11-22
Don't go for rubbish like "it's because of JAVA". This happens when MATLAB is blocked by some firewall that is blocking MATLAB from connecting to Internet. MATLAB uses Internet during Stimulation. Just exclude it from firewall and there you go. There will be no error.
2 个评论
Eric Zhai
2019-1-22
This answer really helps me. After I exclude MATLAB from the firewall in the computer, the error never come up.
Hicham Belh
2018-12-16
i got this error by click on getaddon:
Version: Matlab 2018a
error:
was: Server did not respond to initial request: 127.0.0.1:31714
initial request: 127.0.0.1:31714
thx for any help
Lega
1 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!