Why do I get an error message 'java.secu​rity.Provi​derExcepti​on: Error parsing configuration' in the Command Window when starting MATLAB?

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? 

 채택된 답변

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개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

태그

Community Treasure Hunt

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

Start Hunting!

Translated by