Why do I get an error message 'java.security.ProviderException: Error parsing configuration' in the Command Window when starting MATLAB?
6 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2017-12-26
回答: MathWorks Support Team
2017-12-26
On MATLAB startup I get the Exeception:
Exception in thread "Timeout guard" java.security.ProviderException: Error parsing configuration
at sun.security.pkcs11.Config.getConfig(Config.java:88)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:128)
at sun.security.pkcs11.SunPKCS11.<init>(SunPKCS11.java:103)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:224)
at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:206)
at java.security.AccessController.doPrivileged(Native Method)
at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:206)
at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:187)
at sun.security.jca.ProviderList.getProvider(ProviderList.java:233)
at sun.security.jca.ProviderList$ServiceList.tryGet(ProviderList.java:434)
at sun.security.jca.ProviderList$ServiceList.access$200(ProviderList.java:376)
at sun.security.jca.ProviderList$ServiceList$1.hasNext(ProviderList.java:486)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:170)
at <http://javax.net/ javax.net>.ssl.SSLContext.getInstance(SSLContext.java:156)
at <http://javax.net/ javax.net>.ssl.SSLContext.getDefault(SSLContext.java:97)
at <http://javax.net/ javax.net>.ssl.SSLSocketFactory.getDefault(SSLSocketFactory.java:121)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:82)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$1.doit(ControllerThreadSocketFactory.java:91)
at org.apache.commons.httpclient.protocol.ControllerThreadSocketFactory$SocketTask.run(ControllerThreadSocketFactory.java:158)
at java.lang.Thread.run(Thread.java:745)
Caused by: sun.security.pkcs11.ConfigurationException: Invalid value for handleStartupErrors: Token[ignoreMultipleInitialisation], line 4
at sun.security.pkcs11.Config.excToken(Config.java:375)
at sun.security.pkcs11.Config.parseHandleStartupErrors(Config.java:994)
at sun.security.pkcs11.Config.parse(Config.java:412)
at sun.security.pkcs11.Config.<init>(Config.java:220)
at sun.security.pkcs11.Config.getConfig(Config.java:84)
... 23 more
How do I fix this issue?
采纳的回答
MathWorks Support Team
2017-12-26
This is most likely an issue with using OpenJDK with MATLAB. Due to incompatibilities with MATLAB, we would recommend using the JRE that comes included with MATLAB.
Try removing any MATLAB_JAVA environment variable pointing to the OpenJDK directory or use Oracle's Java instead.
0 个评论
更多回答(0 个)
另请参阅
类别
在 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!