Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52133

java.lang.SecurityException: Can't read cryptographic policy directory: unlimited

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • swarm-plugin
    • Windows 8.1
      Oracle JDK 10.0.1
      Swarm Client: 3.13

      When starting the swarm-client using Java 10, I get the following exception:

      Exception in thread "main" java.lang.ExceptionInInitializerError
          at java.base/javax.crypto.JceSecurityManager.<clinit>(JceSecurityManager.java:65)
          at java.base/javax.crypto.Cipher.getConfiguredPermission(Cipher.java:2613)
          at java.base/javax.crypto.Cipher.getMaxAllowedKeyLength(Cipher.java:2635)
          at java.base/sun.security.ssl.CipherSuite$BulkCipher.isUnlimited(CipherSuite.java:603)
          at java.base/sun.security.ssl.CipherSuite$BulkCipher.<init>(CipherSuite.java:575)
          at java.base/sun.security.ssl.CipherSuite$BulkCipher.<clinit>(CipherSuite.java:461)
          at java.base/sun.security.ssl.CipherSuite.<clinit>(CipherSuite.java:1075)
          at java.base/sun.security.ssl.SSLContextImpl.getApplicableSupportedCipherSuiteList(SSLContextImpl.java:354)
          at java.base/sun.security.ssl.SSLContextImpl.access$100(SSLContextImpl.java:42)
          at java.base/sun.security.ssl.SSLContextImpl$AbstractTLSContext.<clinit>(SSLContextImpl.java:590)
          at java.base/java.lang.Class.forName0(Native Method)
          at java.base/java.lang.Class.forName(Class.java:291)
          at java.base/java.security.Provider$Service.getImplClass(Provider.java:1848)
          at java.base/java.security.Provider$Service.newInstance(Provider.java:1824)
          at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:236)
          at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:164)
          at java.base/javax.net.ssl.SSLContext.getInstance(SSLContext.java:168)
          at hudson.plugins.swarm.SwarmClient.createHttpClient(SwarmClient.java:338)
          at hudson.plugins.swarm.SwarmClient.discoverFromMasterUrl(SwarmClient.java:213)
          at hudson.plugins.swarm.Client.run(Client.java:146)
          at hudson.plugins.swarm.Client.main(Client.java:119)
      Caused by: java.lang.SecurityException: Can not initialize cryptographic mechanism
          at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:118)
          ... 21 more
      Caused by: java.lang.SecurityException: Can't read cryptographic policy directory: unlimited
          at java.base/javax.crypto.JceSecurity.setupJurisdictionPolicies(JceSecurity.java:324)
          at java.base/javax.crypto.JceSecurity.access$000(JceSecurity.java:73)
          at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:109)
          at java.base/javax.crypto.JceSecurity$1.run(JceSecurity.java:106)
          at java.base/java.security.AccessController.doPrivileged(Native Method)
          at java.base/javax.crypto.JceSecurity.<clinit>(JceSecurity.java:105)
          ... 21 more

            getrostt Tobias Getrost
            getrostt Tobias Getrost
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: